1
YM
2024-06-06 c56935d7085725e609d926b064c146f3ffc29e6e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<template>
  <view>
    <view class="tabContent" :class="{ flex: !isTrue }" v-show="true">
      <view style="width: 50%" v-for="(item, index) in tableData" :key="index">
        <view class="paramBox">
          <!-- <view class="param-title">{{item.name}}</view> -->
          <view v-for="(subItem, subIndex) in item.list" :key="subIndex">
            <view class="param-item">
              <label>{{ subItem.name }}</label>
              <text v-if="subItem.valueClick" class="font-family" style="color: #027edc;cursor: pointer;" :title="subItem.value" @click="subItem.valueClick">{{ subItem.value }}</text>
              <text v-else class="font-family" :title="subItem.value">{{ subItem.value }}</text>
            </view>
          </view>
        </view>
      </view>
      <!-- <view v-if="isTrue " style="height: 30rpx;"></view> -->
    </view>
  </view>
</template>
<script>
export default {
  props: {
    tableData: {
      type: Array,
      default() {
        return [];
      }
    },
    isTrue: {
      true: Boolean,
      defalut() {
        return false;
      }
    }
  },
  data() {
    return {};
  },
  methods: {}
};
</script>
 
<style scoped>
view {
  box-sizing: border-box;
}
 
.tabContent {
  background: #fff;
  overflow: hidden;
}
 
.param-title {
  background: #f5f5f5;
  height: 80rpx;
  line-height: 80rpx;
  margin: 20rpx 30rpx 0;
  font-size: 28rpx;
  text-indent: 30rpx;
}
 
.param-item {
  height: 0.3rem;
  line-height: 0.3rem;
  font-size: 0.14rem;
  border-bottom: 0.02rem solid #fff;
  margin: 0 4rpx;
  /*     border-left: 1rpx solid #f5f5f5;
            border-right: 1rpx solid #f5f5f5; */
  /* padding: 0 30rpx; */
  display: flex;
}
 
.param-item label {
  width: 1.55rem;
  color: #999;
  margin-right: 0.03rem !important;
  padding-left: 0.1rem;
  background-color: #5879a4;
  color: #fff;
}
 
.param-item text {
  padding-left: 0.2rem;
  background-color: #ebf3fe;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
</style>