styleTitle.vue 916 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <template>
  2. <div class="styleTitleBox">
  3. <editBtn :id="id" :sort="sort" :type="7" />
  4. <div :class="['titleBoxStyle' + type]">
  5. {{ text }}
  6. </div>
  7. </div>
  8. </template>
  9. <script>
  10. import editBtn from '../../public/editBtn.vue'
  11. export default {
  12. components: {
  13. editBtn
  14. },
  15. props: {
  16. id:{
  17. type:Number,
  18. default:0
  19. },
  20. sort:{
  21. type:Number,
  22. default:0
  23. }
  24. },
  25. data() {
  26. return {
  27. type:1,
  28. text:"板块标题"
  29. };
  30. },
  31. methods: {
  32. },
  33. mounted() {
  34. },
  35. };
  36. </script>
  37. <style scoped lang="less">
  38. .styleTitleBox {
  39. //width: 468px;
  40. width: 100%;
  41. height: 41px;
  42. text-align: center;
  43. font-size: 32px;
  44. font-weight: bold;
  45. color: #333;
  46. line-height: 41px;
  47. position: relative;
  48. }
  49. .titleBoxStyle1{
  50. background: url('../../../../assets/template/component/titleStyle1.png') no-repeat center center;
  51. }
  52. </style>