普兆健康管家前端代码仓库
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

55 lines
1000 B

  1. <template>
  2. <view class="header-box" :style="style">
  3. <view class="flex header">
  4. <view class="title">{{ title }}</view>
  5. <button class="flex btn" @click="$emit('showAll')">
  6. <text class="btn-text">查看全部</text>
  7. <uv-icon name="arrow-right" color="#C6C6C6" size="24rpx"></uv-icon>
  8. </button>
  9. </view>
  10. </view>
  11. </template>
  12. <script>
  13. export default {
  14. props: {
  15. title: {
  16. type: String,
  17. default: '',
  18. },
  19. style: {
  20. type: String,
  21. default: '',
  22. }
  23. },
  24. }
  25. </script>
  26. <style scoped lang="scss">
  27. .header {
  28. &-box {
  29. padding: 0 32rpx 24rpx 32rpx;
  30. }
  31. justify-content: space-between;
  32. .title {
  33. font-family: PingFang SC;
  34. font-size: 36rpx;
  35. font-weight: 600;
  36. line-height: 1.2;
  37. color: #252545;
  38. }
  39. .btn {
  40. font-family: PingFang SC;
  41. font-size: 24rpx;
  42. font-weight: 400;
  43. line-height: 1.4;
  44. color: #A8A8A8;
  45. &-text {
  46. margin-right: 4rpx;
  47. }
  48. }
  49. }
  50. </style>