styleTitle.vue 670 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <template>
  2. <div class="styleTitleBox">
  3. <div :class="['titleBoxStyle' + type]">{{ text }}</div>
  4. </div>
  5. </template>
  6. <script>
  7. export default {
  8. props: {
  9. },
  10. data() {
  11. return {
  12. type:1,
  13. text:"多图板块"
  14. };
  15. },
  16. methods: {
  17. },
  18. mounted() {
  19. },
  20. };
  21. </script>
  22. <style scoped lang="less">
  23. .styleTitleBox {
  24. width: 468px;
  25. height: 41px;
  26. text-align: center;
  27. font-size: 32px;
  28. font-weight: bold;
  29. color: #333;
  30. line-height: 41px;
  31. }
  32. .titleBoxStyle1{
  33. background: url('../../../../../assets/template/component/titleStyle1.png') no-repeat center center;
  34. background-size: 100% 100%;
  35. }
  36. </style>