vxe-table 4.10.12 → 4.10.13
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/es/style.css +1 -1
- package/es/table/module/export/hook.js +3 -2
- package/es/table/src/body.js +1 -0
- package/es/table/src/table.js +13 -5
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/lib/index.umd.js +23 -10
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/table/module/export/hook.js +3 -2
- package/lib/table/module/export/hook.min.js +1 -1
- package/lib/table/src/body.js +1 -0
- package/lib/table/src/body.min.js +1 -1
- package/lib/table/src/table.js +17 -6
- package/lib/table/src/table.min.js +1 -1
- package/lib/ui/index.js +1 -1
- package/lib/ui/index.min.js +1 -1
- package/lib/ui/src/log.js +1 -1
- package/lib/ui/src/log.min.js +1 -1
- package/package.json +1 -1
- package/packages/table/module/export/hook.ts +3 -2
- package/packages/table/src/body.ts +1 -0
- package/packages/table/src/table.ts +16 -5
- /package/es/{iconfont.1739237387649.ttf → iconfont.1739257038865.ttf} +0 -0
- /package/es/{iconfont.1739237387649.woff → iconfont.1739257038865.woff} +0 -0
- /package/es/{iconfont.1739237387649.woff2 → iconfont.1739257038865.woff2} +0 -0
- /package/lib/{iconfont.1739237387649.ttf → iconfont.1739257038865.ttf} +0 -0
- /package/lib/{iconfont.1739237387649.woff → iconfont.1739257038865.woff} +0 -0
- /package/lib/{iconfont.1739237387649.woff2 → iconfont.1739257038865.woff2} +0 -0
package/es/table/src/table.js
CHANGED
|
@@ -1540,12 +1540,12 @@ export default defineComponent({
|
|
|
1540
1540
|
const sortOpts = computeSortOpts.value;
|
|
1541
1541
|
const treeOpts = computeTreeOpts.value;
|
|
1542
1542
|
const childrenField = treeOpts.children || treeOpts.childrenField;
|
|
1543
|
-
const { transform } = treeOpts;
|
|
1543
|
+
const { transform, rowField, parentField, mapChildrenField } = treeOpts;
|
|
1544
1544
|
const { remote: allRemoteFilter, filterMethod: allFilterMethod } = filterOpts;
|
|
1545
1545
|
const { remote: allRemoteSort, sortMethod: allSortMethod, multiple: sortMultiple, chronological } = sortOpts;
|
|
1546
1546
|
let tableData = [];
|
|
1547
1547
|
let tableTree = [];
|
|
1548
|
-
//
|
|
1548
|
+
// 处理数据
|
|
1549
1549
|
if (!allRemoteFilter || !allRemoteSort) {
|
|
1550
1550
|
const filterColumns = [];
|
|
1551
1551
|
let orderColumns = [];
|
|
@@ -1601,7 +1601,7 @@ export default defineComponent({
|
|
|
1601
1601
|
tableTree = XEUtils.searchTree(tableFullTreeData, handleFilter, {
|
|
1602
1602
|
original: true,
|
|
1603
1603
|
isEvery: true,
|
|
1604
|
-
children:
|
|
1604
|
+
children: mapChildrenField,
|
|
1605
1605
|
mapChildren: childrenField
|
|
1606
1606
|
});
|
|
1607
1607
|
tableData = tableTree;
|
|
@@ -1617,7 +1617,7 @@ export default defineComponent({
|
|
|
1617
1617
|
tableTree = XEUtils.searchTree(tableFullTreeData, () => true, {
|
|
1618
1618
|
original: true,
|
|
1619
1619
|
isEvery: true,
|
|
1620
|
-
children:
|
|
1620
|
+
children: mapChildrenField,
|
|
1621
1621
|
mapChildren: childrenField
|
|
1622
1622
|
});
|
|
1623
1623
|
tableData = tableTree;
|
|
@@ -1637,7 +1637,15 @@ export default defineComponent({
|
|
|
1637
1637
|
tableTree = XEUtils.isArray(sortRests) ? sortRests : tableTree;
|
|
1638
1638
|
}
|
|
1639
1639
|
else {
|
|
1640
|
-
|
|
1640
|
+
const treeList = XEUtils.toTreeArray(tableTree, {
|
|
1641
|
+
children: mapChildrenField
|
|
1642
|
+
});
|
|
1643
|
+
tableTree = XEUtils.toArrayTree(XEUtils.orderBy(treeList, orderColumns.map(({ column, order }) => [getOrderField(column), order])), {
|
|
1644
|
+
key: rowField,
|
|
1645
|
+
parentKey: parentField,
|
|
1646
|
+
children: childrenField,
|
|
1647
|
+
mapChildren: mapChildrenField
|
|
1648
|
+
});
|
|
1641
1649
|
}
|
|
1642
1650
|
tableData = tableTree;
|
|
1643
1651
|
}
|
package/es/ui/index.js
CHANGED
package/es/ui/src/log.js
CHANGED
package/lib/index.umd.js
CHANGED
|
@@ -3138,7 +3138,7 @@ function eqEmptyValue(cellValue) {
|
|
|
3138
3138
|
;// ./packages/ui/index.ts
|
|
3139
3139
|
|
|
3140
3140
|
|
|
3141
|
-
const version = "4.10.
|
|
3141
|
+
const version = "4.10.13";
|
|
3142
3142
|
core_.VxeUI.version = version;
|
|
3143
3143
|
core_.VxeUI.tableVersion = version;
|
|
3144
3144
|
core_.VxeUI.setConfig({
|
|
@@ -3585,7 +3585,7 @@ var esnext_iterator_some = __webpack_require__(7550);
|
|
|
3585
3585
|
const {
|
|
3586
3586
|
log: log_log
|
|
3587
3587
|
} = core_.VxeUI;
|
|
3588
|
-
const log_version = `table v${"4.10.
|
|
3588
|
+
const log_version = `table v${"4.10.13"}`;
|
|
3589
3589
|
const warnLog = log_log.create('warn', log_version);
|
|
3590
3590
|
const errLog = log_log.create('error', log_version);
|
|
3591
3591
|
;// ./packages/table/src/columnInfo.ts
|
|
@@ -6606,6 +6606,7 @@ const renderType = 'body';
|
|
|
6606
6606
|
'fixed--width': !isAutoCellWidth,
|
|
6607
6607
|
'fixed--hidden': fixedHiddenColumn,
|
|
6608
6608
|
'is--padding': isCellPadding,
|
|
6609
|
+
'is--progress': fixedHiddenColumn && isAllOverflow || isVNPreEmptyStatus,
|
|
6609
6610
|
'is--drag-cell': isRowDragCell && (isCrossDrag || isPeerDrag || !rowLevel),
|
|
6610
6611
|
'is--drag-disabled': isDisabledDrag,
|
|
6611
6612
|
'col--dirty': isDirty,
|
|
@@ -12059,7 +12060,10 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
12059
12060
|
const treeOpts = computeTreeOpts.value;
|
|
12060
12061
|
const childrenField = treeOpts.children || treeOpts.childrenField;
|
|
12061
12062
|
const {
|
|
12062
|
-
transform
|
|
12063
|
+
transform,
|
|
12064
|
+
rowField,
|
|
12065
|
+
parentField,
|
|
12066
|
+
mapChildrenField
|
|
12063
12067
|
} = treeOpts;
|
|
12064
12068
|
const {
|
|
12065
12069
|
remote: allRemoteFilter,
|
|
@@ -12073,7 +12077,7 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
12073
12077
|
} = sortOpts;
|
|
12074
12078
|
let tableData = [];
|
|
12075
12079
|
let tableTree = [];
|
|
12076
|
-
//
|
|
12080
|
+
// 处理数据
|
|
12077
12081
|
if (!allRemoteFilter || !allRemoteSort) {
|
|
12078
12082
|
const filterColumns = [];
|
|
12079
12083
|
let orderColumns = [];
|
|
@@ -12175,7 +12179,7 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
12175
12179
|
tableTree = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().searchTree(tableFullTreeData, handleFilter, {
|
|
12176
12180
|
original: true,
|
|
12177
12181
|
isEvery: true,
|
|
12178
|
-
children:
|
|
12182
|
+
children: mapChildrenField,
|
|
12179
12183
|
mapChildren: childrenField
|
|
12180
12184
|
});
|
|
12181
12185
|
tableData = tableTree;
|
|
@@ -12189,7 +12193,7 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
12189
12193
|
tableTree = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().searchTree(tableFullTreeData, () => true, {
|
|
12190
12194
|
original: true,
|
|
12191
12195
|
isEvery: true,
|
|
12192
|
-
children:
|
|
12196
|
+
children: mapChildrenField,
|
|
12193
12197
|
mapChildren: childrenField
|
|
12194
12198
|
});
|
|
12195
12199
|
tableData = tableTree;
|
|
@@ -12211,10 +12215,18 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
12211
12215
|
});
|
|
12212
12216
|
tableTree = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(sortRests) ? sortRests : tableTree;
|
|
12213
12217
|
} else {
|
|
12214
|
-
|
|
12218
|
+
const treeList = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toTreeArray(tableTree, {
|
|
12219
|
+
children: mapChildrenField
|
|
12220
|
+
});
|
|
12221
|
+
tableTree = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toArrayTree(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().orderBy(treeList, orderColumns.map(({
|
|
12215
12222
|
column,
|
|
12216
12223
|
order
|
|
12217
|
-
}) => [getOrderField(column), order]))
|
|
12224
|
+
}) => [getOrderField(column), order])), {
|
|
12225
|
+
key: rowField,
|
|
12226
|
+
parentKey: parentField,
|
|
12227
|
+
children: childrenField,
|
|
12228
|
+
mapChildren: mapChildrenField
|
|
12229
|
+
});
|
|
12218
12230
|
}
|
|
12219
12231
|
tableData = tableTree;
|
|
12220
12232
|
} else {
|
|
@@ -23803,6 +23815,7 @@ function createHtmlPage(opts, content) {
|
|
|
23803
23815
|
|
|
23804
23816
|
|
|
23805
23817
|
|
|
23818
|
+
|
|
23806
23819
|
const {
|
|
23807
23820
|
getI18n: export_hook_getI18n,
|
|
23808
23821
|
hooks: export_hook_hooks,
|
|
@@ -24204,7 +24217,7 @@ export_hook_hooks.add('tableExportModule', {
|
|
|
24204
24217
|
cellValue = htmlCellElem.innerText.trim();
|
|
24205
24218
|
} else {
|
|
24206
24219
|
const cell = $xeTable.getCellElement(row, column);
|
|
24207
|
-
if (cell) {
|
|
24220
|
+
if (cell && !hasClass(cell, 'is--progress')) {
|
|
24208
24221
|
cellValue = cell.innerText.trim();
|
|
24209
24222
|
}
|
|
24210
24223
|
}
|
|
@@ -24274,7 +24287,7 @@ export_hook_hooks.add('tableExportModule', {
|
|
|
24274
24287
|
cellValue = htmlCellElem.innerText.trim();
|
|
24275
24288
|
} else {
|
|
24276
24289
|
const cell = $xeTable.getCellElement(row, column);
|
|
24277
|
-
if (cell) {
|
|
24290
|
+
if (cell && !hasClass(cell, 'is--progress')) {
|
|
24278
24291
|
cellValue = cell.innerText.trim();
|
|
24279
24292
|
}
|
|
24280
24293
|
}
|