cwg-label-line-value.vue 826 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <template>
  2. <view class="info-item">
  3. <span class="label">{{ label }}</span>
  4. <span class="line"></span>
  5. <span class="value">{{ value }}</span>
  6. </view>
  7. </template>
  8. <script setup>
  9. const props = defineProps({
  10. label: {
  11. type: String,
  12. required: ""
  13. },
  14. value: {
  15. type: String,
  16. required: "--"
  17. },
  18. });
  19. </script>
  20. <style scoped lang="scss">
  21. @import "@/uni.scss";
  22. .info-item {
  23. display: flex;
  24. justify-content: space-between;
  25. align-items: flex-end;
  26. font-size: px2rpx(14);
  27. .label {
  28. color: #6c8595;
  29. }
  30. .line {
  31. flex: 1;
  32. height: 1px;
  33. border-top: 1px dashed rgba(108, 133, 149, 0.5);
  34. margin-bottom: px2rpx(1);
  35. }
  36. .value {
  37. font-weight: 500;
  38. color: #2e3a47;
  39. }
  40. }
  41. </style>