mooho-base-admin-plus 2.8.1 → 2.8.2
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.
package/package.json
CHANGED
|
@@ -91,7 +91,6 @@
|
|
|
91
91
|
size="small"
|
|
92
92
|
stripe
|
|
93
93
|
row-key="id"
|
|
94
|
-
:indent-size="18"
|
|
95
94
|
:update-show-children="treeEnable"
|
|
96
95
|
:columns="columns"
|
|
97
96
|
:data="data"
|
|
@@ -1080,6 +1079,20 @@
|
|
|
1080
1079
|
column.fixed = column.isFixed ? 'left' : null;
|
|
1081
1080
|
});
|
|
1082
1081
|
|
|
1082
|
+
if (this.treeEnable) {
|
|
1083
|
+
if (this.columns.length > 0) {
|
|
1084
|
+
this.columns[0].tree = true;
|
|
1085
|
+
this.columns[0].display = 'inline-block';
|
|
1086
|
+
} else {
|
|
1087
|
+
this.columns.unshift({
|
|
1088
|
+
tree: true,
|
|
1089
|
+
display: 'inline',
|
|
1090
|
+
align: 'left',
|
|
1091
|
+
width: 100
|
|
1092
|
+
});
|
|
1093
|
+
}
|
|
1094
|
+
}
|
|
1095
|
+
|
|
1083
1096
|
if (this.tableView.snEnable) {
|
|
1084
1097
|
this.columns.unshift({
|
|
1085
1098
|
title: this.$t('Front_Label_Sn'),
|
|
@@ -1154,14 +1167,6 @@
|
|
|
1154
1167
|
width: 60
|
|
1155
1168
|
});
|
|
1156
1169
|
}
|
|
1157
|
-
if (this.treeEnable) {
|
|
1158
|
-
this.columns.unshift({
|
|
1159
|
-
tree: true,
|
|
1160
|
-
display: 'inline',
|
|
1161
|
-
align: 'left',
|
|
1162
|
-
width: 100
|
|
1163
|
-
});
|
|
1164
|
-
}
|
|
1165
1170
|
|
|
1166
1171
|
// 默认每页数据量
|
|
1167
1172
|
if (this.tableView.size) {
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
</template>
|
|
36
36
|
<template #column="{ row, column, code }">
|
|
37
37
|
<template v-if="code == 'name'">
|
|
38
|
-
<div :style="{ 'font-weight': row.hasChildren ? 'bold' : ''
|
|
38
|
+
<div :style="{ 'font-weight': row.hasChildren ? 'bold' : '' }">{{ showData(row, column) }}</div>
|
|
39
39
|
</template>
|
|
40
40
|
</template>
|
|
41
41
|
</view-table>
|