supplier-title.vue 959 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <template>
  2. <view>
  3. <view class="title" :style="{color: titlecolor}">{{title}}</view>
  4. <view class="subtitle" v-html="subtitle" :style="{color: subtitlecolor}"></view>
  5. </view>
  6. </template>
  7. <script>
  8. export default {
  9. props: {
  10. title: {
  11. type: String,
  12. default: () => ''
  13. },
  14. subtitle: {
  15. type: String,
  16. default: () => ''
  17. },
  18. titlecolor: {
  19. type: String,
  20. default: () => '#333333'
  21. },
  22. subtitlecolor: {
  23. type: String,
  24. default: () => '#707070'
  25. }
  26. }
  27. }
  28. </script>
  29. <style lang="scss" scoped>
  30. .title {
  31. margin-top: 122rpx;
  32. text-align: center;
  33. font-size: 44rpx;
  34. }
  35. .subtitle {
  36. margin: 20rpx 0 100rpx 0;
  37. text-align: center;
  38. font-size: 28rpx;
  39. }
  40. </style>