cnhis-design-vue 3.1.28-beta.0 → 3.1.28-beta.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.
|
@@ -268,7 +268,6 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
268
268
|
await handleFormTheUniqueKey();
|
|
269
269
|
}
|
|
270
270
|
await table.loadData(await separate(formatList, data));
|
|
271
|
-
table.setCurrentRow({});
|
|
272
271
|
setCurrentPageRowChecked();
|
|
273
272
|
setGroupTreeExpand();
|
|
274
273
|
}
|
|
@@ -1138,6 +1137,10 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1138
1137
|
};
|
|
1139
1138
|
const colspanMethod = (payload) => {
|
|
1140
1139
|
var _a;
|
|
1140
|
+
const defaultSpan = {
|
|
1141
|
+
rowspan: 1,
|
|
1142
|
+
colspan: 1
|
|
1143
|
+
};
|
|
1141
1144
|
const {
|
|
1142
1145
|
row,
|
|
1143
1146
|
column
|
|
@@ -1147,36 +1150,32 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1147
1150
|
if (isFunction(attr["span-method"]))
|
|
1148
1151
|
return attr["span-method"](payload);
|
|
1149
1152
|
if (state.isTree != 3) {
|
|
1150
|
-
return
|
|
1151
|
-
rowspan: 1,
|
|
1152
|
-
colspan: 1
|
|
1153
|
-
};
|
|
1153
|
+
return defaultSpan;
|
|
1154
1154
|
}
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
return
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
}
|
|
1155
|
+
const xTree = xGrid.value;
|
|
1156
|
+
if (!xTree)
|
|
1157
|
+
return defaultSpan;
|
|
1158
|
+
const {
|
|
1159
|
+
tableColumn = []
|
|
1160
|
+
} = (xTree == null ? void 0 : xTree.getTableColumn()) || {};
|
|
1161
|
+
const fristKeyIndex = tableColumn.findIndex((column2) => !!column2.property);
|
|
1162
|
+
const fixedRightColsSpan = tableColumn.filter((column2) => column2.fixed === "right").length;
|
|
1163
|
+
const colspan = tableColumn.length - fristKeyIndex - fixedRightColsSpan;
|
|
1164
|
+
const isOldVxeTree = row.childrenList && row.childrenList.length;
|
|
1165
|
+
const isTransformVxeTree = ((_a = props.tableParams) == null ? void 0 : _a.isTransform) && !row.qianduan_parent_id;
|
|
1166
|
+
if (isOldVxeTree || isTransformVxeTree) {
|
|
1167
|
+
if (column.treeNode) {
|
|
1168
|
+
return {
|
|
1169
|
+
rowspan: 1,
|
|
1170
|
+
colspan
|
|
1171
|
+
};
|
|
1172
|
+
} else if (!column.property || column.fixed === "right") {
|
|
1173
|
+
return defaultSpan;
|
|
1174
|
+
} else {
|
|
1175
|
+
return {
|
|
1176
|
+
rowspan: 0,
|
|
1177
|
+
colspan: 0
|
|
1178
|
+
};
|
|
1180
1179
|
}
|
|
1181
1180
|
}
|
|
1182
1181
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cnhis-design-vue",
|
|
3
|
-
"version": "3.1.28-beta.
|
|
3
|
+
"version": "3.1.28-beta.2",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"module": "./es/components/index.js",
|
|
6
6
|
"main": "./es/components/index.js",
|
|
@@ -61,5 +61,5 @@
|
|
|
61
61
|
"iOS 7",
|
|
62
62
|
"last 3 iOS versions"
|
|
63
63
|
],
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "f18092fc31cf689ddde52ef03d6484862aef55b4"
|
|
65
65
|
}
|