cm-floor-title.vue 945 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <template>
  2. <view class="floor-title">
  3. <text class="title" v-text="title"></text>
  4. <view class="more" @click="$emit('click')">
  5. <text v-text="moreText"></text> <text class="iconfont icon-chakangengduo"> </text>
  6. </view>
  7. </view>
  8. </template>
  9. <script>
  10. export default {
  11. name: 'cm-floor-title',
  12. props: {
  13. title: {
  14. type: String,
  15. default: '标题'
  16. },
  17. moreText: {
  18. type: String,
  19. default: '查看更多'
  20. }
  21. }
  22. }
  23. </script>
  24. <style lang="scss" scoped>
  25. // 楼层标题
  26. .floor-title {
  27. @extend .cm-flex-between;
  28. padding: 24rpx;
  29. .title {
  30. @include ellipsis(1);
  31. max-width: 600rpx;
  32. font-size: 34rpx;
  33. font-weight: 600;
  34. color: #333333;
  35. }
  36. .more {
  37. font-size: 26rpx;
  38. color: #999999;
  39. .iconfont {
  40. font-size: 24rpx;
  41. }
  42. }
  43. }
  44. </style>