@zscreate/zhxy-app-component 1.0.175 → 1.0.177
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
:style="{ width: h.hWidth + 'rpx' }">
|
|
24
24
|
<!-- 不等于操作列就显示文字 -->
|
|
25
25
|
<text v-if="h.columnCode !== 'action' && h.columnName !== 'slot'" :style="{ color: getColor(t, h), }">{{
|
|
26
|
-
t[h.columnCode] }}</text>
|
|
26
|
+
t[h.columnCode] ? t[h.columnCode] : '' }}</text>
|
|
27
27
|
<view v-else-if="h.columnName === 'slot'">
|
|
28
28
|
<u-checkbox-group>
|
|
29
29
|
<u-checkbox @change="checkboxChange" v-model="t.checked" :name="t[rowKey]"></u-checkbox>
|
|
@@ -170,6 +170,12 @@ export default {
|
|
|
170
170
|
w += item['hWidth'] //叠加表格总长度
|
|
171
171
|
})
|
|
172
172
|
this.tableWidths = w //给表格赋值总长度
|
|
173
|
+
if(this.tableWidths < 640) {
|
|
174
|
+
this.tableWidths = 640
|
|
175
|
+
this.header.forEach(item => {
|
|
176
|
+
item['hWidth'] = 640 / this.header.length
|
|
177
|
+
})
|
|
178
|
+
}
|
|
173
179
|
console.log(this.header);
|
|
174
180
|
},
|
|
175
181
|
// 替换特殊字符
|