norm.vue 683 B

12345678910111213141516171819202122232425262728293031323334
  1. <template>
  2. <view class="items">
  3. <view class="spec_item" v-for="items, index in item" :key="index">
  4. <view class="_item spec_label">{{ items.name }}</view>
  5. <view class="_item spec_value">{{ items.value }}</view>
  6. </view>
  7. </view>
  8. </template>
  9. <script setup>
  10. const props = defineProps({
  11. item: {
  12. type: Array,
  13. default: () => []
  14. }
  15. })
  16. </script>
  17. <style lang="less" scoped>
  18. .items {
  19. .spec_item {
  20. display: flex;
  21. font-size: 24rpx;
  22. line-height: 40rpx;
  23. padding: 16rpx 0;
  24. border-bottom: 1px dashed var(--bor-color);
  25. color: var(--text-02);
  26. ._item{
  27. flex: 1;
  28. }
  29. .spec_label{
  30. color: var(--text-02);
  31. }
  32. }
  33. }
  34. </style>