vxe-table 4.23.8 → 4.23.9
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/dist/all.esm.js +5715 -3783
- package/es/components.d.ts +1 -0
- package/es/components.js +2 -7
- package/es/grid/src/emits.js +1 -15
- package/es/grid/src/grid.js +397 -120
- package/es/index.esm.js +1 -0
- package/es/index.js +1 -0
- package/es/table/module/custom/hook.js +49 -42
- package/es/table/module/custom/panel.js +777 -527
- package/es/table/module/edit/hook.js +140 -62
- package/es/table/module/export/export-panel.js +399 -316
- package/es/table/module/export/hook.js +395 -337
- package/es/table/module/export/import-panel.js +152 -123
- package/es/table/module/filter/hook.js +16 -2
- package/es/table/module/filter/panel.js +146 -84
- package/es/table/module/keyboard/hook.js +8 -4
- package/es/table/module/menu/panel.js +197 -126
- package/es/table/render/index.js +151 -98
- package/es/table/src/body.js +355 -233
- package/es/table/src/cell.js +426 -269
- package/es/table/src/columnInfo.js +1 -0
- package/es/table/src/footer.js +144 -99
- package/es/table/src/group.js +7 -3
- package/es/table/src/header.js +229 -172
- package/es/table/src/table.js +1503 -1030
- package/es/table/src/util.js +15 -19
- package/es/toolbar/src/toolbar.js +132 -75
- package/es/ui/index.js +1 -1
- package/es/ui/src/dom.js +9 -6
- package/es/ui/src/log.js +1 -1
- package/es/ui/src/utils.d.ts +1 -1
- package/lib/components.js +2 -7
- package/lib/grid/src/emits.js +1 -15
- package/lib/grid/src/grid.js +397 -120
- package/lib/index.common.js +1 -0
- package/lib/index.js +1 -0
- package/lib/index.umd.js +5732 -3800
- package/lib/index.umd.min.js +3 -3
- package/lib/table/module/custom/hook.js +49 -42
- package/lib/table/module/custom/panel.js +777 -527
- package/lib/table/module/edit/hook.js +140 -62
- package/lib/table/module/export/export-panel.js +399 -316
- package/lib/table/module/export/hook.js +395 -337
- package/lib/table/module/export/import-panel.js +152 -123
- package/lib/table/module/filter/hook.js +16 -2
- package/lib/table/module/filter/panel.js +146 -84
- package/lib/table/module/keyboard/hook.js +8 -4
- package/lib/table/module/menu/panel.js +197 -126
- package/lib/table/render/index.js +151 -98
- package/lib/table/src/body.js +355 -233
- package/lib/table/src/cell.js +426 -269
- package/lib/table/src/columnInfo.js +1 -0
- package/lib/table/src/footer.js +144 -99
- package/lib/table/src/group.js +7 -3
- package/lib/table/src/header.js +229 -172
- package/lib/table/src/table.js +1471 -1029
- package/lib/table/src/util.js +15 -19
- package/lib/toolbar/src/toolbar.js +132 -75
- package/lib/ui/index.js +1 -1
- package/lib/ui/src/dom.js +9 -6
- package/lib/ui/src/log.js +1 -1
- package/package.json +2 -2
- package/packages/colgroup/index.ts +22 -22
- package/packages/column/index.ts +22 -22
- package/packages/components.ts +41 -44
- package/packages/grid/index.ts +18 -18
- package/packages/grid/src/emits.ts +5 -19
- package/packages/grid/src/grid.ts +2229 -1925
- package/packages/grid/src/props.ts +22 -23
- package/packages/index.ts +11 -11
- package/packages/locale/lang/fr-FR.ts +15 -15
- package/packages/locale/lang/it-IT.ts +4 -4
- package/packages/locale/lang/uk-UA.ts +1 -1
- package/packages/locale/lang/uz-UZ.ts +13 -13
- package/packages/locale/lang/zh-CN.ts +907 -907
- package/packages/table/index.ts +26 -26
- package/packages/table/module/custom/hook.ts +510 -503
- package/packages/table/module/custom/panel.ts +2002 -1743
- package/packages/table/module/edit/hook.ts +1224 -1131
- package/packages/table/module/export/export-panel.ts +697 -611
- package/packages/table/module/export/hook.ts +2160 -2059
- package/packages/table/module/export/import-panel.ts +319 -279
- package/packages/table/module/export/util.ts +25 -24
- package/packages/table/module/filter/hook.ts +519 -501
- package/packages/table/module/filter/panel.ts +368 -304
- package/packages/table/module/keyboard/hook.ts +498 -494
- package/packages/table/module/menu/hook.ts +330 -330
- package/packages/table/module/menu/panel.ts +272 -201
- package/packages/table/module/validator/hook.ts +653 -635
- package/packages/table/render/index.ts +1819 -1744
- package/packages/table/src/body.ts +1078 -955
- package/packages/table/src/cell.ts +1524 -1359
- package/packages/table/src/column.ts +192 -192
- package/packages/table/src/columnInfo.ts +232 -232
- package/packages/table/src/emits.ts +134 -134
- package/packages/table/src/footer.ts +425 -380
- package/packages/table/src/group.ts +67 -63
- package/packages/table/src/header.ts +642 -581
- package/packages/table/src/props.ts +336 -336
- package/packages/table/src/store.ts +14 -14
- package/packages/table/src/table.ts +16011 -15454
- package/packages/table/src/use/cell-view.ts +41 -44
- package/packages/table/src/use/index.ts +1 -1
- package/packages/table/src/util.ts +1206 -1216
- package/packages/toolbar/index.ts +18 -18
- package/packages/toolbar/src/toolbar.ts +768 -706
- package/packages/ui/index.ts +519 -520
- package/packages/ui/src/anime.ts +51 -52
- package/packages/ui/src/comp.ts +3 -3
- package/packages/ui/src/dom.ts +466 -463
- package/packages/ui/src/log.ts +19 -19
- package/packages/ui/src/utils.ts +66 -66
- package/packages/ui/src/vn.ts +55 -55
- package/packages/v-x-e-table/index.d.ts +3 -3
- package/packages/v-x-e-table/index.ts +3 -3
- package/types/all.d.ts +76 -76
- package/types/index.d.ts +4 -4
- /package/dist/{iconfont.1793007753347.ttf → iconfont.1793009263429.ttf} +0 -0
- /package/dist/{iconfont.1793007753347.woff → iconfont.1793009263429.woff} +0 -0
- /package/dist/{iconfont.1793007753347.woff2 → iconfont.1793009263429.woff2} +0 -0
- /package/es/{iconfont.1793007753347.ttf → iconfont.1793009263429.ttf} +0 -0
- /package/es/{iconfont.1793007753347.woff → iconfont.1793009263429.woff} +0 -0
- /package/es/{iconfont.1793007753347.woff2 → iconfont.1793009263429.woff2} +0 -0
- /package/lib/{iconfont.1793007753347.ttf → iconfont.1793009263429.ttf} +0 -0
- /package/lib/{iconfont.1793007753347.woff → iconfont.1793009263429.woff} +0 -0
- /package/lib/{iconfont.1793007753347.woff2 → iconfont.1793009263429.woff2} +0 -0
package/lib/table/src/table.js
CHANGED
|
@@ -259,17 +259,20 @@ var table_default = (0, import_comp.defineVxeComponent)({
|
|
|
259
259
|
const scrollbarYToLeft = computeScrollbarYToLeft.value;
|
|
260
260
|
const scrollXVisible = computeScrollXVisible.value;
|
|
261
261
|
const scrollYVisible = computeScrollYVisible.value;
|
|
262
|
-
return domUtils.buildClass(
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
262
|
+
return domUtils.buildClass(
|
|
263
|
+
[
|
|
264
|
+
"vxe-scrollbar is--virtual",
|
|
265
|
+
scrollbarOpts.fluentOverlay ? "is--fluent-overlay" : "is--default-mode",
|
|
266
|
+
`ov-x--${scrollXVisible === false ? "hidden" : "visible"}`,
|
|
267
|
+
`ov-y--${scrollYVisible === false ? "hidden" : "visible"}`,
|
|
268
|
+
`sx-pos--${scrollbarXToTop ? "top" : "bottom"}`,
|
|
269
|
+
`sy-pos--${scrollbarYToLeft ? "left" : "right"}`
|
|
270
|
+
],
|
|
271
|
+
{
|
|
272
|
+
"overflow-y": yThumbHeight,
|
|
273
|
+
"overflow-x": xThumbWidth
|
|
274
|
+
}
|
|
275
|
+
);
|
|
273
276
|
});
|
|
274
277
|
const computeScrollYThreshold = (0, import_vue.computed)(() => {
|
|
275
278
|
const virtualYOpts = computeVirtualYOpts.value;
|
|
@@ -372,17 +375,29 @@ var table_default = (0, import_comp.defineVxeComponent)({
|
|
|
372
375
|
});
|
|
373
376
|
const computeHeaderTooltipOpts = (0, import_vue.computed)(() => {
|
|
374
377
|
const tooltipOpts = computeTooltipOpts.value;
|
|
375
|
-
return Object.assign(
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
378
|
+
return Object.assign(
|
|
379
|
+
{},
|
|
380
|
+
getConfig().tooltip,
|
|
381
|
+
{
|
|
382
|
+
enterable: tooltipOpts.enterable,
|
|
383
|
+
defaultPlacement: tooltipOpts.defaultPlacement
|
|
384
|
+
},
|
|
385
|
+
getConfig().table.headerTooltipConfig,
|
|
386
|
+
props.headerTooltipConfig
|
|
387
|
+
);
|
|
379
388
|
});
|
|
380
389
|
const computeFooterTooltipOpts = (0, import_vue.computed)(() => {
|
|
381
390
|
const tooltipOpts = computeTooltipOpts.value;
|
|
382
|
-
return Object.assign(
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
391
|
+
return Object.assign(
|
|
392
|
+
{},
|
|
393
|
+
getConfig().tooltip,
|
|
394
|
+
{
|
|
395
|
+
enterable: tooltipOpts.enterable,
|
|
396
|
+
defaultPlacement: tooltipOpts.defaultPlacement
|
|
397
|
+
},
|
|
398
|
+
getConfig().table.footerTooltipConfig,
|
|
399
|
+
props.footerTooltipConfig
|
|
400
|
+
);
|
|
386
401
|
});
|
|
387
402
|
const computeTableTipConfig = (0, import_vue.computed)(() => {
|
|
388
403
|
const { tooltipStore } = reactData;
|
|
@@ -888,21 +903,7 @@ var table_default = (0, import_comp.defineVxeComponent)({
|
|
|
888
903
|
// 已废弃
|
|
889
904
|
xegrid: $xeGrid
|
|
890
905
|
};
|
|
891
|
-
const {
|
|
892
|
-
refTrackXElem,
|
|
893
|
-
refTrackYElem,
|
|
894
|
-
refThumbXElem,
|
|
895
|
-
refThumbYElem,
|
|
896
|
-
updateThumbSize,
|
|
897
|
-
updateThumbOffset,
|
|
898
|
-
clickTrackXEvent,
|
|
899
|
-
clickTrackYEvent,
|
|
900
|
-
pointerdownThumbXEvent,
|
|
901
|
-
pointermoveThumbXEvent,
|
|
902
|
-
cleatPointerThumbEvent,
|
|
903
|
-
pointerdownThumbYEvent,
|
|
904
|
-
pointermoveThumbYEvent
|
|
905
|
-
} = useFns.useInitVScrollbar($xeTable);
|
|
906
|
+
const { refTrackXElem, refTrackYElem, refThumbXElem, refThumbYElem, updateThumbSize, updateThumbOffset, clickTrackXEvent, clickTrackYEvent, pointerdownThumbXEvent, pointermoveThumbXEvent, cleatPointerThumbEvent, pointerdownThumbYEvent, pointermoveThumbYEvent } = useFns.useInitVScrollbar($xeTable);
|
|
906
907
|
const eqCellValue = (newRow, oldRow, field) => {
|
|
907
908
|
const val1 = import_xe_utils.default.get(newRow, field);
|
|
908
909
|
const val2 = import_xe_utils.default.get(oldRow, field);
|
|
@@ -1563,13 +1564,17 @@ var table_default = (0, import_comp.defineVxeComponent)({
|
|
|
1563
1564
|
sortData = import_xe_utils.default.orderBy(sortRests, { field: "index", order: "asc" }).map((item) => ({ k: item.key }));
|
|
1564
1565
|
}
|
|
1565
1566
|
let colNum = 1;
|
|
1566
|
-
import_xe_utils.default.eachTree(
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1567
|
+
import_xe_utils.default.eachTree(
|
|
1568
|
+
sortData,
|
|
1569
|
+
(sObj, index, sOjs, path, pSObj) => {
|
|
1570
|
+
sortColMaps[sObj.k] = {
|
|
1571
|
+
key: sObj.k,
|
|
1572
|
+
sNum: colNum++,
|
|
1573
|
+
pKey: pSObj ? pSObj.k : null
|
|
1574
|
+
};
|
|
1575
|
+
},
|
|
1576
|
+
{ children: "c" }
|
|
1577
|
+
);
|
|
1573
1578
|
}
|
|
1574
1579
|
const colKeyMaps = {};
|
|
1575
1580
|
const allCols = [];
|
|
@@ -1637,9 +1642,7 @@ var table_default = (0, import_comp.defineVxeComponent)({
|
|
|
1637
1642
|
}
|
|
1638
1643
|
const storeData = getCustomStorageMap(tableId);
|
|
1639
1644
|
if (restoreStore) {
|
|
1640
|
-
return Promise.resolve(
|
|
1641
|
-
restoreStore({ $table: $xeTable, id: tableId, type: "restore", storeData })
|
|
1642
|
-
).then((storeData2) => {
|
|
1645
|
+
return Promise.resolve(restoreStore({ $table: $xeTable, id: tableId, type: "restore", storeData })).then((storeData2) => {
|
|
1643
1646
|
if (!storeData2) {
|
|
1644
1647
|
return;
|
|
1645
1648
|
}
|
|
@@ -1778,7 +1781,7 @@ var table_default = (0, import_comp.defineVxeComponent)({
|
|
|
1778
1781
|
if (expandOpts.mode !== "fixed" && mouseOpts.area) {
|
|
1779
1782
|
errLog("vxe.error.errConflicts", ["mouse-config.area", "column.type=expand"]);
|
|
1780
1783
|
}
|
|
1781
|
-
if (expandOpts.mode !== "inside" &&
|
|
1784
|
+
if (expandOpts.mode !== "inside" && treeConfig && !treeOpts.transform) {
|
|
1782
1785
|
errLog("vxe.error.notConflictProp", ["tree-config.transform=false", "expand-config.mode=inside"]);
|
|
1783
1786
|
}
|
|
1784
1787
|
}
|
|
@@ -2081,24 +2084,28 @@ var table_default = (0, import_comp.defineVxeComponent)({
|
|
|
2081
2084
|
const fullMaps = {};
|
|
2082
2085
|
let rowNum = 0;
|
|
2083
2086
|
const { handleGetRowId } = (0, import_util.createHandleGetRowId)($xeTable);
|
|
2084
|
-
import_xe_utils.default.eachTree(
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
rowRest
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2087
|
+
import_xe_utils.default.eachTree(
|
|
2088
|
+
afterTreeFullData,
|
|
2089
|
+
(row, index, items, path, parentRow) => {
|
|
2090
|
+
const rowid = handleGetRowId(row);
|
|
2091
|
+
const rowRest = fullAllDataRowIdData[rowid];
|
|
2092
|
+
const seq = path.map((num, i) => i % 2 === 0 ? Number(num) + 1 : ".").join("");
|
|
2093
|
+
if (rowRest) {
|
|
2094
|
+
rowRest.seq = seq;
|
|
2095
|
+
rowRest._seq = rowNum;
|
|
2096
|
+
rowRest.treeIndex = index;
|
|
2097
|
+
rowRest._index = rowNum;
|
|
2098
|
+
rowRest._tIndex = rowNum;
|
|
2099
|
+
} else {
|
|
2100
|
+
const rest = { row, rowid, _seq: rowNum, seq, index, $index: -1, _index: rowNum, treeIndex: index, _tIndex: rowNum, items, parent: parentRow, level: 0, height: 0, resizeHeight: 0, oTop: 0, expandHeight: 0 };
|
|
2101
|
+
fullAllDataRowIdData[rowid] = rest;
|
|
2102
|
+
fullDataRowIdData[rowid] = rest;
|
|
2103
|
+
}
|
|
2104
|
+
rowNum++;
|
|
2105
|
+
fullMaps[rowid] = row;
|
|
2106
|
+
},
|
|
2107
|
+
{ children: transform ? mapChildrenField : childrenField }
|
|
2108
|
+
);
|
|
2102
2109
|
if (transform) {
|
|
2103
2110
|
afterFullData.forEach((row, index) => {
|
|
2104
2111
|
const rowid = handleGetRowId(row);
|
|
@@ -2152,35 +2159,43 @@ var table_default = (0, import_comp.defineVxeComponent)({
|
|
|
2152
2159
|
const expandMaps = {};
|
|
2153
2160
|
if (treeConfig && treeOpts.transform) {
|
|
2154
2161
|
const childrenField = treeOpts.children || treeOpts.childrenField;
|
|
2155
|
-
import_xe_utils.default.eachTree(
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
const
|
|
2160
|
-
if (
|
|
2161
|
-
rowRest
|
|
2162
|
+
import_xe_utils.default.eachTree(
|
|
2163
|
+
internalData.afterTreeFullData,
|
|
2164
|
+
(row, index, items, path, parentRow) => {
|
|
2165
|
+
const rowid = handleGetRowId(row);
|
|
2166
|
+
const parentRowid = handleGetRowId(parentRow);
|
|
2167
|
+
if (!parentRow || expandMaps[parentRowid] && treeExpandedMaps[parentRowid]) {
|
|
2168
|
+
const rowRest = fullAllDataRowIdData[rowid];
|
|
2169
|
+
if (rowRest) {
|
|
2170
|
+
rowRest._index = fullData.length;
|
|
2171
|
+
}
|
|
2172
|
+
expandMaps[rowid] = 1;
|
|
2173
|
+
fullData.push(row);
|
|
2162
2174
|
}
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
}, { children: childrenField });
|
|
2175
|
+
},
|
|
2176
|
+
{ children: childrenField }
|
|
2177
|
+
);
|
|
2167
2178
|
internalData.afterFullData = fullData;
|
|
2168
2179
|
updateScrollYStatus(fullData);
|
|
2169
2180
|
return fullData;
|
|
2170
2181
|
} else if (isRowGroupStatus) {
|
|
2171
2182
|
const { childrenField } = aggregateOpts;
|
|
2172
|
-
import_xe_utils.default.eachTree(
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
const
|
|
2177
|
-
if (
|
|
2178
|
-
rowRest
|
|
2183
|
+
import_xe_utils.default.eachTree(
|
|
2184
|
+
internalData.afterGroupFullData,
|
|
2185
|
+
(row, index, items, path, parentRow) => {
|
|
2186
|
+
const rowid = handleGetRowId(row);
|
|
2187
|
+
const parentRowid = handleGetRowId(parentRow);
|
|
2188
|
+
if (!parentRow || expandMaps[parentRowid] && rowGroupExpandedMaps[parentRowid]) {
|
|
2189
|
+
const rowRest = fullAllDataRowIdData[rowid];
|
|
2190
|
+
if (rowRest) {
|
|
2191
|
+
rowRest._index = fullData.length;
|
|
2192
|
+
}
|
|
2193
|
+
expandMaps[rowid] = 1;
|
|
2194
|
+
fullData.push(row);
|
|
2179
2195
|
}
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
}, { children: childrenField });
|
|
2196
|
+
},
|
|
2197
|
+
{ children: childrenField }
|
|
2198
|
+
);
|
|
2184
2199
|
internalData.afterFullData = fullData;
|
|
2185
2200
|
updateScrollYStatus(fullData);
|
|
2186
2201
|
return fullData;
|
|
@@ -2301,7 +2316,10 @@ var table_default = (0, import_comp.defineVxeComponent)({
|
|
|
2301
2316
|
children: aggregateOpts.mapChildrenField
|
|
2302
2317
|
});
|
|
2303
2318
|
tableTree = import_xe_utils.default.toArrayTree(
|
|
2304
|
-
import_xe_utils.default.orderBy(
|
|
2319
|
+
import_xe_utils.default.orderBy(
|
|
2320
|
+
treeList,
|
|
2321
|
+
orderColumns.map(({ column, order }) => [getOrderField(column), order])
|
|
2322
|
+
),
|
|
2305
2323
|
{
|
|
2306
2324
|
key: aggregateOpts.rowField,
|
|
2307
2325
|
parentKey: aggregateOpts.parentField,
|
|
@@ -2320,7 +2338,10 @@ var table_default = (0, import_comp.defineVxeComponent)({
|
|
|
2320
2338
|
children: mapChildrenField
|
|
2321
2339
|
});
|
|
2322
2340
|
tableTree = import_xe_utils.default.toArrayTree(
|
|
2323
|
-
import_xe_utils.default.orderBy(
|
|
2341
|
+
import_xe_utils.default.orderBy(
|
|
2342
|
+
treeList,
|
|
2343
|
+
orderColumns.map(({ column, order }) => [getOrderField(column), order])
|
|
2344
|
+
),
|
|
2324
2345
|
{
|
|
2325
2346
|
key: rowField,
|
|
2326
2347
|
parentKey: parentField,
|
|
@@ -2335,7 +2356,10 @@ var table_default = (0, import_comp.defineVxeComponent)({
|
|
|
2335
2356
|
const sortRests = allSortMethod({ data: tableData, sortList: orderColumns, $table: $xeTable });
|
|
2336
2357
|
tableData = import_xe_utils.default.isArray(sortRests) ? sortRests : tableData;
|
|
2337
2358
|
} else {
|
|
2338
|
-
tableData = import_xe_utils.default.orderBy(
|
|
2359
|
+
tableData = import_xe_utils.default.orderBy(
|
|
2360
|
+
tableData,
|
|
2361
|
+
orderColumns.map(({ column, order }) => [getOrderField(column), order])
|
|
2362
|
+
);
|
|
2339
2363
|
}
|
|
2340
2364
|
tableTree = tableData;
|
|
2341
2365
|
}
|
|
@@ -2655,6 +2679,7 @@ var table_default = (0, import_comp.defineVxeComponent)({
|
|
|
2655
2679
|
defaultSort = [defaultSort];
|
|
2656
2680
|
}
|
|
2657
2681
|
if (defaultSort.length) {
|
|
2682
|
+
;
|
|
2658
2683
|
(sortConfig.multiple ? defaultSort : defaultSort.slice(0, 1)).forEach((item, index) => {
|
|
2659
2684
|
const { field, order } = item;
|
|
2660
2685
|
if (field && order) {
|
|
@@ -2751,7 +2776,7 @@ var table_default = (0, import_comp.defineVxeComponent)({
|
|
|
2751
2776
|
const handleCheckedRadioRow = (row, isForce) => {
|
|
2752
2777
|
const radioOpts = computeRadioOpts.value;
|
|
2753
2778
|
const { checkMethod } = radioOpts;
|
|
2754
|
-
if (row && (isForce ||
|
|
2779
|
+
if (row && (isForce || !checkMethod || checkMethod({ $table: $xeTable, row }))) {
|
|
2755
2780
|
reactData.selectRadioRow = row;
|
|
2756
2781
|
handleRadioReserveRow(row);
|
|
2757
2782
|
}
|
|
@@ -2779,7 +2804,7 @@ var table_default = (0, import_comp.defineVxeComponent)({
|
|
|
2779
2804
|
const selectRowMaps = {};
|
|
2780
2805
|
if (checkField) {
|
|
2781
2806
|
const checkValFn = (row) => {
|
|
2782
|
-
if (isForce ||
|
|
2807
|
+
if (isForce || !checkMethod || checkMethod({ $table: $xeTable, row })) {
|
|
2783
2808
|
if (checked) {
|
|
2784
2809
|
selectRowMaps[handleGetRowId(row)] = row;
|
|
2785
2810
|
}
|
|
@@ -2797,38 +2822,54 @@ var table_default = (0, import_comp.defineVxeComponent)({
|
|
|
2797
2822
|
} else {
|
|
2798
2823
|
if (isRowGroupStatus) {
|
|
2799
2824
|
if (checked) {
|
|
2800
|
-
import_xe_utils.default.eachTree(
|
|
2801
|
-
|
|
2802
|
-
|
|
2803
|
-
|
|
2804
|
-
|
|
2805
|
-
}, { children: aggregateOpts.mapChildrenField });
|
|
2806
|
-
} else {
|
|
2807
|
-
if (!isForce && checkMethod) {
|
|
2808
|
-
import_xe_utils.default.eachTree(afterGroupFullData, (row) => {
|
|
2809
|
-
const rowid = handleGetRowId(row);
|
|
2810
|
-
if (checkMethod({ $table: $xeTable, row }) ? false : selectCheckboxMaps[rowid]) {
|
|
2825
|
+
import_xe_utils.default.eachTree(
|
|
2826
|
+
afterGroupFullData,
|
|
2827
|
+
(row) => {
|
|
2828
|
+
if (isForce || !checkMethod || checkMethod({ $table: $xeTable, row })) {
|
|
2829
|
+
const rowid = handleGetRowId(row);
|
|
2811
2830
|
selectRowMaps[rowid] = row;
|
|
2812
2831
|
}
|
|
2813
|
-
},
|
|
2832
|
+
},
|
|
2833
|
+
{ children: aggregateOpts.mapChildrenField }
|
|
2834
|
+
);
|
|
2835
|
+
} else {
|
|
2836
|
+
if (!isForce && checkMethod) {
|
|
2837
|
+
import_xe_utils.default.eachTree(
|
|
2838
|
+
afterGroupFullData,
|
|
2839
|
+
(row) => {
|
|
2840
|
+
const rowid = handleGetRowId(row);
|
|
2841
|
+
if (checkMethod({ $table: $xeTable, row }) ? false : selectCheckboxMaps[rowid]) {
|
|
2842
|
+
selectRowMaps[rowid] = row;
|
|
2843
|
+
}
|
|
2844
|
+
},
|
|
2845
|
+
{ children: aggregateOpts.mapChildrenField }
|
|
2846
|
+
);
|
|
2814
2847
|
}
|
|
2815
2848
|
}
|
|
2816
2849
|
} else if (treeConfig) {
|
|
2817
2850
|
if (checked) {
|
|
2818
|
-
import_xe_utils.default.eachTree(
|
|
2819
|
-
|
|
2820
|
-
|
|
2821
|
-
|
|
2822
|
-
|
|
2823
|
-
}, { children: childrenField });
|
|
2824
|
-
} else {
|
|
2825
|
-
if (!isForce && checkMethod) {
|
|
2826
|
-
import_xe_utils.default.eachTree(afterTreeFullData, (row) => {
|
|
2827
|
-
const rowid = handleGetRowId(row);
|
|
2828
|
-
if (checkMethod({ $table: $xeTable, row }) ? false : selectCheckboxMaps[rowid]) {
|
|
2851
|
+
import_xe_utils.default.eachTree(
|
|
2852
|
+
afterTreeFullData,
|
|
2853
|
+
(row) => {
|
|
2854
|
+
if (isForce || !checkMethod || checkMethod({ $table: $xeTable, row })) {
|
|
2855
|
+
const rowid = handleGetRowId(row);
|
|
2829
2856
|
selectRowMaps[rowid] = row;
|
|
2830
2857
|
}
|
|
2831
|
-
},
|
|
2858
|
+
},
|
|
2859
|
+
{ children: childrenField }
|
|
2860
|
+
);
|
|
2861
|
+
} else {
|
|
2862
|
+
if (!isForce && checkMethod) {
|
|
2863
|
+
import_xe_utils.default.eachTree(
|
|
2864
|
+
afterTreeFullData,
|
|
2865
|
+
(row) => {
|
|
2866
|
+
const rowid = handleGetRowId(row);
|
|
2867
|
+
if (checkMethod({ $table: $xeTable, row }) ? false : selectCheckboxMaps[rowid]) {
|
|
2868
|
+
selectRowMaps[rowid] = row;
|
|
2869
|
+
}
|
|
2870
|
+
},
|
|
2871
|
+
{ children: childrenField }
|
|
2872
|
+
);
|
|
2832
2873
|
}
|
|
2833
2874
|
}
|
|
2834
2875
|
} else {
|
|
@@ -2943,9 +2984,7 @@ var table_default = (0, import_comp.defineVxeComponent)({
|
|
|
2943
2984
|
const rowid = (0, import_util.getRowid)($xeTable, row);
|
|
2944
2985
|
const rowRest = fullAllDataRowIdData[rowid];
|
|
2945
2986
|
treeExpandLazyLoadedMaps[rowid] = row;
|
|
2946
|
-
Promise.resolve(
|
|
2947
|
-
loadMethod({ $table: $xeTable, row })
|
|
2948
|
-
).then((childRecords) => {
|
|
2987
|
+
Promise.resolve(loadMethod({ $table: $xeTable, row })).then((childRecords) => {
|
|
2949
2988
|
if (rowRest) {
|
|
2950
2989
|
rowRest.treeLoaded = true;
|
|
2951
2990
|
}
|
|
@@ -3254,18 +3293,14 @@ var table_default = (0, import_comp.defineVxeComponent)({
|
|
|
3254
3293
|
if (rceTimeout) {
|
|
3255
3294
|
clearTimeout(rceTimeout);
|
|
3256
3295
|
if (rceRunTime && rceRunTime + minRunDelay < Date.now()) {
|
|
3257
|
-
resolve(
|
|
3258
|
-
handleRecalculateStyle(reFull, reWidth, reHeight)
|
|
3259
|
-
);
|
|
3296
|
+
resolve(handleRecalculateStyle(reFull, reWidth, reHeight));
|
|
3260
3297
|
} else {
|
|
3261
3298
|
(0, import_vue.nextTick)(() => {
|
|
3262
3299
|
resolve();
|
|
3263
3300
|
});
|
|
3264
3301
|
}
|
|
3265
3302
|
} else {
|
|
3266
|
-
resolve(
|
|
3267
|
-
handleRecalculateStyle(reFull, reWidth, reHeight)
|
|
3268
|
-
);
|
|
3303
|
+
resolve(handleRecalculateStyle(reFull, reWidth, reHeight));
|
|
3269
3304
|
}
|
|
3270
3305
|
if ($xeGanttView && $xeGanttView.handleLazyRecalculate) {
|
|
3271
3306
|
$xeGanttView.handleLazyRecalculate();
|
|
@@ -3307,6 +3342,7 @@ var table_default = (0, import_comp.defineVxeComponent)({
|
|
|
3307
3342
|
const aggGroupFields = [];
|
|
3308
3343
|
const aggGroupConfs = [];
|
|
3309
3344
|
if (groupFields) {
|
|
3345
|
+
;
|
|
3310
3346
|
(import_xe_utils.default.isArray(groupFields) ? groupFields : [groupFields]).forEach((field) => {
|
|
3311
3347
|
aggGroupFields.push(field);
|
|
3312
3348
|
aggGroupConfs.push({
|
|
@@ -3361,14 +3397,14 @@ var table_default = (0, import_comp.defineVxeComponent)({
|
|
|
3361
3397
|
childCount,
|
|
3362
3398
|
aggValue: currAggData ? currAggData.value : 0,
|
|
3363
3399
|
/**
|
|
3364
|
-
|
|
3365
|
-
|
|
3366
|
-
|
|
3400
|
+
* 已废弃
|
|
3401
|
+
* @deprecated
|
|
3402
|
+
*/
|
|
3367
3403
|
children: childList,
|
|
3368
3404
|
/**
|
|
3369
|
-
|
|
3370
|
-
|
|
3371
|
-
|
|
3405
|
+
* 已废弃
|
|
3406
|
+
* @deprecated
|
|
3407
|
+
*/
|
|
3372
3408
|
totalValue: childCount
|
|
3373
3409
|
};
|
|
3374
3410
|
let aggVal = 0;
|
|
@@ -3404,11 +3440,15 @@ var table_default = (0, import_comp.defineVxeComponent)({
|
|
|
3404
3440
|
const { mapChildrenField } = aggregateOpts;
|
|
3405
3441
|
if ((aggregateConfig || rowGroupConfig) && isRowGroupStatus) {
|
|
3406
3442
|
const aggList = [];
|
|
3407
|
-
import_xe_utils.default.eachTree(
|
|
3408
|
-
|
|
3409
|
-
|
|
3410
|
-
|
|
3411
|
-
|
|
3443
|
+
import_xe_utils.default.eachTree(
|
|
3444
|
+
tableFullGroupData,
|
|
3445
|
+
(row) => {
|
|
3446
|
+
if (row.isAggregate) {
|
|
3447
|
+
aggList.push(row);
|
|
3448
|
+
}
|
|
3449
|
+
},
|
|
3450
|
+
{ children: mapChildrenField }
|
|
3451
|
+
);
|
|
3412
3452
|
handleeGroupSummary(aggList);
|
|
3413
3453
|
}
|
|
3414
3454
|
};
|
|
@@ -3667,10 +3707,14 @@ var table_default = (0, import_comp.defineVxeComponent)({
|
|
|
3667
3707
|
}
|
|
3668
3708
|
handleReserveStatus();
|
|
3669
3709
|
$xeTable.checkSelectionStatus();
|
|
3670
|
-
$xeTable.dispatchEvent(
|
|
3671
|
-
|
|
3672
|
-
|
|
3673
|
-
|
|
3710
|
+
$xeTable.dispatchEvent(
|
|
3711
|
+
"data-change",
|
|
3712
|
+
{
|
|
3713
|
+
visibleColumn: internalData.visibleColumn,
|
|
3714
|
+
visibleData: internalData.afterFullData
|
|
3715
|
+
},
|
|
3716
|
+
null
|
|
3717
|
+
);
|
|
3674
3718
|
return new Promise((resolve) => {
|
|
3675
3719
|
(0, import_vue.nextTick)().then(() => handleRecalculateStyle(false, false, false)).then(() => {
|
|
3676
3720
|
handleRecalculateStyle(false, true, true);
|
|
@@ -3716,16 +3760,24 @@ var table_default = (0, import_comp.defineVxeComponent)({
|
|
|
3716
3760
|
});
|
|
3717
3761
|
}).then(() => {
|
|
3718
3762
|
if (initStatus) {
|
|
3719
|
-
dispatchEvent(
|
|
3720
|
-
|
|
3721
|
-
|
|
3722
|
-
|
|
3723
|
-
|
|
3763
|
+
dispatchEvent(
|
|
3764
|
+
"data-rendered",
|
|
3765
|
+
{
|
|
3766
|
+
isReload,
|
|
3767
|
+
visibleColumn: internalData.visibleColumn,
|
|
3768
|
+
visibleData: internalData.afterFullData
|
|
3769
|
+
},
|
|
3770
|
+
null
|
|
3771
|
+
);
|
|
3724
3772
|
} else {
|
|
3725
|
-
dispatchEvent(
|
|
3726
|
-
|
|
3727
|
-
|
|
3728
|
-
|
|
3773
|
+
dispatchEvent(
|
|
3774
|
+
"init-rendered",
|
|
3775
|
+
{
|
|
3776
|
+
visibleColumn: internalData.visibleColumn,
|
|
3777
|
+
visibleData: internalData.afterFullData
|
|
3778
|
+
},
|
|
3779
|
+
null
|
|
3780
|
+
);
|
|
3729
3781
|
}
|
|
3730
3782
|
});
|
|
3731
3783
|
});
|
|
@@ -3929,7 +3981,7 @@ var table_default = (0, import_comp.defineVxeComponent)({
|
|
|
3929
3981
|
$xeTable.clearMergeFooterItems();
|
|
3930
3982
|
$xeTable.handleTableData(true);
|
|
3931
3983
|
$xeTable.handleAggregateSummaryData();
|
|
3932
|
-
if ((scrollXLoad || scrollYLoad) &&
|
|
3984
|
+
if ((scrollXLoad || scrollYLoad) && expandColumn && expandOpts.mode !== "fixed") {
|
|
3933
3985
|
warnLog("vxe.error.scrollErrProp", ["column.type=expand"]);
|
|
3934
3986
|
}
|
|
3935
3987
|
return (0, import_vue.nextTick)().then(() => {
|
|
@@ -3957,9 +4009,7 @@ var table_default = (0, import_comp.defineVxeComponent)({
|
|
|
3957
4009
|
reactData.updateColFlag++;
|
|
3958
4010
|
reactData.isColLoading = true;
|
|
3959
4011
|
initColumnHierarchy();
|
|
3960
|
-
return Promise.resolve(
|
|
3961
|
-
restoreCustomStorage()
|
|
3962
|
-
).then(() => {
|
|
4012
|
+
return Promise.resolve(restoreCustomStorage()).then(() => {
|
|
3963
4013
|
return buildColumnInfo();
|
|
3964
4014
|
});
|
|
3965
4015
|
};
|
|
@@ -3983,7 +4033,7 @@ var table_default = (0, import_comp.defineVxeComponent)({
|
|
|
3983
4033
|
const { transform } = treeOpts;
|
|
3984
4034
|
const allList = fullData || internalData.tableFullData;
|
|
3985
4035
|
let scrollYLoad = !!virtualYOpts.enabled && virtualYOpts.gt > -1 && (virtualYOpts.gt === 0 || virtualYOpts.gt < allList.length);
|
|
3986
|
-
if (scrollYLoad &&
|
|
4036
|
+
if (scrollYLoad && treeConfig && !transform) {
|
|
3987
4037
|
errLog("vxe.error.notSupportProp", ["[table] virtual-y-config.enabled=true", "tree-config.transform=false", "tree-config.transform=true"]);
|
|
3988
4038
|
scrollYLoad = false;
|
|
3989
4039
|
}
|
|
@@ -4141,12 +4191,16 @@ var table_default = (0, import_comp.defineVxeComponent)({
|
|
|
4141
4191
|
const handleCheckAllEvent = (evnt, value) => {
|
|
4142
4192
|
handleCheckedAllCheckboxRow(value);
|
|
4143
4193
|
if (evnt) {
|
|
4144
|
-
dispatchEvent(
|
|
4145
|
-
|
|
4146
|
-
|
|
4147
|
-
|
|
4148
|
-
|
|
4149
|
-
|
|
4194
|
+
dispatchEvent(
|
|
4195
|
+
"checkbox-all",
|
|
4196
|
+
{
|
|
4197
|
+
records: () => $xeTable.getCheckboxRecords(),
|
|
4198
|
+
reserves: () => $xeTable.getCheckboxReserveRecords(),
|
|
4199
|
+
indeterminates: () => $xeTable.getCheckboxIndeterminateRecords(),
|
|
4200
|
+
checked: value
|
|
4201
|
+
},
|
|
4202
|
+
evnt
|
|
4203
|
+
);
|
|
4150
4204
|
}
|
|
4151
4205
|
};
|
|
4152
4206
|
const loadScrollYData = () => {
|
|
@@ -4274,11 +4328,7 @@ var table_default = (0, import_comp.defineVxeComponent)({
|
|
|
4274
4328
|
});
|
|
4275
4329
|
}
|
|
4276
4330
|
updateRowExpandStyle();
|
|
4277
|
-
return Promise.all([
|
|
4278
|
-
xRest,
|
|
4279
|
-
yRest,
|
|
4280
|
-
scrollXLoad || scrollYLoad ? $xeTable.updateCellAreas() : null
|
|
4281
|
-
]);
|
|
4331
|
+
return Promise.all([xRest, yRest, scrollXLoad || scrollYLoad ? $xeTable.updateCellAreas() : null]);
|
|
4282
4332
|
};
|
|
4283
4333
|
const checkLastSyncScroll = (isRollX, isRollY) => {
|
|
4284
4334
|
const { lcsTimeout } = internalData;
|
|
@@ -4753,13 +4803,17 @@ var table_default = (0, import_comp.defineVxeComponent)({
|
|
|
4753
4803
|
sourceDataRowIdData[rowid2] = import_xe_utils.default.clone(childRow, true);
|
|
4754
4804
|
});
|
|
4755
4805
|
}
|
|
4756
|
-
import_xe_utils.default.eachTree(
|
|
4757
|
-
|
|
4758
|
-
|
|
4759
|
-
|
|
4760
|
-
|
|
4761
|
-
|
|
4762
|
-
|
|
4806
|
+
import_xe_utils.default.eachTree(
|
|
4807
|
+
rows,
|
|
4808
|
+
(childRow, index, items, path, parentItem, nodes) => {
|
|
4809
|
+
const rowid = (0, import_util.getRowid)($xeTable, childRow);
|
|
4810
|
+
const parentRow = parentItem || parentRest.row;
|
|
4811
|
+
const rest = { row: childRow, rowid, _seq: -1, seq: -1, index, _index: -1, $index: -1, treeIndex: -1, _tIndex: -1, items, parent: parentRow, level: parentLevel + nodes.length, height: 0, resizeHeight: 0, oTop: 0, expandHeight: 0 };
|
|
4812
|
+
fullDataRowIdData[rowid] = rest;
|
|
4813
|
+
fullAllDataRowIdData[rowid] = rest;
|
|
4814
|
+
},
|
|
4815
|
+
{ children: childrenField }
|
|
4816
|
+
);
|
|
4763
4817
|
row[childrenField] = rows;
|
|
4764
4818
|
if (transform) {
|
|
4765
4819
|
row[mapChildrenField] = import_xe_utils.default.clone(rows, false);
|
|
@@ -6237,9 +6291,13 @@ var table_default = (0, import_comp.defineVxeComponent)({
|
|
|
6237
6291
|
const { handleGetRowId } = (0, import_util.createHandleGetRowId)($xeTable);
|
|
6238
6292
|
const afterFullIdMaps = {};
|
|
6239
6293
|
if (treeConfig) {
|
|
6240
|
-
import_xe_utils.default.eachTree(
|
|
6241
|
-
|
|
6242
|
-
|
|
6294
|
+
import_xe_utils.default.eachTree(
|
|
6295
|
+
afterFullData,
|
|
6296
|
+
(row) => {
|
|
6297
|
+
afterFullIdMaps[handleGetRowId(row)] = 1;
|
|
6298
|
+
},
|
|
6299
|
+
{ children: childrenField }
|
|
6300
|
+
);
|
|
6243
6301
|
} else {
|
|
6244
6302
|
afterFullData.forEach((row) => {
|
|
6245
6303
|
afterFullIdMaps[handleGetRowId(row)] = 1;
|
|
@@ -6529,9 +6587,7 @@ var table_default = (0, import_comp.defineVxeComponent)({
|
|
|
6529
6587
|
const { multiple, remote, orders } = sortOpts;
|
|
6530
6588
|
if (sortConfs) {
|
|
6531
6589
|
if (import_xe_utils.default.isString(sortConfs)) {
|
|
6532
|
-
sortConfs = [
|
|
6533
|
-
{ field: sortConfs, order: sortOrder }
|
|
6534
|
-
];
|
|
6590
|
+
sortConfs = [{ field: sortConfs, order: sortOrder }];
|
|
6535
6591
|
}
|
|
6536
6592
|
}
|
|
6537
6593
|
if (!import_xe_utils.default.isArray(sortConfs)) {
|
|
@@ -6541,6 +6597,7 @@ var table_default = (0, import_comp.defineVxeComponent)({
|
|
|
6541
6597
|
if (!multiple) {
|
|
6542
6598
|
clearAllSort();
|
|
6543
6599
|
}
|
|
6600
|
+
;
|
|
6544
6601
|
(multiple ? sortConfs : [sortConfs[0]]).forEach((confs, index) => {
|
|
6545
6602
|
let { field, order } = confs;
|
|
6546
6603
|
let column = field;
|
|
@@ -6679,13 +6736,17 @@ var table_default = (0, import_comp.defineVxeComponent)({
|
|
|
6679
6736
|
filterStore.visible = false;
|
|
6680
6737
|
if (visible) {
|
|
6681
6738
|
const field = column ? column.field : null;
|
|
6682
|
-
dispatchEvent(
|
|
6683
|
-
|
|
6684
|
-
|
|
6685
|
-
|
|
6686
|
-
|
|
6687
|
-
|
|
6688
|
-
|
|
6739
|
+
dispatchEvent(
|
|
6740
|
+
"filter-visible",
|
|
6741
|
+
{
|
|
6742
|
+
column,
|
|
6743
|
+
property: field,
|
|
6744
|
+
field,
|
|
6745
|
+
filterList: () => $xeTable.getCheckedFilters(),
|
|
6746
|
+
visible: false
|
|
6747
|
+
},
|
|
6748
|
+
null
|
|
6749
|
+
);
|
|
6689
6750
|
}
|
|
6690
6751
|
return (0, import_vue.nextTick)();
|
|
6691
6752
|
},
|
|
@@ -6827,9 +6888,13 @@ var table_default = (0, import_comp.defineVxeComponent)({
|
|
|
6827
6888
|
const childrenField = treeOpts.children || treeOpts.childrenField;
|
|
6828
6889
|
let expandedRows = [];
|
|
6829
6890
|
if (props.treeConfig) {
|
|
6830
|
-
import_xe_utils.default.eachTree(
|
|
6831
|
-
|
|
6832
|
-
|
|
6891
|
+
import_xe_utils.default.eachTree(
|
|
6892
|
+
tableFullTreeData,
|
|
6893
|
+
(row) => {
|
|
6894
|
+
expandedRows.push(row);
|
|
6895
|
+
},
|
|
6896
|
+
{ children: childrenField }
|
|
6897
|
+
);
|
|
6833
6898
|
} else {
|
|
6834
6899
|
expandedRows = tableFullData;
|
|
6835
6900
|
}
|
|
@@ -6966,9 +7031,11 @@ var table_default = (0, import_comp.defineVxeComponent)({
|
|
|
6966
7031
|
return (0, import_vue.nextTick)();
|
|
6967
7032
|
}
|
|
6968
7033
|
if (confList.length) {
|
|
6969
|
-
handleUpdateRowGroup(
|
|
6970
|
-
|
|
6971
|
-
|
|
7034
|
+
handleUpdateRowGroup(
|
|
7035
|
+
confList.map((fieldOrColumn) => {
|
|
7036
|
+
return import_xe_utils.default.isString(fieldOrColumn) ? fieldOrColumn : fieldOrColumn.field;
|
|
7037
|
+
})
|
|
7038
|
+
);
|
|
6972
7039
|
return loadTableData(internalData.tableSynchData, false, true);
|
|
6973
7040
|
}
|
|
6974
7041
|
return (0, import_vue.nextTick)();
|
|
@@ -7054,11 +7121,15 @@ var table_default = (0, import_comp.defineVxeComponent)({
|
|
|
7054
7121
|
groupFields.forEach((groupField) => {
|
|
7055
7122
|
gfKeys[groupField] = true;
|
|
7056
7123
|
});
|
|
7057
|
-
import_xe_utils.default.eachTree(
|
|
7058
|
-
|
|
7059
|
-
|
|
7060
|
-
|
|
7061
|
-
|
|
7124
|
+
import_xe_utils.default.eachTree(
|
|
7125
|
+
internalData.afterGroupFullData,
|
|
7126
|
+
(row) => {
|
|
7127
|
+
if (row.isAggregate && gfKeys[row.groupField]) {
|
|
7128
|
+
rows.push(row);
|
|
7129
|
+
}
|
|
7130
|
+
},
|
|
7131
|
+
{ children: childrenField }
|
|
7132
|
+
);
|
|
7062
7133
|
if (rows.length) {
|
|
7063
7134
|
return handleRowGroupVirtualExpand(rows, expanded);
|
|
7064
7135
|
}
|
|
@@ -7072,11 +7143,15 @@ var table_default = (0, import_comp.defineVxeComponent)({
|
|
|
7072
7143
|
const { mapChildrenField } = aggregateOpts;
|
|
7073
7144
|
const rgExpandedMaps = {};
|
|
7074
7145
|
if (expanded && mapChildrenField) {
|
|
7075
|
-
import_xe_utils.default.eachTree(
|
|
7076
|
-
|
|
7077
|
-
|
|
7078
|
-
|
|
7079
|
-
|
|
7146
|
+
import_xe_utils.default.eachTree(
|
|
7147
|
+
tableFullGroupData,
|
|
7148
|
+
(row) => {
|
|
7149
|
+
if (row[mapChildrenField] && row[mapChildrenField].length) {
|
|
7150
|
+
rgExpandedMaps[(0, import_util.getRowid)($xeTable, row)] = row;
|
|
7151
|
+
}
|
|
7152
|
+
},
|
|
7153
|
+
{ children: mapChildrenField }
|
|
7154
|
+
);
|
|
7080
7155
|
}
|
|
7081
7156
|
internalData.rowGroupExpandedMaps = rgExpandedMaps;
|
|
7082
7157
|
handleVirtualTreeToList();
|
|
@@ -7187,12 +7262,16 @@ var table_default = (0, import_comp.defineVxeComponent)({
|
|
|
7187
7262
|
const { transform, lazy } = treeOpts;
|
|
7188
7263
|
const childrenField = treeOpts.children || treeOpts.childrenField;
|
|
7189
7264
|
const expandeds = [];
|
|
7190
|
-
import_xe_utils.default.eachTree(
|
|
7191
|
-
|
|
7192
|
-
|
|
7193
|
-
|
|
7194
|
-
|
|
7195
|
-
|
|
7265
|
+
import_xe_utils.default.eachTree(
|
|
7266
|
+
tableFullTreeData,
|
|
7267
|
+
(row) => {
|
|
7268
|
+
const rowChildren = row[childrenField];
|
|
7269
|
+
if (lazy || rowChildren && rowChildren.length) {
|
|
7270
|
+
expandeds.push(row);
|
|
7271
|
+
}
|
|
7272
|
+
},
|
|
7273
|
+
{ children: childrenField }
|
|
7274
|
+
);
|
|
7196
7275
|
return $xeTable.setTreeExpand(expandeds, expanded).then(() => {
|
|
7197
7276
|
if (transform) {
|
|
7198
7277
|
handleVirtualTreeToList();
|
|
@@ -7342,12 +7421,15 @@ var table_default = (0, import_comp.defineVxeComponent)({
|
|
|
7342
7421
|
}
|
|
7343
7422
|
}
|
|
7344
7423
|
return new Promise((resolve) => {
|
|
7345
|
-
setTimeout(
|
|
7346
|
-
(
|
|
7347
|
-
|
|
7348
|
-
|
|
7349
|
-
|
|
7350
|
-
|
|
7424
|
+
setTimeout(
|
|
7425
|
+
() => {
|
|
7426
|
+
(0, import_vue.nextTick)(() => {
|
|
7427
|
+
internalData.intoRunScroll = false;
|
|
7428
|
+
resolve();
|
|
7429
|
+
});
|
|
7430
|
+
},
|
|
7431
|
+
reactData.scrollXLoad || reactData.scrollYLoad ? 30 : 0
|
|
7432
|
+
);
|
|
7351
7433
|
});
|
|
7352
7434
|
},
|
|
7353
7435
|
/**
|
|
@@ -7487,10 +7569,14 @@ var table_default = (0, import_comp.defineVxeComponent)({
|
|
|
7487
7569
|
reactData.footerTableData = footData;
|
|
7488
7570
|
$xeTable.clearFooterFormatterCache();
|
|
7489
7571
|
$xeTable.handleUpdateFooterMerge();
|
|
7490
|
-
$xeTable.dispatchEvent(
|
|
7491
|
-
|
|
7492
|
-
|
|
7493
|
-
|
|
7572
|
+
$xeTable.dispatchEvent(
|
|
7573
|
+
"footer-data-change",
|
|
7574
|
+
{
|
|
7575
|
+
visibleColumn: internalData.visibleColumn,
|
|
7576
|
+
footData
|
|
7577
|
+
},
|
|
7578
|
+
null
|
|
7579
|
+
);
|
|
7494
7580
|
return (0, import_vue.nextTick)();
|
|
7495
7581
|
},
|
|
7496
7582
|
/**
|
|
@@ -7704,9 +7790,7 @@ var table_default = (0, import_comp.defineVxeComponent)({
|
|
|
7704
7790
|
reactData.updateColFlag++;
|
|
7705
7791
|
reactData.isColLoading = true;
|
|
7706
7792
|
initColumnHierarchy();
|
|
7707
|
-
return Promise.resolve(
|
|
7708
|
-
handleCustomRestore(storeData)
|
|
7709
|
-
).then(() => {
|
|
7793
|
+
return Promise.resolve(handleCustomRestore(storeData)).then(() => {
|
|
7710
7794
|
return buildColumnInfo();
|
|
7711
7795
|
}).then(() => {
|
|
7712
7796
|
const { isRowGroupStatus, rowGroupList } = reactData;
|
|
@@ -8554,6 +8638,7 @@ var table_default = (0, import_comp.defineVxeComponent)({
|
|
|
8554
8638
|
if (el) {
|
|
8555
8639
|
const clss = "row--drag-origin";
|
|
8556
8640
|
import_xe_utils.default.arrayEach(el.querySelectorAll(`.${clss}`), (elem) => {
|
|
8641
|
+
;
|
|
8557
8642
|
elem.draggable = false;
|
|
8558
8643
|
(0, import_dom.removeClass)(elem, clss);
|
|
8559
8644
|
});
|
|
@@ -8605,6 +8690,7 @@ var table_default = (0, import_comp.defineVxeComponent)({
|
|
|
8605
8690
|
if (el) {
|
|
8606
8691
|
const clss = "col--drag-origin";
|
|
8607
8692
|
import_xe_utils.default.arrayEach(el.querySelectorAll(`.${clss}`), (elem) => {
|
|
8693
|
+
;
|
|
8608
8694
|
elem.draggable = false;
|
|
8609
8695
|
(0, import_dom.removeClass)(elem, clss);
|
|
8610
8696
|
});
|
|
@@ -9146,27 +9232,35 @@ var table_default = (0, import_comp.defineVxeComponent)({
|
|
|
9146
9232
|
const { lazy } = treeOpts;
|
|
9147
9233
|
const childrenField = treeOpts.children || treeOpts.childrenField;
|
|
9148
9234
|
const hasChildField = treeOpts.hasChild || treeOpts.hasChildField;
|
|
9149
|
-
import_xe_utils.default.eachTree(
|
|
9150
|
-
|
|
9151
|
-
|
|
9152
|
-
|
|
9153
|
-
|
|
9154
|
-
|
|
9155
|
-
|
|
9156
|
-
|
|
9157
|
-
|
|
9235
|
+
import_xe_utils.default.eachTree(
|
|
9236
|
+
tableFullTreeData,
|
|
9237
|
+
(row, index, items, path, parentRow, nodes) => {
|
|
9238
|
+
const rowid = handleUpdateRowId(row);
|
|
9239
|
+
if (lazy) {
|
|
9240
|
+
if (row[hasChildField] && row[childrenField] === void 0) {
|
|
9241
|
+
row[childrenField] = null;
|
|
9242
|
+
}
|
|
9243
|
+
if (treeExpandedMaps[rowid]) {
|
|
9244
|
+
if (!row[childrenField] || !row[childrenField].length) {
|
|
9245
|
+
delete treeExpandedMaps[rowid];
|
|
9246
|
+
}
|
|
9158
9247
|
}
|
|
9159
9248
|
}
|
|
9160
|
-
|
|
9161
|
-
|
|
9162
|
-
|
|
9249
|
+
handleRowCache(row, index, items, parentRow ? -1 : index, parentRow, rowid, nodes.length - 1, (0, import_util.toTreePathSeq)(path));
|
|
9250
|
+
},
|
|
9251
|
+
{ children: childrenField }
|
|
9252
|
+
);
|
|
9163
9253
|
} else if (isRowGroupStatus) {
|
|
9164
9254
|
const aggregateOpts = computeAggregateOpts.value;
|
|
9165
9255
|
const { mapChildrenField } = aggregateOpts;
|
|
9166
|
-
import_xe_utils.default.eachTree(
|
|
9167
|
-
|
|
9168
|
-
|
|
9169
|
-
|
|
9256
|
+
import_xe_utils.default.eachTree(
|
|
9257
|
+
tableFullGroupData,
|
|
9258
|
+
(row, index, items, path, parentRow, nodes) => {
|
|
9259
|
+
const rowid = handleUpdateRowId(row);
|
|
9260
|
+
handleRowCache(row, index, items, parentRow ? -1 : index, parentRow, rowid, nodes.length - 1, (0, import_util.toTreePathSeq)(path));
|
|
9261
|
+
},
|
|
9262
|
+
{ children: mapChildrenField }
|
|
9263
|
+
);
|
|
9170
9264
|
} else {
|
|
9171
9265
|
tableFullData.forEach((row, index, items) => {
|
|
9172
9266
|
handleRowCache(row, index, items, index, null, handleUpdateRowId(row), 0, index + 1);
|
|
@@ -9723,29 +9817,37 @@ var table_default = (0, import_comp.defineVxeComponent)({
|
|
|
9723
9817
|
if (isRowGroupStatus) {
|
|
9724
9818
|
const mapChildrenField = aggregateOpts.mapChildrenField;
|
|
9725
9819
|
if (mapChildrenField) {
|
|
9726
|
-
import_xe_utils.default.eachTree(
|
|
9820
|
+
import_xe_utils.default.eachTree(
|
|
9821
|
+
afterGroupFullData,
|
|
9822
|
+
(row) => {
|
|
9823
|
+
const rowid = handleGetRowId(row);
|
|
9824
|
+
const childList = row[mapChildrenField];
|
|
9825
|
+
if (childList && childList.length && !childRowMaps[rowid]) {
|
|
9826
|
+
childRowMaps[rowid] = 1;
|
|
9827
|
+
childRowList.unshift([row, rowid, childList]);
|
|
9828
|
+
}
|
|
9829
|
+
},
|
|
9830
|
+
{ children: mapChildrenField }
|
|
9831
|
+
);
|
|
9832
|
+
}
|
|
9833
|
+
} else if (treeConfig) {
|
|
9834
|
+
const { transform, mapChildrenField } = treeOpts;
|
|
9835
|
+
import_xe_utils.default.eachTree(
|
|
9836
|
+
afterTreeFullData,
|
|
9837
|
+
(row) => {
|
|
9727
9838
|
const rowid = handleGetRowId(row);
|
|
9728
|
-
const childList = row[mapChildrenField];
|
|
9839
|
+
const childList = row[transform ? mapChildrenField : childrenField];
|
|
9729
9840
|
if (childList && childList.length && !childRowMaps[rowid]) {
|
|
9730
9841
|
childRowMaps[rowid] = 1;
|
|
9731
9842
|
childRowList.unshift([row, rowid, childList]);
|
|
9843
|
+
} else {
|
|
9844
|
+
if (indeterminateField) {
|
|
9845
|
+
import_xe_utils.default.set(row, indeterminateField, false);
|
|
9846
|
+
}
|
|
9732
9847
|
}
|
|
9733
|
-
},
|
|
9734
|
-
|
|
9735
|
-
|
|
9736
|
-
const { transform, mapChildrenField } = treeOpts;
|
|
9737
|
-
import_xe_utils.default.eachTree(afterTreeFullData, (row) => {
|
|
9738
|
-
const rowid = handleGetRowId(row);
|
|
9739
|
-
const childList = row[transform ? mapChildrenField : childrenField];
|
|
9740
|
-
if (childList && childList.length && !childRowMaps[rowid]) {
|
|
9741
|
-
childRowMaps[rowid] = 1;
|
|
9742
|
-
childRowList.unshift([row, rowid, childList]);
|
|
9743
|
-
} else {
|
|
9744
|
-
if (indeterminateField) {
|
|
9745
|
-
import_xe_utils.default.set(row, indeterminateField, false);
|
|
9746
|
-
}
|
|
9747
|
-
}
|
|
9748
|
-
}, { children: transform ? mapChildrenField : childrenField });
|
|
9848
|
+
},
|
|
9849
|
+
{ children: transform ? mapChildrenField : childrenField }
|
|
9850
|
+
);
|
|
9749
9851
|
}
|
|
9750
9852
|
childRowList.forEach((vals) => {
|
|
9751
9853
|
const row = vals[0];
|
|
@@ -9847,44 +9949,46 @@ var table_default = (0, import_comp.defineVxeComponent)({
|
|
|
9847
9949
|
let dhLen = 0;
|
|
9848
9950
|
let vLen = 0;
|
|
9849
9951
|
const rootList = treeConfig ? afterTreeFullData : isRowGroupStatus ? afterGroupFullData : afterFullData;
|
|
9850
|
-
rootList.forEach(
|
|
9851
|
-
|
|
9852
|
-
|
|
9853
|
-
|
|
9854
|
-
|
|
9855
|
-
|
|
9856
|
-
|
|
9857
|
-
|
|
9858
|
-
|
|
9859
|
-
|
|
9860
|
-
|
|
9861
|
-
|
|
9952
|
+
rootList.forEach(
|
|
9953
|
+
checkMethod ? (row) => {
|
|
9954
|
+
const childRowid = handleGetRowId(row);
|
|
9955
|
+
const selected = checkField ? import_xe_utils.default.get(row, checkField) : selectCheckboxMaps[childRowid];
|
|
9956
|
+
if (isRowGroupStatus && $xeTable.isAggregateRecord(row)) {
|
|
9957
|
+
const childList = row[mapChildrenField || ""];
|
|
9958
|
+
if (selected) {
|
|
9959
|
+
vLen++;
|
|
9960
|
+
sLen++;
|
|
9961
|
+
} else if (treeIndeterminateRowMaps[childRowid]) {
|
|
9962
|
+
vLen++;
|
|
9963
|
+
hLen++;
|
|
9964
|
+
} else if (childList && childList.length && childList.some((item) => checkMethod({ $table: $xeTable, row: item }))) {
|
|
9965
|
+
vLen++;
|
|
9966
|
+
}
|
|
9967
|
+
} else if (checkMethod({ $table: $xeTable, row })) {
|
|
9968
|
+
if (selected) {
|
|
9969
|
+
sLen++;
|
|
9970
|
+
} else if (treeIndeterminateRowMaps[childRowid]) {
|
|
9971
|
+
hLen++;
|
|
9972
|
+
}
|
|
9862
9973
|
vLen++;
|
|
9974
|
+
} else {
|
|
9975
|
+
if (selected) {
|
|
9976
|
+
dsLen++;
|
|
9977
|
+
} else if (treeIndeterminateRowMaps[childRowid]) {
|
|
9978
|
+
dhLen++;
|
|
9979
|
+
}
|
|
9863
9980
|
}
|
|
9864
|
-
}
|
|
9981
|
+
} : (row) => {
|
|
9982
|
+
const childRowid = handleGetRowId(row);
|
|
9983
|
+
const selected = checkField ? import_xe_utils.default.get(row, checkField) : selectCheckboxMaps[childRowid];
|
|
9865
9984
|
if (selected) {
|
|
9866
9985
|
sLen++;
|
|
9867
9986
|
} else if (treeIndeterminateRowMaps[childRowid]) {
|
|
9868
9987
|
hLen++;
|
|
9869
9988
|
}
|
|
9870
9989
|
vLen++;
|
|
9871
|
-
} else {
|
|
9872
|
-
if (selected) {
|
|
9873
|
-
dsLen++;
|
|
9874
|
-
} else if (treeIndeterminateRowMaps[childRowid]) {
|
|
9875
|
-
dhLen++;
|
|
9876
|
-
}
|
|
9877
9990
|
}
|
|
9878
|
-
|
|
9879
|
-
const childRowid = handleGetRowId(row);
|
|
9880
|
-
const selected = checkField ? import_xe_utils.default.get(row, checkField) : selectCheckboxMaps[childRowid];
|
|
9881
|
-
if (selected) {
|
|
9882
|
-
sLen++;
|
|
9883
|
-
} else if (treeIndeterminateRowMaps[childRowid]) {
|
|
9884
|
-
hLen++;
|
|
9885
|
-
}
|
|
9886
|
-
vLen++;
|
|
9887
|
-
});
|
|
9991
|
+
);
|
|
9888
9992
|
const isSelected = rootList.length > 0 ? vLen > 0 ? sLen >= vLen : sLen >= rootList.length : false;
|
|
9889
9993
|
let halfSelect = !isSelected && (sLen > 0 || hLen > 0 || dsLen > 0 || dhLen > 0);
|
|
9890
9994
|
if (!isSelected && !halfSelect && showReserveStatus) {
|
|
@@ -9915,20 +10019,24 @@ var table_default = (0, import_comp.defineVxeComponent)({
|
|
|
9915
10019
|
const indeterminateField = checkboxOpts.indeterminateField || checkboxOpts.halfField;
|
|
9916
10020
|
if (checkField) {
|
|
9917
10021
|
if ((treeConfig || isRowGroupStatus) && !checkStrictly) {
|
|
9918
|
-
import_xe_utils.default.eachTree(
|
|
9919
|
-
|
|
9920
|
-
|
|
9921
|
-
if (
|
|
9922
|
-
import_xe_utils.default.set(row,
|
|
10022
|
+
import_xe_utils.default.eachTree(
|
|
10023
|
+
rows,
|
|
10024
|
+
(row) => {
|
|
10025
|
+
if (isForce || !checkMethod || checkMethod({ $table: $xeTable, row })) {
|
|
10026
|
+
import_xe_utils.default.set(row, checkField, checked);
|
|
10027
|
+
if (indeterminateField) {
|
|
10028
|
+
import_xe_utils.default.set(row, indeterminateField, false);
|
|
10029
|
+
}
|
|
10030
|
+
handleCheckboxReserveRow(row, checked);
|
|
9923
10031
|
}
|
|
9924
|
-
|
|
9925
|
-
}
|
|
9926
|
-
|
|
10032
|
+
},
|
|
10033
|
+
{ children: transform ? mapChildrenField : childrenField }
|
|
10034
|
+
);
|
|
9927
10035
|
reactData.updateCheckboxFlag++;
|
|
9928
10036
|
return;
|
|
9929
10037
|
}
|
|
9930
10038
|
rows.forEach((row) => {
|
|
9931
|
-
if (isForce ||
|
|
10039
|
+
if (isForce || !checkMethod || checkMethod({ $table: $xeTable, row })) {
|
|
9932
10040
|
import_xe_utils.default.set(row, checkField, checked);
|
|
9933
10041
|
handleCheckboxReserveRow(row, checked);
|
|
9934
10042
|
}
|
|
@@ -9938,42 +10046,50 @@ var table_default = (0, import_comp.defineVxeComponent)({
|
|
|
9938
10046
|
}
|
|
9939
10047
|
if (!checkStrictly) {
|
|
9940
10048
|
if (isRowGroupStatus) {
|
|
9941
|
-
import_xe_utils.default.eachTree(
|
|
9942
|
-
|
|
9943
|
-
|
|
9944
|
-
|
|
9945
|
-
|
|
9946
|
-
|
|
9947
|
-
|
|
9948
|
-
|
|
10049
|
+
import_xe_utils.default.eachTree(
|
|
10050
|
+
rows,
|
|
10051
|
+
(row) => {
|
|
10052
|
+
const rowid = handleGetRowId(row);
|
|
10053
|
+
if (isForce || !checkMethod || checkMethod({ $table: $xeTable, row })) {
|
|
10054
|
+
if (checked) {
|
|
10055
|
+
selectCheckboxMaps[rowid] = row;
|
|
10056
|
+
} else {
|
|
10057
|
+
if (selectCheckboxMaps[rowid]) {
|
|
10058
|
+
delete selectCheckboxMaps[rowid];
|
|
10059
|
+
}
|
|
9949
10060
|
}
|
|
10061
|
+
handleCheckboxReserveRow(row, checked);
|
|
9950
10062
|
}
|
|
9951
|
-
|
|
9952
|
-
}
|
|
9953
|
-
|
|
10063
|
+
},
|
|
10064
|
+
{ children: aggregateOpts.mapChildrenField }
|
|
10065
|
+
);
|
|
9954
10066
|
reactData.updateCheckboxFlag++;
|
|
9955
10067
|
return;
|
|
9956
10068
|
} else if (treeConfig) {
|
|
9957
|
-
import_xe_utils.default.eachTree(
|
|
9958
|
-
|
|
9959
|
-
|
|
9960
|
-
|
|
9961
|
-
|
|
9962
|
-
|
|
9963
|
-
|
|
9964
|
-
|
|
10069
|
+
import_xe_utils.default.eachTree(
|
|
10070
|
+
rows,
|
|
10071
|
+
(row) => {
|
|
10072
|
+
const rowid = handleGetRowId(row);
|
|
10073
|
+
if (isForce || !checkMethod || checkMethod({ $table: $xeTable, row })) {
|
|
10074
|
+
if (checked) {
|
|
10075
|
+
selectCheckboxMaps[rowid] = row;
|
|
10076
|
+
} else {
|
|
10077
|
+
if (selectCheckboxMaps[rowid]) {
|
|
10078
|
+
delete selectCheckboxMaps[rowid];
|
|
10079
|
+
}
|
|
9965
10080
|
}
|
|
10081
|
+
handleCheckboxReserveRow(row, checked);
|
|
9966
10082
|
}
|
|
9967
|
-
|
|
9968
|
-
}
|
|
9969
|
-
|
|
10083
|
+
},
|
|
10084
|
+
{ children: transform ? mapChildrenField : childrenField }
|
|
10085
|
+
);
|
|
9970
10086
|
reactData.updateCheckboxFlag++;
|
|
9971
10087
|
return;
|
|
9972
10088
|
}
|
|
9973
10089
|
}
|
|
9974
10090
|
rows.forEach((row) => {
|
|
9975
10091
|
const rowid = handleGetRowId(row);
|
|
9976
|
-
if (isForce ||
|
|
10092
|
+
if (isForce || !checkMethod || checkMethod({ $table: $xeTable, row })) {
|
|
9977
10093
|
if (checked) {
|
|
9978
10094
|
if (!selectCheckboxMaps[rowid]) {
|
|
9979
10095
|
selectCheckboxMaps[rowid] = row;
|
|
@@ -10489,12 +10605,19 @@ var table_default = (0, import_comp.defineVxeComponent)({
|
|
|
10489
10605
|
if (!checkMethod || checkMethod({ $table: $xeTable, row })) {
|
|
10490
10606
|
$xeTable.handleBatchSelectRows([row], checked);
|
|
10491
10607
|
$xeTable.checkSelectionStatus();
|
|
10492
|
-
dispatchEvent(
|
|
10493
|
-
|
|
10494
|
-
|
|
10495
|
-
|
|
10496
|
-
|
|
10497
|
-
|
|
10608
|
+
dispatchEvent(
|
|
10609
|
+
"checkbox-change",
|
|
10610
|
+
Object.assign(
|
|
10611
|
+
{
|
|
10612
|
+
records: () => $xeTable.getCheckboxRecords(),
|
|
10613
|
+
reserves: () => $xeTable.getCheckboxReserveRecords(),
|
|
10614
|
+
indeterminates: () => $xeTable.getCheckboxIndeterminateRecords(),
|
|
10615
|
+
checked
|
|
10616
|
+
},
|
|
10617
|
+
params
|
|
10618
|
+
),
|
|
10619
|
+
evnt
|
|
10620
|
+
);
|
|
10498
10621
|
}
|
|
10499
10622
|
},
|
|
10500
10623
|
/**
|
|
@@ -10631,15 +10754,19 @@ var table_default = (0, import_comp.defineVxeComponent)({
|
|
|
10631
10754
|
const columnIndex = expandColumn ? $xeTable.getColumnIndex(expandColumn) : -1;
|
|
10632
10755
|
const $columnIndex = expandColumn ? $xeTable.getVMColumnIndex(expandColumn) : -1;
|
|
10633
10756
|
$xeTable.setRowExpand(row, expanded);
|
|
10634
|
-
dispatchEvent(
|
|
10635
|
-
|
|
10636
|
-
|
|
10637
|
-
|
|
10638
|
-
|
|
10639
|
-
|
|
10640
|
-
|
|
10641
|
-
|
|
10642
|
-
|
|
10757
|
+
dispatchEvent(
|
|
10758
|
+
"toggle-row-expand",
|
|
10759
|
+
{
|
|
10760
|
+
expanded,
|
|
10761
|
+
column: expandColumn,
|
|
10762
|
+
columnIndex,
|
|
10763
|
+
$columnIndex,
|
|
10764
|
+
row,
|
|
10765
|
+
rowIndex: $xeTable.getRowIndex(row),
|
|
10766
|
+
$rowIndex: $xeTable.getVMRowIndex(row)
|
|
10767
|
+
},
|
|
10768
|
+
evnt
|
|
10769
|
+
);
|
|
10643
10770
|
}
|
|
10644
10771
|
},
|
|
10645
10772
|
/**
|
|
@@ -10898,9 +11025,13 @@ var table_default = (0, import_comp.defineVxeComponent)({
|
|
|
10898
11025
|
if (oldRest && newRest) {
|
|
10899
11026
|
const { level: oldLevel } = oldRest;
|
|
10900
11027
|
const { level: newLevel } = newRest;
|
|
10901
|
-
import_xe_utils.default.eachTree(
|
|
10902
|
-
|
|
10903
|
-
|
|
11028
|
+
import_xe_utils.default.eachTree(
|
|
11029
|
+
[dragRow],
|
|
11030
|
+
(item) => {
|
|
11031
|
+
oldAllMaps[(0, import_util.getRowid)($xeTable, item)] = item;
|
|
11032
|
+
},
|
|
11033
|
+
{ children: mapChildrenField }
|
|
11034
|
+
);
|
|
10904
11035
|
if (oldLevel && newLevel) {
|
|
10905
11036
|
if (isPeerDrag && !isCrossDrag) {
|
|
10906
11037
|
if (oldRest.row[parentField] !== newRest.row[parentField]) {
|
|
@@ -10976,7 +11107,7 @@ var table_default = (0, import_comp.defineVxeComponent)({
|
|
|
10976
11107
|
const ptfIndex = $xeTable.findRowIndexOf(fullList, prevDragRow);
|
|
10977
11108
|
const ntfIndex = ptfIndex + dragOffsetIndex;
|
|
10978
11109
|
fullList.splice(ntfIndex, 0, dragRow);
|
|
10979
|
-
if (isSelfToChildStatus &&
|
|
11110
|
+
if (isSelfToChildStatus && isCrossDrag && isSelfToChildDrag) {
|
|
10980
11111
|
import_xe_utils.default.each(dragRow[childrenField], (childRow) => {
|
|
10981
11112
|
childRow[parentField] = dragRow[parentField];
|
|
10982
11113
|
});
|
|
@@ -11014,18 +11145,22 @@ var table_default = (0, import_comp.defineVxeComponent)({
|
|
|
11014
11145
|
$xeTable.updateScrollYSpace();
|
|
11015
11146
|
}
|
|
11016
11147
|
if (evnt) {
|
|
11017
|
-
dispatchEvent(
|
|
11018
|
-
|
|
11019
|
-
|
|
11020
|
-
|
|
11021
|
-
|
|
11022
|
-
|
|
11023
|
-
|
|
11024
|
-
|
|
11025
|
-
|
|
11026
|
-
|
|
11027
|
-
|
|
11028
|
-
|
|
11148
|
+
dispatchEvent(
|
|
11149
|
+
"row-dragend",
|
|
11150
|
+
{
|
|
11151
|
+
oldRow: dragRow,
|
|
11152
|
+
newRow: prevDragRow,
|
|
11153
|
+
dragRow,
|
|
11154
|
+
dragPos: prevDragPos,
|
|
11155
|
+
dragToChild: isDragToChildFlag,
|
|
11156
|
+
offsetIndex: dragOffsetIndex,
|
|
11157
|
+
_index: {
|
|
11158
|
+
newIndex: nafIndex,
|
|
11159
|
+
oldIndex: oafIndex
|
|
11160
|
+
}
|
|
11161
|
+
},
|
|
11162
|
+
evnt
|
|
11163
|
+
);
|
|
11029
11164
|
}
|
|
11030
11165
|
return (0, import_vue.nextTick)().then(() => {
|
|
11031
11166
|
if (animation) {
|
|
@@ -11168,9 +11303,13 @@ var table_default = (0, import_comp.defineVxeComponent)({
|
|
|
11168
11303
|
(0, import_anime.moveRowAnimateToTb)(dtTrList, dragRowHeight);
|
|
11169
11304
|
}
|
|
11170
11305
|
});
|
|
11171
|
-
dispatchEvent(
|
|
11172
|
-
row
|
|
11173
|
-
|
|
11306
|
+
dispatchEvent(
|
|
11307
|
+
"row-remove-dragend",
|
|
11308
|
+
{
|
|
11309
|
+
row: dragRow
|
|
11310
|
+
},
|
|
11311
|
+
evnt
|
|
11312
|
+
);
|
|
11174
11313
|
handleRowDragEndClearStatus();
|
|
11175
11314
|
}
|
|
11176
11315
|
}
|
|
@@ -11286,14 +11425,18 @@ var table_default = (0, import_comp.defineVxeComponent)({
|
|
|
11286
11425
|
insertRest = $xeTable.insert(dragRow);
|
|
11287
11426
|
}
|
|
11288
11427
|
}
|
|
11289
|
-
dispatchEvent(
|
|
11290
|
-
|
|
11291
|
-
|
|
11292
|
-
|
|
11293
|
-
|
|
11294
|
-
|
|
11295
|
-
|
|
11296
|
-
|
|
11428
|
+
dispatchEvent(
|
|
11429
|
+
"row-insert-dragend",
|
|
11430
|
+
{
|
|
11431
|
+
oldRow,
|
|
11432
|
+
newRow: prevDragRow,
|
|
11433
|
+
dragRow,
|
|
11434
|
+
dragPos: prevDragPos,
|
|
11435
|
+
dragToChild: isDragToChildFlag,
|
|
11436
|
+
offsetIndex: dragOffsetIndex
|
|
11437
|
+
},
|
|
11438
|
+
evnt
|
|
11439
|
+
);
|
|
11297
11440
|
clearRowDragData();
|
|
11298
11441
|
insertRest.then(() => {
|
|
11299
11442
|
const { tableData } = reactData;
|
|
@@ -11420,7 +11563,7 @@ var table_default = (0, import_comp.defineVxeComponent)({
|
|
|
11420
11563
|
const row = rowRest.row;
|
|
11421
11564
|
const offsetY = evnt.clientY - trEl.getBoundingClientRect().y;
|
|
11422
11565
|
const dragPos = offsetY < trEl.clientHeight / 2 ? "top" : "bottom";
|
|
11423
|
-
internalData.prevDragToChild = !!(treeConfig && transform &&
|
|
11566
|
+
internalData.prevDragToChild = !!(treeConfig && transform && isCrossDrag && isToChildDrag && isControlKey);
|
|
11424
11567
|
internalData.prevDragRow = row;
|
|
11425
11568
|
internalData.prevDragPos = dragPos;
|
|
11426
11569
|
if (isCrossTableDrag && (!treeConfig || isCrossDrag) && crossTableDragRowObj) {
|
|
@@ -11447,16 +11590,20 @@ var table_default = (0, import_comp.defineVxeComponent)({
|
|
|
11447
11590
|
}
|
|
11448
11591
|
}
|
|
11449
11592
|
}
|
|
11450
|
-
if ($xeTable.eqRow(dragRow, row) || isControlKey && treeConfig && lazy && row[hasChildField] &&
|
|
11593
|
+
if ($xeTable.eqRow(dragRow, row) || isControlKey && treeConfig && lazy && row[hasChildField] && rowRest && !rowRest.treeLoaded && !isAutoLazyLoadToChild && !isAutoExpandToChild || !isCrossDrag && treeConfig && transform && (isPeerDrag ? dragRow[parentField] !== row[parentField] : rowRest.level)) {
|
|
11451
11594
|
showDropTip(evnt, trEl, null, false, dragPos);
|
|
11452
11595
|
return;
|
|
11453
11596
|
}
|
|
11454
11597
|
showDropTip(evnt, trEl, null, true, dragPos);
|
|
11455
|
-
dispatchEvent(
|
|
11456
|
-
|
|
11457
|
-
|
|
11458
|
-
|
|
11459
|
-
|
|
11598
|
+
dispatchEvent(
|
|
11599
|
+
"row-dragover",
|
|
11600
|
+
{
|
|
11601
|
+
oldRow: dragRow,
|
|
11602
|
+
targetRow: row,
|
|
11603
|
+
dragPos
|
|
11604
|
+
},
|
|
11605
|
+
evnt
|
|
11606
|
+
);
|
|
11460
11607
|
}
|
|
11461
11608
|
},
|
|
11462
11609
|
handleCellDragMousedownEvent(evnt, params) {
|
|
@@ -11622,7 +11769,7 @@ var table_default = (0, import_comp.defineVxeComponent)({
|
|
|
11622
11769
|
return errRest;
|
|
11623
11770
|
}
|
|
11624
11771
|
const oldewMatchRest = import_xe_utils.default.findTree(collectColumn, (item) => item.id === dragColumn.id);
|
|
11625
|
-
if (isSelfToChildStatus &&
|
|
11772
|
+
if (isSelfToChildStatus && isCrossDrag && isSelfToChildDrag) {
|
|
11626
11773
|
if (oldewMatchRest) {
|
|
11627
11774
|
const { items: oCols, index: oIndex } = oldewMatchRest;
|
|
11628
11775
|
const childList = dragColumn.children || [];
|
|
@@ -11672,18 +11819,22 @@ var table_default = (0, import_comp.defineVxeComponent)({
|
|
|
11672
11819
|
}
|
|
11673
11820
|
}
|
|
11674
11821
|
if (evnt) {
|
|
11675
|
-
dispatchEvent(
|
|
11676
|
-
|
|
11677
|
-
|
|
11678
|
-
|
|
11679
|
-
|
|
11680
|
-
|
|
11681
|
-
|
|
11682
|
-
|
|
11683
|
-
|
|
11684
|
-
|
|
11685
|
-
|
|
11686
|
-
|
|
11822
|
+
dispatchEvent(
|
|
11823
|
+
"column-dragend",
|
|
11824
|
+
{
|
|
11825
|
+
oldColumn: dragColumn,
|
|
11826
|
+
newColumn,
|
|
11827
|
+
dragColumn,
|
|
11828
|
+
dragPos: prevDragPos,
|
|
11829
|
+
dragToChild: isDragToChildFlag,
|
|
11830
|
+
offsetIndex: dragOffsetIndex,
|
|
11831
|
+
_index: {
|
|
11832
|
+
newIndex: nafIndex,
|
|
11833
|
+
oldIndex: oafIndex
|
|
11834
|
+
}
|
|
11835
|
+
},
|
|
11836
|
+
evnt
|
|
11837
|
+
);
|
|
11687
11838
|
}
|
|
11688
11839
|
return (0, import_vue.nextTick)().then(() => {
|
|
11689
11840
|
if (isSyncColumn) {
|
|
@@ -11806,11 +11957,15 @@ var table_default = (0, import_comp.defineVxeComponent)({
|
|
|
11806
11957
|
return;
|
|
11807
11958
|
}
|
|
11808
11959
|
showDropTip(evnt, null, thEl, true, dragPos);
|
|
11809
|
-
dispatchEvent(
|
|
11810
|
-
|
|
11811
|
-
|
|
11812
|
-
|
|
11813
|
-
|
|
11960
|
+
dispatchEvent(
|
|
11961
|
+
"column-dragover",
|
|
11962
|
+
{
|
|
11963
|
+
oldColumn: dragCol,
|
|
11964
|
+
targetColumn: column,
|
|
11965
|
+
dragPos
|
|
11966
|
+
},
|
|
11967
|
+
evnt
|
|
11968
|
+
);
|
|
11814
11969
|
const el = refElem.value;
|
|
11815
11970
|
if (!el) {
|
|
11816
11971
|
return;
|
|
@@ -12792,41 +12947,45 @@ var table_default = (0, import_comp.defineVxeComponent)({
|
|
|
12792
12947
|
const fixedColumn = isFixedLeft ? columnStore.leftList : columnStore.rightList;
|
|
12793
12948
|
const osXBehavior = import_xe_utils.default.eqNull(overscrollXBehavior) ? scrollbarOpts.overscrollBehavior : overscrollXBehavior;
|
|
12794
12949
|
const osYBehavior = import_xe_utils.default.eqNull(overscrollYBehavior) ? scrollbarOpts.overscrollBehavior : overscrollYBehavior;
|
|
12795
|
-
return (0, import_vue.h)(
|
|
12796
|
-
|
|
12797
|
-
|
|
12798
|
-
|
|
12799
|
-
|
|
12800
|
-
|
|
12801
|
-
|
|
12802
|
-
|
|
12803
|
-
|
|
12804
|
-
|
|
12950
|
+
return (0, import_vue.h)(
|
|
12951
|
+
"div",
|
|
12952
|
+
{
|
|
12953
|
+
ref: isFixedLeft ? refLeftContainer : refRightContainer,
|
|
12954
|
+
class: [
|
|
12955
|
+
`vxe-table--fixed-${fixedType}-wrapper`,
|
|
12956
|
+
`sx--${scrollXVisible === false || scrollXVisible === "hidden" ? "hidden" : "visible"}`,
|
|
12957
|
+
`sy--${scrollYVisible === false || scrollYVisible === "hidden" ? "hidden" : "visible"}`,
|
|
12958
|
+
{
|
|
12959
|
+
[`x-ob--${osXBehavior}`]: osXBehavior,
|
|
12960
|
+
[`y-ob--${osYBehavior}`]: osYBehavior
|
|
12961
|
+
}
|
|
12962
|
+
]
|
|
12963
|
+
},
|
|
12964
|
+
[
|
|
12965
|
+
showHeader ? (0, import_vue.h)(import_header.default, {
|
|
12966
|
+
ref: isFixedLeft ? refTableLeftHeader : refTableRightHeader,
|
|
12967
|
+
fixedType,
|
|
12968
|
+
tableData,
|
|
12969
|
+
tableColumn,
|
|
12970
|
+
tableGroupColumn,
|
|
12971
|
+
fixedColumn
|
|
12972
|
+
}) : renderEmptyElement($xeTable),
|
|
12973
|
+
(0, import_vue.h)(import_body.default, {
|
|
12974
|
+
ref: isFixedLeft ? refTableLeftBody : refTableRightBody,
|
|
12975
|
+
fixedType,
|
|
12976
|
+
tableData,
|
|
12977
|
+
tableColumn,
|
|
12978
|
+
fixedColumn
|
|
12979
|
+
}),
|
|
12980
|
+
showFooter ? (0, import_vue.h)(import_footer.default, {
|
|
12981
|
+
ref: isFixedLeft ? refTableLeftFooter : refTableRightFooter,
|
|
12982
|
+
footerTableData,
|
|
12983
|
+
tableColumn,
|
|
12984
|
+
fixedColumn,
|
|
12985
|
+
fixedType
|
|
12986
|
+
}) : renderEmptyElement($xeTable)
|
|
12805
12987
|
]
|
|
12806
|
-
|
|
12807
|
-
showHeader ? (0, import_vue.h)(import_header.default, {
|
|
12808
|
-
ref: isFixedLeft ? refTableLeftHeader : refTableRightHeader,
|
|
12809
|
-
fixedType,
|
|
12810
|
-
tableData,
|
|
12811
|
-
tableColumn,
|
|
12812
|
-
tableGroupColumn,
|
|
12813
|
-
fixedColumn
|
|
12814
|
-
}) : renderEmptyElement($xeTable),
|
|
12815
|
-
(0, import_vue.h)(import_body.default, {
|
|
12816
|
-
ref: isFixedLeft ? refTableLeftBody : refTableRightBody,
|
|
12817
|
-
fixedType,
|
|
12818
|
-
tableData,
|
|
12819
|
-
tableColumn,
|
|
12820
|
-
fixedColumn
|
|
12821
|
-
}),
|
|
12822
|
-
showFooter ? (0, import_vue.h)(import_footer.default, {
|
|
12823
|
-
ref: isFixedLeft ? refTableLeftFooter : refTableRightFooter,
|
|
12824
|
-
footerTableData,
|
|
12825
|
-
tableColumn,
|
|
12826
|
-
fixedColumn,
|
|
12827
|
-
fixedType
|
|
12828
|
-
}) : renderEmptyElement($xeTable)
|
|
12829
|
-
]);
|
|
12988
|
+
);
|
|
12830
12989
|
};
|
|
12831
12990
|
const renderEmptyBody = () => {
|
|
12832
12991
|
const emptyOpts = computeEmptyOpts.value;
|
|
@@ -12870,47 +13029,73 @@ var table_default = (0, import_comp.defineVxeComponent)({
|
|
|
12870
13029
|
const columnDragOpts = computeColumnDragOpts.value;
|
|
12871
13030
|
const dRow = dragRow || (rowDragOpts.isCrossTableDrag ? crossTableDragRowInfo.row : null);
|
|
12872
13031
|
if (rowOpts.drag || columnOpts.drag) {
|
|
12873
|
-
return (0, import_vue.h)(
|
|
12874
|
-
|
|
12875
|
-
|
|
12876
|
-
|
|
12877
|
-
|
|
12878
|
-
|
|
12879
|
-
"is--guides": rowDragOpts.showGuidesStatus
|
|
12880
|
-
}]
|
|
12881
|
-
}),
|
|
12882
|
-
(0, import_vue.h)("div", {
|
|
12883
|
-
ref: refDragColLineElem,
|
|
12884
|
-
class: ["vxe-table--drag-col-line", {
|
|
12885
|
-
"is--guides": columnDragOpts.showGuidesStatus
|
|
12886
|
-
}]
|
|
12887
|
-
}),
|
|
12888
|
-
dRow && rowDragOpts.showDragTip || dragCol && columnDragOpts.showDragTip ? (0, import_vue.h)("div", {
|
|
12889
|
-
ref: refDragTipElem,
|
|
12890
|
-
class: "vxe-table--drag-sort-tip"
|
|
12891
|
-
}, [
|
|
13032
|
+
return (0, import_vue.h)(
|
|
13033
|
+
"div",
|
|
13034
|
+
{
|
|
13035
|
+
class: "vxe-table--drag-wrapper"
|
|
13036
|
+
},
|
|
13037
|
+
[
|
|
12892
13038
|
(0, import_vue.h)("div", {
|
|
12893
|
-
|
|
12894
|
-
|
|
12895
|
-
|
|
12896
|
-
|
|
12897
|
-
|
|
12898
|
-
|
|
12899
|
-
|
|
12900
|
-
|
|
12901
|
-
|
|
12902
|
-
|
|
12903
|
-
|
|
12904
|
-
|
|
12905
|
-
|
|
12906
|
-
|
|
12907
|
-
|
|
12908
|
-
|
|
12909
|
-
|
|
12910
|
-
|
|
12911
|
-
|
|
12912
|
-
|
|
12913
|
-
|
|
13039
|
+
ref: refDragRowLineElem,
|
|
13040
|
+
class: [
|
|
13041
|
+
"vxe-table--drag-row-line",
|
|
13042
|
+
{
|
|
13043
|
+
"is--guides": rowDragOpts.showGuidesStatus
|
|
13044
|
+
}
|
|
13045
|
+
]
|
|
13046
|
+
}),
|
|
13047
|
+
(0, import_vue.h)("div", {
|
|
13048
|
+
ref: refDragColLineElem,
|
|
13049
|
+
class: [
|
|
13050
|
+
"vxe-table--drag-col-line",
|
|
13051
|
+
{
|
|
13052
|
+
"is--guides": columnDragOpts.showGuidesStatus
|
|
13053
|
+
}
|
|
13054
|
+
]
|
|
13055
|
+
}),
|
|
13056
|
+
dRow && rowDragOpts.showDragTip || dragCol && columnDragOpts.showDragTip ? (0, import_vue.h)(
|
|
13057
|
+
"div",
|
|
13058
|
+
{
|
|
13059
|
+
ref: refDragTipElem,
|
|
13060
|
+
class: "vxe-table--drag-sort-tip"
|
|
13061
|
+
},
|
|
13062
|
+
[
|
|
13063
|
+
(0, import_vue.h)(
|
|
13064
|
+
"div",
|
|
13065
|
+
{
|
|
13066
|
+
class: "vxe-table--drag-sort-tip-wrapper"
|
|
13067
|
+
},
|
|
13068
|
+
[
|
|
13069
|
+
(0, import_vue.h)(
|
|
13070
|
+
"div",
|
|
13071
|
+
{
|
|
13072
|
+
class: "vxe-table--drag-sort-tip-status"
|
|
13073
|
+
},
|
|
13074
|
+
[
|
|
13075
|
+
(0, import_vue.h)("span", {
|
|
13076
|
+
class: ["vxe-table--drag-sort-tip-normal-status", dRow ? getIcon().TABLE_DRAG_STATUS_ROW : getIcon().TABLE_DRAG_STATUS_COLUMN]
|
|
13077
|
+
}),
|
|
13078
|
+
(0, import_vue.h)("span", {
|
|
13079
|
+
class: ["vxe-table--drag-sort-tip-sub-status", getIcon().TABLE_DRAG_STATUS_SUB_ROW]
|
|
13080
|
+
}),
|
|
13081
|
+
(0, import_vue.h)("span", {
|
|
13082
|
+
class: ["vxe-table--drag-sort-tip-disabled-status", getIcon().TABLE_DRAG_DISABLED]
|
|
13083
|
+
})
|
|
13084
|
+
]
|
|
13085
|
+
),
|
|
13086
|
+
(0, import_vue.h)(
|
|
13087
|
+
"div",
|
|
13088
|
+
{
|
|
13089
|
+
class: "vxe-table--drag-sort-tip-content"
|
|
13090
|
+
},
|
|
13091
|
+
renderDragTipContents()
|
|
13092
|
+
)
|
|
13093
|
+
]
|
|
13094
|
+
)
|
|
13095
|
+
]
|
|
13096
|
+
) : renderEmptyElement($xeTable)
|
|
13097
|
+
]
|
|
13098
|
+
);
|
|
12914
13099
|
}
|
|
12915
13100
|
return renderEmptyElement($xeTable);
|
|
12916
13101
|
};
|
|
@@ -12998,94 +13183,133 @@ var table_default = (0, import_comp.defineVxeComponent)({
|
|
|
12998
13183
|
items: []
|
|
12999
13184
|
};
|
|
13000
13185
|
expandVNs.push(
|
|
13001
|
-
(0, import_vue.h)(
|
|
13002
|
-
|
|
13003
|
-
|
|
13004
|
-
|
|
13005
|
-
|
|
13006
|
-
|
|
13007
|
-
|
|
13008
|
-
|
|
13009
|
-
|
|
13010
|
-
|
|
13011
|
-
|
|
13012
|
-
|
|
13013
|
-
|
|
13186
|
+
(0, import_vue.h)(
|
|
13187
|
+
"div",
|
|
13188
|
+
{
|
|
13189
|
+
key: rowid,
|
|
13190
|
+
class: [
|
|
13191
|
+
"vxe-body--row-expanded-cell",
|
|
13192
|
+
{
|
|
13193
|
+
"is--padding": padding,
|
|
13194
|
+
"is--ellipsis": expandHeight
|
|
13195
|
+
}
|
|
13196
|
+
],
|
|
13197
|
+
rowid,
|
|
13198
|
+
style: cellStyle
|
|
13199
|
+
},
|
|
13200
|
+
[
|
|
13201
|
+
(0, import_vue.h)(
|
|
13202
|
+
"div",
|
|
13203
|
+
{
|
|
13204
|
+
class: "vxe-body--row-expanded-content"
|
|
13205
|
+
},
|
|
13206
|
+
expandColumn.renderData(expandParams)
|
|
13207
|
+
)
|
|
13208
|
+
]
|
|
13209
|
+
)
|
|
13014
13210
|
);
|
|
13015
13211
|
});
|
|
13016
13212
|
}
|
|
13017
|
-
return (0, import_vue.h)(
|
|
13018
|
-
|
|
13019
|
-
|
|
13020
|
-
|
|
13213
|
+
return (0, import_vue.h)(
|
|
13214
|
+
"div",
|
|
13215
|
+
{
|
|
13216
|
+
ref: refRowExpandElem,
|
|
13217
|
+
class: "vxe-table--row-expanded-wrapper"
|
|
13218
|
+
},
|
|
13219
|
+
expandVNs
|
|
13220
|
+
);
|
|
13021
13221
|
};
|
|
13022
13222
|
const renderScrollX = () => {
|
|
13023
|
-
return (0, import_vue.h)(
|
|
13024
|
-
|
|
13025
|
-
|
|
13026
|
-
|
|
13027
|
-
|
|
13028
|
-
|
|
13029
|
-
|
|
13030
|
-
|
|
13031
|
-
}),
|
|
13032
|
-
(0, import_vue.h)("div", {
|
|
13033
|
-
ref: refScrollXWrapperElem,
|
|
13034
|
-
class: "vxe-table--scroll-x-wrapper"
|
|
13035
|
-
}, [
|
|
13223
|
+
return (0, import_vue.h)(
|
|
13224
|
+
"div",
|
|
13225
|
+
{
|
|
13226
|
+
key: "vsx",
|
|
13227
|
+
ref: refScrollXVirtualElem,
|
|
13228
|
+
class: "vxe-table--scroll-x-virtual"
|
|
13229
|
+
},
|
|
13230
|
+
[
|
|
13036
13231
|
(0, import_vue.h)("div", {
|
|
13037
|
-
ref:
|
|
13038
|
-
class: "vxe-table--scroll-x-
|
|
13039
|
-
|
|
13040
|
-
|
|
13041
|
-
|
|
13042
|
-
|
|
13043
|
-
|
|
13044
|
-
|
|
13045
|
-
|
|
13232
|
+
ref: refScrollXLeftCornerElem,
|
|
13233
|
+
class: "vxe-table--scroll-x-left-corner"
|
|
13234
|
+
}),
|
|
13235
|
+
(0, import_vue.h)(
|
|
13236
|
+
"div",
|
|
13237
|
+
{
|
|
13238
|
+
ref: refScrollXWrapperElem,
|
|
13239
|
+
class: "vxe-table--scroll-x-wrapper"
|
|
13240
|
+
},
|
|
13241
|
+
[
|
|
13242
|
+
(0, import_vue.h)(
|
|
13243
|
+
"div",
|
|
13244
|
+
{
|
|
13245
|
+
ref: refScrollXHandleElem,
|
|
13246
|
+
class: "vxe-table--scroll-x-handle",
|
|
13247
|
+
onScroll: $xeTable.triggerVirtualScrollXEvent
|
|
13248
|
+
},
|
|
13249
|
+
[
|
|
13250
|
+
(0, import_vue.h)("div", {
|
|
13251
|
+
ref: refScrollXSpaceElem,
|
|
13252
|
+
class: "vxe-table--scroll-x-space"
|
|
13253
|
+
})
|
|
13254
|
+
]
|
|
13255
|
+
),
|
|
13256
|
+
(0, import_vue.h)("div", {
|
|
13257
|
+
class: "vxe-table--scroll-x-handle-appearance"
|
|
13258
|
+
})
|
|
13259
|
+
]
|
|
13260
|
+
),
|
|
13046
13261
|
(0, import_vue.h)("div", {
|
|
13047
|
-
|
|
13262
|
+
ref: refScrollXRightCornerElem,
|
|
13263
|
+
class: "vxe-table--scroll-x-right-corner"
|
|
13048
13264
|
})
|
|
13049
|
-
]
|
|
13050
|
-
|
|
13051
|
-
ref: refScrollXRightCornerElem,
|
|
13052
|
-
class: "vxe-table--scroll-x-right-corner"
|
|
13053
|
-
})
|
|
13054
|
-
]);
|
|
13265
|
+
]
|
|
13266
|
+
);
|
|
13055
13267
|
};
|
|
13056
13268
|
const renderScrollY = () => {
|
|
13057
|
-
return (0, import_vue.h)(
|
|
13058
|
-
|
|
13059
|
-
|
|
13060
|
-
|
|
13061
|
-
|
|
13062
|
-
|
|
13063
|
-
|
|
13064
|
-
|
|
13065
|
-
}),
|
|
13066
|
-
(0, import_vue.h)("div", {
|
|
13067
|
-
ref: refScrollYWrapperElem,
|
|
13068
|
-
class: "vxe-table--scroll-y-wrapper"
|
|
13069
|
-
}, [
|
|
13269
|
+
return (0, import_vue.h)(
|
|
13270
|
+
"div",
|
|
13271
|
+
{
|
|
13272
|
+
key: "vsy",
|
|
13273
|
+
ref: refScrollYVirtualElem,
|
|
13274
|
+
class: "vxe-table--scroll-y-virtual"
|
|
13275
|
+
},
|
|
13276
|
+
[
|
|
13070
13277
|
(0, import_vue.h)("div", {
|
|
13071
|
-
ref:
|
|
13072
|
-
class: "vxe-table--scroll-y-
|
|
13073
|
-
|
|
13074
|
-
|
|
13075
|
-
|
|
13076
|
-
|
|
13077
|
-
|
|
13078
|
-
|
|
13079
|
-
|
|
13278
|
+
ref: refScrollYTopCornerElem,
|
|
13279
|
+
class: "vxe-table--scroll-y-top-corner"
|
|
13280
|
+
}),
|
|
13281
|
+
(0, import_vue.h)(
|
|
13282
|
+
"div",
|
|
13283
|
+
{
|
|
13284
|
+
ref: refScrollYWrapperElem,
|
|
13285
|
+
class: "vxe-table--scroll-y-wrapper"
|
|
13286
|
+
},
|
|
13287
|
+
[
|
|
13288
|
+
(0, import_vue.h)(
|
|
13289
|
+
"div",
|
|
13290
|
+
{
|
|
13291
|
+
ref: refScrollYHandleElem,
|
|
13292
|
+
class: "vxe-table--scroll-y-handle",
|
|
13293
|
+
onScroll: $xeTable.triggerVirtualScrollYEvent
|
|
13294
|
+
},
|
|
13295
|
+
[
|
|
13296
|
+
(0, import_vue.h)("div", {
|
|
13297
|
+
ref: refScrollYSpaceElem,
|
|
13298
|
+
class: "vxe-table--scroll-y-space"
|
|
13299
|
+
})
|
|
13300
|
+
]
|
|
13301
|
+
),
|
|
13302
|
+
(0, import_vue.h)("div", {
|
|
13303
|
+
class: "vxe-table--scroll-y-handle-appearance"
|
|
13304
|
+
})
|
|
13305
|
+
]
|
|
13306
|
+
),
|
|
13080
13307
|
(0, import_vue.h)("div", {
|
|
13081
|
-
|
|
13308
|
+
ref: refScrollYBottomCornerElem,
|
|
13309
|
+
class: "vxe-table--scroll-y-bottom-corner"
|
|
13082
13310
|
})
|
|
13083
|
-
]
|
|
13084
|
-
|
|
13085
|
-
ref: refScrollYBottomCornerElem,
|
|
13086
|
-
class: "vxe-table--scroll-y-bottom-corner"
|
|
13087
|
-
})
|
|
13088
|
-
]);
|
|
13311
|
+
]
|
|
13312
|
+
);
|
|
13089
13313
|
};
|
|
13090
13314
|
const renderViewport = () => {
|
|
13091
13315
|
const { showHeader, showFooter } = props;
|
|
@@ -13100,68 +13324,74 @@ var table_default = (0, import_comp.defineVxeComponent)({
|
|
|
13100
13324
|
const { leftList, rightList } = columnStore;
|
|
13101
13325
|
const osXBehavior = import_xe_utils.default.eqNull(overscrollXBehavior) ? scrollbarOpts.overscrollBehavior : overscrollXBehavior;
|
|
13102
13326
|
const osYBehavior = import_xe_utils.default.eqNull(overscrollYBehavior) ? scrollbarOpts.overscrollBehavior : overscrollYBehavior;
|
|
13103
|
-
return (0, import_vue.h)(
|
|
13104
|
-
|
|
13105
|
-
|
|
13106
|
-
|
|
13107
|
-
|
|
13108
|
-
[`y-ob--${osYBehavior}`]: osYBehavior
|
|
13109
|
-
}]
|
|
13110
|
-
}, [
|
|
13111
|
-
(0, import_vue.h)("div", {
|
|
13327
|
+
return (0, import_vue.h)(
|
|
13328
|
+
"div",
|
|
13329
|
+
{
|
|
13330
|
+
key: "tvw",
|
|
13331
|
+
ref: refTableViewportElem,
|
|
13112
13332
|
class: [
|
|
13113
|
-
"vxe-table--
|
|
13114
|
-
|
|
13115
|
-
|
|
13333
|
+
"vxe-table--viewport-wrapper",
|
|
13334
|
+
{
|
|
13335
|
+
[`x-ob--${osXBehavior}`]: osXBehavior,
|
|
13336
|
+
[`y-ob--${osYBehavior}`]: osYBehavior
|
|
13337
|
+
}
|
|
13116
13338
|
]
|
|
13117
|
-
},
|
|
13118
|
-
|
|
13119
|
-
|
|
13120
|
-
|
|
13121
|
-
|
|
13122
|
-
|
|
13123
|
-
|
|
13124
|
-
|
|
13125
|
-
|
|
13126
|
-
|
|
13127
|
-
|
|
13128
|
-
|
|
13129
|
-
|
|
13130
|
-
|
|
13131
|
-
|
|
13132
|
-
|
|
13133
|
-
|
|
13134
|
-
|
|
13135
|
-
|
|
13136
|
-
|
|
13137
|
-
|
|
13138
|
-
|
|
13139
|
-
|
|
13140
|
-
|
|
13141
|
-
|
|
13142
|
-
|
|
13143
|
-
|
|
13144
|
-
|
|
13145
|
-
|
|
13146
|
-
|
|
13147
|
-
|
|
13148
|
-
|
|
13149
|
-
|
|
13150
|
-
|
|
13151
|
-
|
|
13339
|
+
},
|
|
13340
|
+
[
|
|
13341
|
+
(0, import_vue.h)(
|
|
13342
|
+
"div",
|
|
13343
|
+
{
|
|
13344
|
+
class: ["vxe-table--main-wrapper", `sx--${scrollXVisible === false || scrollXVisible === "hidden" ? "hidden" : "visible"}`, `sy--${scrollYVisible === false || scrollYVisible === "hidden" ? "hidden" : "visible"}`]
|
|
13345
|
+
},
|
|
13346
|
+
[
|
|
13347
|
+
/**
|
|
13348
|
+
* 表头
|
|
13349
|
+
*/
|
|
13350
|
+
showHeader ? (0, import_vue.h)(import_header.default, {
|
|
13351
|
+
ref: refTableHeader,
|
|
13352
|
+
tableData,
|
|
13353
|
+
tableColumn,
|
|
13354
|
+
tableGroupColumn
|
|
13355
|
+
}) : renderEmptyElement($xeTable),
|
|
13356
|
+
/**
|
|
13357
|
+
* 表体
|
|
13358
|
+
*/
|
|
13359
|
+
(0, import_vue.h)(import_body.default, {
|
|
13360
|
+
ref: refTableBody,
|
|
13361
|
+
tableData,
|
|
13362
|
+
tableColumn
|
|
13363
|
+
}),
|
|
13364
|
+
/**
|
|
13365
|
+
* 表尾
|
|
13366
|
+
*/
|
|
13367
|
+
showFooter ? (0, import_vue.h)(import_footer.default, {
|
|
13368
|
+
ref: refTableFooter,
|
|
13369
|
+
footerTableData,
|
|
13370
|
+
tableColumn
|
|
13371
|
+
}) : renderEmptyElement($xeTable)
|
|
13372
|
+
]
|
|
13373
|
+
),
|
|
13374
|
+
(0, import_vue.h)(
|
|
13375
|
+
"div",
|
|
13376
|
+
{
|
|
13377
|
+
class: "vxe-table--fixed-wrapper"
|
|
13378
|
+
},
|
|
13379
|
+
[leftList && leftList.length && overflowX ? renderViewFixed("left") : renderEmptyElement($xeTable), rightList && rightList.length && overflowX ? renderViewFixed("right") : renderEmptyElement($xeTable)]
|
|
13380
|
+
),
|
|
13381
|
+
renderRowExpandedVNs()
|
|
13382
|
+
]
|
|
13383
|
+
);
|
|
13152
13384
|
};
|
|
13153
13385
|
const renderNativeBody = () => {
|
|
13154
13386
|
const scrollbarYToLeft = computeScrollbarYToLeft.value;
|
|
13155
|
-
return (0, import_vue.h)(
|
|
13156
|
-
|
|
13157
|
-
|
|
13158
|
-
|
|
13159
|
-
|
|
13160
|
-
|
|
13161
|
-
|
|
13162
|
-
|
|
13163
|
-
renderScrollY()
|
|
13164
|
-
]);
|
|
13387
|
+
return (0, import_vue.h)(
|
|
13388
|
+
"div",
|
|
13389
|
+
{
|
|
13390
|
+
key: "lnb",
|
|
13391
|
+
class: "vxe-table--layout-wrapper"
|
|
13392
|
+
},
|
|
13393
|
+
scrollbarYToLeft ? [renderScrollY(), renderViewport()] : [renderViewport(), renderScrollY()]
|
|
13394
|
+
);
|
|
13165
13395
|
};
|
|
13166
13396
|
const renderVirtualBody = () => {
|
|
13167
13397
|
const $xeGanttView = internalData.xeGanttView;
|
|
@@ -13177,53 +13407,74 @@ var table_default = (0, import_comp.defineVxeComponent)({
|
|
|
13177
13407
|
const scrollbarWrapperClss = computeScrollbarWrapperClss.value;
|
|
13178
13408
|
const hideXScroll = scrollXVisible === false || scrollXVisible === "hidden";
|
|
13179
13409
|
const hideYScroll = scrollYVisible === false || scrollYVisible === "hidden";
|
|
13180
|
-
return (0, import_vue.h)(
|
|
13181
|
-
|
|
13182
|
-
|
|
13183
|
-
"
|
|
13184
|
-
|
|
13185
|
-
|
|
13186
|
-
|
|
13187
|
-
|
|
13188
|
-
|
|
13189
|
-
|
|
13190
|
-
|
|
13191
|
-
|
|
13192
|
-
|
|
13193
|
-
|
|
13194
|
-
|
|
13195
|
-
|
|
13196
|
-
|
|
13197
|
-
|
|
13198
|
-
|
|
13199
|
-
|
|
13200
|
-
|
|
13201
|
-
|
|
13202
|
-
|
|
13203
|
-
|
|
13204
|
-
|
|
13205
|
-
|
|
13206
|
-
|
|
13207
|
-
|
|
13208
|
-
|
|
13209
|
-
|
|
13210
|
-
|
|
13211
|
-
|
|
13212
|
-
|
|
13213
|
-
|
|
13214
|
-
|
|
13215
|
-
|
|
13216
|
-
|
|
13217
|
-
|
|
13218
|
-
|
|
13219
|
-
|
|
13220
|
-
|
|
13221
|
-
|
|
13222
|
-
|
|
13223
|
-
|
|
13224
|
-
|
|
13225
|
-
|
|
13226
|
-
|
|
13410
|
+
return (0, import_vue.h)(
|
|
13411
|
+
"div",
|
|
13412
|
+
{
|
|
13413
|
+
key: "lvb",
|
|
13414
|
+
class: [
|
|
13415
|
+
"vxe-table--layout-wrapper",
|
|
13416
|
+
`sx-pos--${scrollbarXToTop ? "top" : "bottom"}`,
|
|
13417
|
+
`sy-pos--${scrollbarYToLeft ? "left" : "right"}`,
|
|
13418
|
+
{
|
|
13419
|
+
"is--virtual-scrollbar": isVScrollbar,
|
|
13420
|
+
"ov-padding": isVScrollbar && scrollbarOpts.padding,
|
|
13421
|
+
"ov-x--auto-hide": isVScrollbar && scrollXAutoHide,
|
|
13422
|
+
"ov-y--auto-hide": isVScrollbar && scrollYAutoHide,
|
|
13423
|
+
"overflow-y": yThumbHeight,
|
|
13424
|
+
"overflow-x": xThumbWidth
|
|
13425
|
+
}
|
|
13426
|
+
]
|
|
13427
|
+
},
|
|
13428
|
+
[
|
|
13429
|
+
renderViewport(),
|
|
13430
|
+
(0, import_vue.h)(
|
|
13431
|
+
"div",
|
|
13432
|
+
{
|
|
13433
|
+
class: scrollbarWrapperClss
|
|
13434
|
+
},
|
|
13435
|
+
[
|
|
13436
|
+
hideXScroll ? renderEmptyElement($xeTable) : (0, import_vue.h)(
|
|
13437
|
+
"div",
|
|
13438
|
+
{
|
|
13439
|
+
ref: refTrackXElem,
|
|
13440
|
+
class: "vxe-scrollbar--track-x",
|
|
13441
|
+
onClick: clickTrackXEvent
|
|
13442
|
+
},
|
|
13443
|
+
[
|
|
13444
|
+
(0, import_vue.h)("div", {
|
|
13445
|
+
ref: refThumbXElem,
|
|
13446
|
+
class: "vxe-scrollbar--thumb-x",
|
|
13447
|
+
onPointerdown: pointerdownThumbXEvent,
|
|
13448
|
+
onPointermove: pointermoveThumbXEvent,
|
|
13449
|
+
onPointerup: cleatPointerThumbEvent,
|
|
13450
|
+
onPointercancel: cleatPointerThumbEvent,
|
|
13451
|
+
onLostpointercapture: cleatPointerThumbEvent
|
|
13452
|
+
})
|
|
13453
|
+
]
|
|
13454
|
+
),
|
|
13455
|
+
hideYScroll || $xeGantt && $xeGanttView && $xeGantt.reactData.showRightView && !scrollbarYToLeft ? renderEmptyElement($xeTable) : (0, import_vue.h)(
|
|
13456
|
+
"div",
|
|
13457
|
+
{
|
|
13458
|
+
ref: refTrackYElem,
|
|
13459
|
+
class: "vxe-scrollbar--track-y",
|
|
13460
|
+
onClick: clickTrackYEvent
|
|
13461
|
+
},
|
|
13462
|
+
[
|
|
13463
|
+
(0, import_vue.h)("div", {
|
|
13464
|
+
ref: refThumbYElem,
|
|
13465
|
+
class: "vxe-scrollbar--thumb-y",
|
|
13466
|
+
onPointerdown: pointerdownThumbYEvent,
|
|
13467
|
+
onPointermove: pointermoveThumbYEvent,
|
|
13468
|
+
onPointerup: cleatPointerThumbEvent,
|
|
13469
|
+
onPointercancel: cleatPointerThumbEvent,
|
|
13470
|
+
onLostpointercapture: cleatPointerThumbEvent
|
|
13471
|
+
})
|
|
13472
|
+
]
|
|
13473
|
+
)
|
|
13474
|
+
]
|
|
13475
|
+
)
|
|
13476
|
+
]
|
|
13477
|
+
);
|
|
13227
13478
|
};
|
|
13228
13479
|
const renderVN = () => {
|
|
13229
13480
|
const { loading, stripe, showHeader, height, treeConfig, mouseConfig, showFooter, highlightCell, highlightHoverRow, highlightHoverColumn, editConfig, editRules, importConfig, exportConfig, printConfig } = props;
|
|
@@ -13270,316 +13521,423 @@ var table_default = (0, import_comp.defineVxeComponent)({
|
|
|
13270
13521
|
if (isCrossTableDrag && !tableData.length) {
|
|
13271
13522
|
tbOns.onDragover = $xeTable.handleCrossTableRowDragoverEmptyEvent;
|
|
13272
13523
|
}
|
|
13273
|
-
return (0, import_vue.h)(
|
|
13274
|
-
|
|
13275
|
-
|
|
13276
|
-
|
|
13277
|
-
|
|
13278
|
-
|
|
13279
|
-
|
|
13280
|
-
|
|
13281
|
-
|
|
13282
|
-
|
|
13283
|
-
|
|
13284
|
-
|
|
13285
|
-
|
|
13286
|
-
|
|
13287
|
-
|
|
13288
|
-
|
|
13289
|
-
|
|
13290
|
-
|
|
13291
|
-
|
|
13292
|
-
|
|
13293
|
-
|
|
13294
|
-
|
|
13295
|
-
|
|
13296
|
-
|
|
13297
|
-
|
|
13298
|
-
|
|
13299
|
-
|
|
13300
|
-
|
|
13301
|
-
|
|
13302
|
-
|
|
13303
|
-
|
|
13304
|
-
|
|
13305
|
-
|
|
13306
|
-
|
|
13307
|
-
|
|
13308
|
-
|
|
13309
|
-
|
|
13310
|
-
|
|
13311
|
-
|
|
13312
|
-
|
|
13313
|
-
|
|
13314
|
-
|
|
13315
|
-
|
|
13316
|
-
|
|
13317
|
-
|
|
13318
|
-
|
|
13319
|
-
|
|
13320
|
-
|
|
13321
|
-
|
|
13322
|
-
|
|
13323
|
-
|
|
13324
|
-
|
|
13325
|
-
|
|
13326
|
-
|
|
13327
|
-
|
|
13328
|
-
|
|
13329
|
-
(0, import_vue.h)(
|
|
13330
|
-
|
|
13331
|
-
|
|
13332
|
-
|
|
13333
|
-
|
|
13334
|
-
|
|
13335
|
-
|
|
13336
|
-
|
|
13337
|
-
|
|
13524
|
+
return (0, import_vue.h)(
|
|
13525
|
+
"div",
|
|
13526
|
+
{
|
|
13527
|
+
ref: refElem,
|
|
13528
|
+
class: [
|
|
13529
|
+
"vxe-table",
|
|
13530
|
+
"vxe-table--render-default",
|
|
13531
|
+
`tid_${xID}`,
|
|
13532
|
+
`border--${tableBorder}`,
|
|
13533
|
+
isVScrollbar ? "is--virtual-scrollbar" : "is--native-scrollbar",
|
|
13534
|
+
`sx-pos--${scrollbarXToTop ? "top" : "bottom"}`,
|
|
13535
|
+
`sy-pos--${scrollbarYToLeft ? "left" : "right"}`,
|
|
13536
|
+
{
|
|
13537
|
+
[`size--${vSize}`]: vSize,
|
|
13538
|
+
[`valid-msg--${validOpts.msgMode}`]: !!editRules,
|
|
13539
|
+
"vxe-editable": !!editConfig,
|
|
13540
|
+
"old-cell-valid": editRules && getConfig().cellVaildMode === "obsolete",
|
|
13541
|
+
"cell--highlight": highlightCell,
|
|
13542
|
+
"cell--selected": (0, import_utils.hasEnableConf)(mouseConfig, mouseOpts) && mouseOpts.selected,
|
|
13543
|
+
"cell--area": isArea,
|
|
13544
|
+
"header-cell--area": isArea && areaOpts.selectCellByHeader,
|
|
13545
|
+
"body-cell--area": isArea && areaOpts.selectCellByBody,
|
|
13546
|
+
"row--highlight": rowOpts.isHover || highlightHoverRow,
|
|
13547
|
+
"column--highlight": columnOpts.isHover || highlightHoverColumn,
|
|
13548
|
+
"checkbox--range": checkboxOpts.range,
|
|
13549
|
+
"col--drag-cell": columnOpts.drag && columnDragOpts.trigger === "cell",
|
|
13550
|
+
"is--header": showHeader,
|
|
13551
|
+
"not--header": !showHeader,
|
|
13552
|
+
"is--footer": showFooter,
|
|
13553
|
+
"not--footer": !showFooter,
|
|
13554
|
+
"is--group": isGroup,
|
|
13555
|
+
"is-row-group": isRowGroupStatus,
|
|
13556
|
+
"is--tree-line": treeConfig && (treeOpts.showLine || treeOpts.line),
|
|
13557
|
+
"is--fixed-left": leftList.length,
|
|
13558
|
+
"is--fixed-right": rightList.length,
|
|
13559
|
+
"is--animat": !!props.animat,
|
|
13560
|
+
"is--round": props.round,
|
|
13561
|
+
"is--stripe": !treeConfig && stripe,
|
|
13562
|
+
"is--loading": currLoading,
|
|
13563
|
+
"is--empty": !currLoading && !tableData.length,
|
|
13564
|
+
"is--scroll-y": overflowY,
|
|
13565
|
+
"not--scroll-y": !overflowY,
|
|
13566
|
+
"is--scroll-x": overflowX,
|
|
13567
|
+
"not--scroll-x": !overflowX,
|
|
13568
|
+
"is--virtual-x": scrollXLoad,
|
|
13569
|
+
"is--virtual-y": scrollYLoad
|
|
13570
|
+
}
|
|
13571
|
+
],
|
|
13572
|
+
style: tableStyle,
|
|
13573
|
+
spellcheck: false,
|
|
13574
|
+
...tbOns
|
|
13575
|
+
},
|
|
13576
|
+
[
|
|
13577
|
+
/**
|
|
13578
|
+
* 隐藏列
|
|
13579
|
+
*/
|
|
13580
|
+
(0, import_vue.h)(
|
|
13581
|
+
"div",
|
|
13582
|
+
{
|
|
13583
|
+
key: "tss",
|
|
13584
|
+
class: "vxe-table-slots"
|
|
13585
|
+
},
|
|
13586
|
+
slots.default ? slots.default({}) : []
|
|
13587
|
+
),
|
|
13588
|
+
(0, import_vue.h)(
|
|
13589
|
+
"div",
|
|
13590
|
+
{
|
|
13591
|
+
key: "tvr",
|
|
13592
|
+
ref: refVarElem,
|
|
13593
|
+
class: "vxe-table-vars"
|
|
13594
|
+
},
|
|
13595
|
+
[
|
|
13596
|
+
(0, import_vue.h)("div", {
|
|
13597
|
+
class: "vxe-table-var-xlarge"
|
|
13598
|
+
}),
|
|
13599
|
+
(0, import_vue.h)("div", {
|
|
13600
|
+
class: "vxe-table-var-large"
|
|
13601
|
+
}),
|
|
13602
|
+
(0, import_vue.h)("div", {
|
|
13603
|
+
class: "vxe-table-var-default"
|
|
13604
|
+
}),
|
|
13605
|
+
(0, import_vue.h)("div", {
|
|
13606
|
+
class: "vxe-table-var-medium"
|
|
13607
|
+
}),
|
|
13608
|
+
(0, import_vue.h)("div", {
|
|
13609
|
+
class: "vxe-table-var-small"
|
|
13610
|
+
}),
|
|
13611
|
+
(0, import_vue.h)("div", {
|
|
13612
|
+
class: "vxe-table-var-mini"
|
|
13613
|
+
})
|
|
13614
|
+
]
|
|
13615
|
+
),
|
|
13616
|
+
(0, import_vue.h)(
|
|
13617
|
+
"div",
|
|
13618
|
+
{
|
|
13619
|
+
key: "tw",
|
|
13620
|
+
class: "vxe-table--render-wrapper"
|
|
13621
|
+
},
|
|
13622
|
+
isVScrollbar ? [renderVirtualBody()] : scrollbarXToTop ? [renderScrollX(), renderNativeBody()] : [renderNativeBody(), renderScrollX()]
|
|
13623
|
+
),
|
|
13624
|
+
/**
|
|
13625
|
+
* 空数据
|
|
13626
|
+
*/
|
|
13627
|
+
(0, import_vue.h)(
|
|
13628
|
+
"div",
|
|
13629
|
+
{
|
|
13630
|
+
key: "tn",
|
|
13631
|
+
ref: refEmptyPlaceholder,
|
|
13632
|
+
class: "vxe-table--empty-place-wrapper",
|
|
13633
|
+
xid: xID
|
|
13634
|
+
},
|
|
13635
|
+
[
|
|
13636
|
+
(0, import_vue.h)(
|
|
13637
|
+
"div",
|
|
13638
|
+
{
|
|
13639
|
+
class: "vxe-table--empty-placeholder"
|
|
13640
|
+
},
|
|
13641
|
+
[
|
|
13642
|
+
(0, import_vue.h)(
|
|
13643
|
+
"div",
|
|
13644
|
+
{
|
|
13645
|
+
class: "vxe-table--empty-content"
|
|
13646
|
+
},
|
|
13647
|
+
renderEmptyBody()
|
|
13648
|
+
)
|
|
13649
|
+
]
|
|
13650
|
+
)
|
|
13651
|
+
]
|
|
13652
|
+
),
|
|
13653
|
+
/**
|
|
13654
|
+
* 边框线
|
|
13655
|
+
*/
|
|
13338
13656
|
(0, import_vue.h)("div", {
|
|
13339
|
-
|
|
13657
|
+
key: "tl",
|
|
13658
|
+
class: "vxe-table--border-line"
|
|
13340
13659
|
}),
|
|
13341
|
-
|
|
13342
|
-
|
|
13343
|
-
|
|
13344
|
-
|
|
13345
|
-
|
|
13346
|
-
|
|
13347
|
-
|
|
13348
|
-
|
|
13349
|
-
|
|
13350
|
-
|
|
13351
|
-
|
|
13352
|
-
renderNativeBody(),
|
|
13353
|
-
renderScrollX()
|
|
13354
|
-
]),
|
|
13355
|
-
/**
|
|
13356
|
-
* 空数据
|
|
13357
|
-
*/
|
|
13358
|
-
(0, import_vue.h)("div", {
|
|
13359
|
-
key: "tn",
|
|
13360
|
-
ref: refEmptyPlaceholder,
|
|
13361
|
-
class: "vxe-table--empty-place-wrapper",
|
|
13362
|
-
xid: xID
|
|
13363
|
-
}, [
|
|
13364
|
-
(0, import_vue.h)("div", {
|
|
13365
|
-
class: "vxe-table--empty-placeholder"
|
|
13366
|
-
}, [
|
|
13367
|
-
(0, import_vue.h)("div", {
|
|
13368
|
-
class: "vxe-table--empty-content"
|
|
13369
|
-
}, renderEmptyBody())
|
|
13370
|
-
])
|
|
13371
|
-
]),
|
|
13372
|
-
/**
|
|
13373
|
-
* 边框线
|
|
13374
|
-
*/
|
|
13375
|
-
(0, import_vue.h)("div", {
|
|
13376
|
-
key: "tl",
|
|
13377
|
-
class: "vxe-table--border-line"
|
|
13378
|
-
}),
|
|
13379
|
-
/**
|
|
13380
|
-
* 列宽线
|
|
13381
|
-
*/
|
|
13382
|
-
(0, import_vue.h)("div", {
|
|
13383
|
-
key: "tcl",
|
|
13384
|
-
ref: refColResizeBar,
|
|
13385
|
-
class: "vxe-table--resizable-col-bar"
|
|
13386
|
-
}, resizableOpts.showDragTip ? [
|
|
13387
|
-
(0, import_vue.h)("div", {
|
|
13388
|
-
class: "vxe-table--resizable-number-tip"
|
|
13389
|
-
})
|
|
13390
|
-
] : []),
|
|
13391
|
-
(0, import_vue.h)("div", {
|
|
13392
|
-
key: "ttw"
|
|
13393
|
-
}, [
|
|
13394
|
-
(0, import_vue.h)(import_vue.Teleport, {
|
|
13395
|
-
to: teleportToWrapperElem,
|
|
13396
|
-
disabled: !($xeGantt && teleportToWrapperElem)
|
|
13397
|
-
}, [
|
|
13398
|
-
(0, import_vue.h)("div", {
|
|
13399
|
-
ref: refTeleportWrapper
|
|
13400
|
-
}, [
|
|
13401
|
-
/**
|
|
13402
|
-
* 行高线
|
|
13403
|
-
*/
|
|
13660
|
+
/**
|
|
13661
|
+
* 列宽线
|
|
13662
|
+
*/
|
|
13663
|
+
(0, import_vue.h)(
|
|
13664
|
+
"div",
|
|
13665
|
+
{
|
|
13666
|
+
key: "tcl",
|
|
13667
|
+
ref: refColResizeBar,
|
|
13668
|
+
class: "vxe-table--resizable-col-bar"
|
|
13669
|
+
},
|
|
13670
|
+
resizableOpts.showDragTip ? [
|
|
13404
13671
|
(0, import_vue.h)("div", {
|
|
13405
|
-
|
|
13406
|
-
|
|
13407
|
-
|
|
13408
|
-
|
|
13409
|
-
|
|
13410
|
-
|
|
13411
|
-
|
|
13412
|
-
|
|
13413
|
-
|
|
13414
|
-
|
|
13415
|
-
|
|
13416
|
-
|
|
13417
|
-
|
|
13418
|
-
|
|
13419
|
-
|
|
13420
|
-
|
|
13421
|
-
|
|
13422
|
-
|
|
13423
|
-
|
|
13424
|
-
|
|
13425
|
-
|
|
13426
|
-
|
|
13427
|
-
|
|
13428
|
-
|
|
13429
|
-
|
|
13430
|
-
|
|
13431
|
-
|
|
13432
|
-
|
|
13433
|
-
|
|
13434
|
-
|
|
13435
|
-
|
|
13436
|
-
|
|
13437
|
-
|
|
13438
|
-
|
|
13439
|
-
|
|
13440
|
-
|
|
13441
|
-
|
|
13442
|
-
|
|
13443
|
-
|
|
13444
|
-
|
|
13445
|
-
|
|
13446
|
-
|
|
13447
|
-
|
|
13448
|
-
|
|
13449
|
-
|
|
13450
|
-
|
|
13451
|
-
|
|
13452
|
-
|
|
13453
|
-
|
|
13454
|
-
|
|
13455
|
-
|
|
13456
|
-
|
|
13457
|
-
|
|
13458
|
-
|
|
13459
|
-
|
|
13460
|
-
|
|
13461
|
-
|
|
13462
|
-
|
|
13463
|
-
|
|
13464
|
-
|
|
13465
|
-
|
|
13466
|
-
|
|
13467
|
-
|
|
13468
|
-
|
|
13469
|
-
|
|
13470
|
-
|
|
13471
|
-
|
|
13472
|
-
|
|
13473
|
-
|
|
13474
|
-
|
|
13475
|
-
|
|
13476
|
-
|
|
13477
|
-
|
|
13478
|
-
|
|
13479
|
-
]
|
|
13480
|
-
|
|
13481
|
-
|
|
13482
|
-
|
|
13483
|
-
|
|
13484
|
-
|
|
13485
|
-
|
|
13486
|
-
|
|
13487
|
-
|
|
13488
|
-
|
|
13489
|
-
|
|
13490
|
-
|
|
13491
|
-
|
|
13492
|
-
|
|
13493
|
-
|
|
13494
|
-
|
|
13495
|
-
|
|
13496
|
-
|
|
13497
|
-
|
|
13498
|
-
|
|
13499
|
-
|
|
13500
|
-
|
|
13501
|
-
|
|
13672
|
+
class: "vxe-table--resizable-number-tip"
|
|
13673
|
+
})
|
|
13674
|
+
] : []
|
|
13675
|
+
),
|
|
13676
|
+
(0, import_vue.h)(
|
|
13677
|
+
"div",
|
|
13678
|
+
{
|
|
13679
|
+
key: "ttw"
|
|
13680
|
+
},
|
|
13681
|
+
[
|
|
13682
|
+
(0, import_vue.h)(
|
|
13683
|
+
import_vue.Teleport,
|
|
13684
|
+
{
|
|
13685
|
+
to: teleportToWrapperElem,
|
|
13686
|
+
disabled: !($xeGantt && teleportToWrapperElem)
|
|
13687
|
+
},
|
|
13688
|
+
[
|
|
13689
|
+
(0, import_vue.h)(
|
|
13690
|
+
"div",
|
|
13691
|
+
{
|
|
13692
|
+
ref: refTeleportWrapper
|
|
13693
|
+
},
|
|
13694
|
+
[
|
|
13695
|
+
/**
|
|
13696
|
+
* 行高线
|
|
13697
|
+
*/
|
|
13698
|
+
(0, import_vue.h)(
|
|
13699
|
+
"div",
|
|
13700
|
+
{
|
|
13701
|
+
key: "trl",
|
|
13702
|
+
ref: refRowResizeBar,
|
|
13703
|
+
class: "vxe-table--resizable-row-bar"
|
|
13704
|
+
},
|
|
13705
|
+
resizableOpts.showDragTip ? [
|
|
13706
|
+
(0, import_vue.h)("div", {
|
|
13707
|
+
class: "vxe-table--resizable-number-tip"
|
|
13708
|
+
})
|
|
13709
|
+
] : []
|
|
13710
|
+
),
|
|
13711
|
+
/**
|
|
13712
|
+
* 加载中
|
|
13713
|
+
*/
|
|
13714
|
+
VxeUILoadingComponent ? (0, import_vue.h)(
|
|
13715
|
+
VxeUILoadingComponent,
|
|
13716
|
+
{
|
|
13717
|
+
key: "lg",
|
|
13718
|
+
class: "vxe-table--loading",
|
|
13719
|
+
modelValue: currLoading,
|
|
13720
|
+
icon: loadingOpts.icon,
|
|
13721
|
+
text: loadingOpts.text
|
|
13722
|
+
},
|
|
13723
|
+
loadingSlot ? {
|
|
13724
|
+
default: () => callSlot(loadingSlot, { $table: $xeTable, $grid: $xeGrid, $gantt: $xeGantt, loading: currLoading })
|
|
13725
|
+
} : {}
|
|
13726
|
+
) : loadingSlot ? (0, import_vue.h)(
|
|
13727
|
+
"div",
|
|
13728
|
+
{
|
|
13729
|
+
class: [
|
|
13730
|
+
"vxe-loading--custom-wrapper",
|
|
13731
|
+
{
|
|
13732
|
+
"is--visible": currLoading
|
|
13733
|
+
}
|
|
13734
|
+
]
|
|
13735
|
+
},
|
|
13736
|
+
callSlot(loadingSlot, { $table: $xeTable, $grid: $xeGrid, $gantt: $xeGantt, loading: currLoading })
|
|
13737
|
+
) : renderEmptyElement($xeTable),
|
|
13738
|
+
/**
|
|
13739
|
+
* 拖拽排序提示
|
|
13740
|
+
*/
|
|
13741
|
+
renderDragTip()
|
|
13742
|
+
]
|
|
13743
|
+
)
|
|
13744
|
+
]
|
|
13745
|
+
)
|
|
13746
|
+
]
|
|
13747
|
+
),
|
|
13748
|
+
(0, import_vue.h)(
|
|
13749
|
+
"div",
|
|
13750
|
+
{
|
|
13751
|
+
key: "fpw",
|
|
13752
|
+
ref: refCustomContainerElem
|
|
13753
|
+
},
|
|
13754
|
+
[
|
|
13755
|
+
(0, import_vue.h)(
|
|
13756
|
+
import_vue.Teleport,
|
|
13757
|
+
{
|
|
13758
|
+
to: customPopupToElem,
|
|
13759
|
+
disabled: !!reactData.ctPopupFlag && !customPopupToElem
|
|
13760
|
+
},
|
|
13761
|
+
[
|
|
13762
|
+
/**
|
|
13763
|
+
* 自定义列
|
|
13764
|
+
*/
|
|
13765
|
+
initStore.custom ? (0, import_vue.h)(import_panel.default, {
|
|
13766
|
+
key: "cs",
|
|
13767
|
+
ref: refTableCustom,
|
|
13768
|
+
customStore
|
|
13769
|
+
}) : renderEmptyElement($xeTable)
|
|
13770
|
+
]
|
|
13771
|
+
)
|
|
13772
|
+
]
|
|
13773
|
+
),
|
|
13774
|
+
(0, import_vue.h)(
|
|
13775
|
+
"div",
|
|
13776
|
+
{
|
|
13777
|
+
key: "tpw"
|
|
13778
|
+
},
|
|
13779
|
+
[
|
|
13780
|
+
(0, import_vue.h)(
|
|
13781
|
+
import_vue.Teleport,
|
|
13782
|
+
{
|
|
13783
|
+
to: popupToWrapperElem,
|
|
13784
|
+
disabled: !($xeGGWrapper && popupToWrapperElem)
|
|
13785
|
+
},
|
|
13786
|
+
[
|
|
13787
|
+
(0, import_vue.h)(
|
|
13788
|
+
"div",
|
|
13789
|
+
{
|
|
13790
|
+
ref: refPopupWrapperElem
|
|
13791
|
+
},
|
|
13792
|
+
[
|
|
13793
|
+
/**
|
|
13794
|
+
* 筛选
|
|
13795
|
+
*/
|
|
13796
|
+
initStore.filter ? (0, import_vue.h)(import_panel2.default, {
|
|
13797
|
+
key: "tf",
|
|
13798
|
+
ref: refTableFilter,
|
|
13799
|
+
filterStore
|
|
13800
|
+
}) : renderEmptyElement($xeTable),
|
|
13801
|
+
/**
|
|
13802
|
+
* 快捷菜单
|
|
13803
|
+
*/
|
|
13804
|
+
isContentMenu ? (0, import_vue.h)(import_panel3.default, {
|
|
13805
|
+
key: "tm",
|
|
13806
|
+
ref: refTableMenu
|
|
13807
|
+
}) : renderEmptyElement($xeTable)
|
|
13808
|
+
]
|
|
13809
|
+
)
|
|
13810
|
+
]
|
|
13811
|
+
)
|
|
13812
|
+
]
|
|
13813
|
+
),
|
|
13502
13814
|
/**
|
|
13503
|
-
*
|
|
13815
|
+
* 导入
|
|
13504
13816
|
*/
|
|
13505
|
-
(0, import_vue.h)(
|
|
13506
|
-
key: "
|
|
13507
|
-
|
|
13508
|
-
|
|
13509
|
-
|
|
13510
|
-
useScrollbar: isVScrollbar
|
|
13511
|
-
}),
|
|
13817
|
+
initStore.import && (0, import_utils.hasEnableConf)(importConfig, importOpts) ? (0, import_vue.h)(import_import_panel.default, {
|
|
13818
|
+
key: "it",
|
|
13819
|
+
defaultOptions: reactData.importParams,
|
|
13820
|
+
storeData: reactData.importStore
|
|
13821
|
+
}) : renderEmptyElement($xeTable),
|
|
13512
13822
|
/**
|
|
13513
|
-
|
|
13514
|
-
|
|
13515
|
-
(0, import_vue.h)(
|
|
13516
|
-
key: "
|
|
13517
|
-
|
|
13518
|
-
|
|
13519
|
-
|
|
13520
|
-
enterDelay: tableTipConfig.enterDelay,
|
|
13521
|
-
leaveDelay: tableTipConfig.leaveDelay,
|
|
13522
|
-
useHtml: import_xe_utils.default.isBoolean(tableTipConfig.useHtml) ? tableTipConfig.useHtml : void 0,
|
|
13523
|
-
// 已废弃
|
|
13524
|
-
useHTML: import_xe_utils.default.isBoolean(tableTipConfig.useHTML) ? tableTipConfig.useHTML : void 0,
|
|
13525
|
-
width: tableTipConfig.width,
|
|
13526
|
-
height: tableTipConfig.height,
|
|
13527
|
-
minWidth: tableTipConfig.minWidth,
|
|
13528
|
-
minHeight: tableTipConfig.minHeight,
|
|
13529
|
-
maxWidth: tableTipConfig.maxWidth,
|
|
13530
|
-
maxHeight: tableTipConfig.maxHeight,
|
|
13531
|
-
placement: tableTipConfig.placement,
|
|
13532
|
-
defaultPlacement: tableTipConfig.defaultPlacement,
|
|
13533
|
-
popupClassName: tableTipConfig.popupClassName,
|
|
13534
|
-
useScrollbar: tableTipConfig.useScrollbar
|
|
13535
|
-
}, currTooltipSlot ? {
|
|
13536
|
-
content: () => {
|
|
13537
|
-
const { type, row, column, content: tooltipContent } = tooltipStore;
|
|
13538
|
-
if (currTooltipSlot) {
|
|
13539
|
-
if (column && type === "header") {
|
|
13540
|
-
return (0, import_vue.h)("div", {
|
|
13541
|
-
key: type
|
|
13542
|
-
}, currTooltipSlot({ column, tooltipContent, $table: $xeTable, $grid: $xeGrid, $gantt: $xeGantt }));
|
|
13543
|
-
}
|
|
13544
|
-
if (row && column && type === "body") {
|
|
13545
|
-
return (0, import_vue.h)("div", {
|
|
13546
|
-
key: type
|
|
13547
|
-
}, currTooltipSlot({ row, column, tooltipContent, $table: $xeTable, $grid: $xeGrid, $gantt: $xeGantt }));
|
|
13548
|
-
}
|
|
13549
|
-
if (row && column && type === "footer") {
|
|
13550
|
-
return (0, import_vue.h)("div", {
|
|
13551
|
-
key: type
|
|
13552
|
-
}, currTooltipSlot({ row, column, tooltipContent, $table: $xeTable, $grid: $xeGrid, $gantt: $xeGantt }));
|
|
13553
|
-
}
|
|
13554
|
-
}
|
|
13555
|
-
return renderEmptyElement($xeTable);
|
|
13556
|
-
}
|
|
13557
|
-
} : {}),
|
|
13823
|
+
* 导出
|
|
13824
|
+
*/
|
|
13825
|
+
initStore.export && ((0, import_utils.hasEnableConf)(exportConfig, exportOpts) || (0, import_utils.hasEnableConf)(printConfig, printOpts)) ? (0, import_vue.h)(import_export_panel.default, {
|
|
13826
|
+
key: "et",
|
|
13827
|
+
defaultOptions: reactData.exportParams,
|
|
13828
|
+
storeData: reactData.exportStore
|
|
13829
|
+
}) : renderEmptyElement($xeTable),
|
|
13558
13830
|
/**
|
|
13559
|
-
|
|
13560
|
-
|
|
13561
|
-
|
|
13562
|
-
|
|
13563
|
-
|
|
13564
|
-
|
|
13565
|
-
|
|
13566
|
-
|
|
13567
|
-
|
|
13568
|
-
|
|
13569
|
-
|
|
13570
|
-
|
|
13571
|
-
|
|
13572
|
-
|
|
13573
|
-
|
|
13574
|
-
|
|
13831
|
+
* 提示相关
|
|
13832
|
+
*/
|
|
13833
|
+
VxeUITooltipComponent ? (0, import_vue.h)("div", {}, [
|
|
13834
|
+
/**
|
|
13835
|
+
* 通用提示
|
|
13836
|
+
*/
|
|
13837
|
+
(0, import_vue.h)(VxeUITooltipComponent, {
|
|
13838
|
+
key: "ctp",
|
|
13839
|
+
ref: refCommTooltip,
|
|
13840
|
+
isArrow: false,
|
|
13841
|
+
enterable: false,
|
|
13842
|
+
useScrollbar: isVScrollbar
|
|
13843
|
+
}),
|
|
13844
|
+
/**
|
|
13845
|
+
* 工具提示
|
|
13846
|
+
*/
|
|
13847
|
+
(0, import_vue.h)(
|
|
13848
|
+
VxeUITooltipComponent,
|
|
13849
|
+
{
|
|
13850
|
+
key: "btp",
|
|
13851
|
+
ref: refTooltip,
|
|
13852
|
+
theme: tableTipConfig.theme,
|
|
13853
|
+
enterable: tableTipConfig.enterable,
|
|
13854
|
+
enterDelay: tableTipConfig.enterDelay,
|
|
13855
|
+
leaveDelay: tableTipConfig.leaveDelay,
|
|
13856
|
+
useHtml: import_xe_utils.default.isBoolean(tableTipConfig.useHtml) ? tableTipConfig.useHtml : void 0,
|
|
13857
|
+
// 已废弃
|
|
13858
|
+
useHTML: import_xe_utils.default.isBoolean(tableTipConfig.useHTML) ? tableTipConfig.useHTML : void 0,
|
|
13859
|
+
width: tableTipConfig.width,
|
|
13860
|
+
height: tableTipConfig.height,
|
|
13861
|
+
minWidth: tableTipConfig.minWidth,
|
|
13862
|
+
minHeight: tableTipConfig.minHeight,
|
|
13863
|
+
maxWidth: tableTipConfig.maxWidth,
|
|
13864
|
+
maxHeight: tableTipConfig.maxHeight,
|
|
13865
|
+
placement: tableTipConfig.placement,
|
|
13866
|
+
defaultPlacement: tableTipConfig.defaultPlacement,
|
|
13867
|
+
popupClassName: tableTipConfig.popupClassName,
|
|
13868
|
+
useScrollbar: tableTipConfig.useScrollbar
|
|
13869
|
+
},
|
|
13870
|
+
currTooltipSlot ? {
|
|
13871
|
+
content: () => {
|
|
13872
|
+
const { type, row, column, content: tooltipContent } = tooltipStore;
|
|
13873
|
+
if (currTooltipSlot) {
|
|
13874
|
+
if (column && type === "header") {
|
|
13875
|
+
return (0, import_vue.h)(
|
|
13876
|
+
"div",
|
|
13877
|
+
{
|
|
13878
|
+
key: type
|
|
13879
|
+
},
|
|
13880
|
+
currTooltipSlot({ column, tooltipContent, $table: $xeTable, $grid: $xeGrid, $gantt: $xeGantt })
|
|
13881
|
+
);
|
|
13882
|
+
}
|
|
13883
|
+
if (row && column && type === "body") {
|
|
13884
|
+
return (0, import_vue.h)(
|
|
13885
|
+
"div",
|
|
13886
|
+
{
|
|
13887
|
+
key: type
|
|
13888
|
+
},
|
|
13889
|
+
currTooltipSlot({ row, column, tooltipContent, $table: $xeTable, $grid: $xeGrid, $gantt: $xeGantt })
|
|
13890
|
+
);
|
|
13891
|
+
}
|
|
13892
|
+
if (row && column && type === "footer") {
|
|
13893
|
+
return (0, import_vue.h)(
|
|
13894
|
+
"div",
|
|
13895
|
+
{
|
|
13896
|
+
key: type
|
|
13897
|
+
},
|
|
13898
|
+
currTooltipSlot({ row, column, tooltipContent, $table: $xeTable, $grid: $xeGrid, $gantt: $xeGantt })
|
|
13899
|
+
);
|
|
13900
|
+
}
|
|
13901
|
+
}
|
|
13902
|
+
return renderEmptyElement($xeTable);
|
|
13903
|
+
}
|
|
13904
|
+
} : {}
|
|
13905
|
+
),
|
|
13906
|
+
/**
|
|
13907
|
+
* 校验提示
|
|
13908
|
+
*/
|
|
13909
|
+
props.editRules && validOpts.showErrorMessage && (validOpts.message === "default" ? !height : validOpts.message === "tooltip") ? (0, import_vue.h)(VxeUITooltipComponent, {
|
|
13910
|
+
key: "vtp",
|
|
13911
|
+
ref: refValidTooltip,
|
|
13912
|
+
class: [
|
|
13913
|
+
{
|
|
13914
|
+
"old-cell-valid": editRules && getConfig().cellVaildMode === "obsolete"
|
|
13915
|
+
},
|
|
13916
|
+
"vxe-table--valid-error"
|
|
13917
|
+
],
|
|
13918
|
+
theme: validTipConfig.theme,
|
|
13919
|
+
enterable: validTipConfig.enterable,
|
|
13920
|
+
enterDelay: validTipConfig.enterDelay,
|
|
13921
|
+
leaveDelay: validTipConfig.leaveDelay,
|
|
13922
|
+
useScrollbar: validTipConfig.useScrollbar
|
|
13923
|
+
}) : renderEmptyElement($xeTable)
|
|
13924
|
+
]) : renderEmptyElement($xeTable)
|
|
13925
|
+
]
|
|
13926
|
+
);
|
|
13575
13927
|
};
|
|
13576
13928
|
const dataFlag = (0, import_vue.ref)(0);
|
|
13577
|
-
(0, import_vue.watch)(
|
|
13578
|
-
|
|
13579
|
-
|
|
13580
|
-
|
|
13581
|
-
|
|
13582
|
-
|
|
13929
|
+
(0, import_vue.watch)(
|
|
13930
|
+
() => props.data ? props.data.length : -1,
|
|
13931
|
+
() => {
|
|
13932
|
+
dataFlag.value++;
|
|
13933
|
+
}
|
|
13934
|
+
);
|
|
13935
|
+
(0, import_vue.watch)(
|
|
13936
|
+
() => props.data,
|
|
13937
|
+
() => {
|
|
13938
|
+
dataFlag.value++;
|
|
13939
|
+
}
|
|
13940
|
+
);
|
|
13583
13941
|
(0, import_vue.watch)(dataFlag, () => {
|
|
13584
13942
|
const { initStatus } = internalData;
|
|
13585
13943
|
const value = props.data || [];
|
|
@@ -13594,78 +13952,126 @@ var table_default = (0, import_comp.defineVxeComponent)({
|
|
|
13594
13952
|
if (!initStatus) {
|
|
13595
13953
|
handleLoadDefaults();
|
|
13596
13954
|
}
|
|
13597
|
-
if ((scrollXLoad || scrollYLoad) &&
|
|
13955
|
+
if ((scrollXLoad || scrollYLoad) && expandColumn && expandOpts.mode !== "fixed") {
|
|
13598
13956
|
warnLog("vxe.error.scrollErrProp", ["column.type=expand"]);
|
|
13599
13957
|
}
|
|
13600
13958
|
return $xeTable.recalculate();
|
|
13601
13959
|
});
|
|
13602
13960
|
});
|
|
13603
13961
|
const staticColumnFlag = (0, import_vue.ref)(0);
|
|
13604
|
-
(0, import_vue.watch)(
|
|
13605
|
-
|
|
13606
|
-
|
|
13607
|
-
|
|
13608
|
-
|
|
13609
|
-
|
|
13962
|
+
(0, import_vue.watch)(
|
|
13963
|
+
() => reactData.staticColumns.length,
|
|
13964
|
+
() => {
|
|
13965
|
+
staticColumnFlag.value++;
|
|
13966
|
+
}
|
|
13967
|
+
);
|
|
13968
|
+
(0, import_vue.watch)(
|
|
13969
|
+
() => reactData.staticColumns,
|
|
13970
|
+
() => {
|
|
13971
|
+
staticColumnFlag.value++;
|
|
13972
|
+
}
|
|
13973
|
+
);
|
|
13610
13974
|
(0, import_vue.watch)(staticColumnFlag, () => {
|
|
13611
13975
|
(0, import_vue.nextTick)(() => handleInitColumn(import_xe_utils.default.clone(reactData.staticColumns)));
|
|
13612
13976
|
});
|
|
13613
13977
|
const tableColumnFlag = (0, import_vue.ref)(0);
|
|
13614
|
-
(0, import_vue.watch)(
|
|
13615
|
-
|
|
13616
|
-
|
|
13617
|
-
|
|
13618
|
-
|
|
13619
|
-
|
|
13978
|
+
(0, import_vue.watch)(
|
|
13979
|
+
() => reactData.tableColumn.length,
|
|
13980
|
+
() => {
|
|
13981
|
+
tableColumnFlag.value++;
|
|
13982
|
+
}
|
|
13983
|
+
);
|
|
13984
|
+
(0, import_vue.watch)(
|
|
13985
|
+
() => reactData.tableColumn,
|
|
13986
|
+
() => {
|
|
13987
|
+
tableColumnFlag.value++;
|
|
13988
|
+
}
|
|
13989
|
+
);
|
|
13620
13990
|
(0, import_vue.watch)(tableColumnFlag, () => {
|
|
13621
13991
|
$xeTable.analyColumnWidth();
|
|
13622
13992
|
});
|
|
13623
|
-
(0, import_vue.watch)(
|
|
13624
|
-
(
|
|
13625
|
-
|
|
13626
|
-
|
|
13627
|
-
|
|
13628
|
-
|
|
13629
|
-
|
|
13630
|
-
|
|
13631
|
-
|
|
13632
|
-
|
|
13993
|
+
(0, import_vue.watch)(
|
|
13994
|
+
() => reactData.upDataFlag,
|
|
13995
|
+
() => {
|
|
13996
|
+
(0, import_vue.nextTick)(() => {
|
|
13997
|
+
$xeTable.updateData();
|
|
13998
|
+
});
|
|
13999
|
+
}
|
|
14000
|
+
);
|
|
14001
|
+
(0, import_vue.watch)(
|
|
14002
|
+
() => reactData.reColumnFlag,
|
|
14003
|
+
() => {
|
|
14004
|
+
(0, import_vue.nextTick)(() => {
|
|
14005
|
+
$xeTable.refreshColumn();
|
|
14006
|
+
});
|
|
14007
|
+
}
|
|
14008
|
+
);
|
|
13633
14009
|
const reScrollFlag = (0, import_vue.ref)(0);
|
|
13634
14010
|
const reLayoutFlag = (0, import_vue.ref)(0);
|
|
13635
14011
|
(0, import_vue.watch)(computeSize, () => {
|
|
13636
14012
|
reLayoutFlag.value++;
|
|
13637
14013
|
});
|
|
13638
|
-
(0, import_vue.watch)(
|
|
13639
|
-
|
|
13640
|
-
|
|
13641
|
-
|
|
13642
|
-
|
|
13643
|
-
|
|
13644
|
-
(0, import_vue.watch)(
|
|
13645
|
-
|
|
13646
|
-
|
|
13647
|
-
|
|
13648
|
-
|
|
13649
|
-
|
|
13650
|
-
|
|
13651
|
-
|
|
13652
|
-
|
|
13653
|
-
|
|
13654
|
-
|
|
13655
|
-
|
|
13656
|
-
|
|
13657
|
-
|
|
13658
|
-
|
|
13659
|
-
|
|
13660
|
-
|
|
13661
|
-
|
|
13662
|
-
|
|
13663
|
-
(0, import_vue.watch)(
|
|
13664
|
-
|
|
13665
|
-
|
|
13666
|
-
|
|
13667
|
-
|
|
13668
|
-
|
|
14014
|
+
(0, import_vue.watch)(
|
|
14015
|
+
() => props.showHeader,
|
|
14016
|
+
() => {
|
|
14017
|
+
reLayoutFlag.value++;
|
|
14018
|
+
}
|
|
14019
|
+
);
|
|
14020
|
+
(0, import_vue.watch)(
|
|
14021
|
+
() => props.showFooter,
|
|
14022
|
+
() => {
|
|
14023
|
+
reLayoutFlag.value++;
|
|
14024
|
+
}
|
|
14025
|
+
);
|
|
14026
|
+
(0, import_vue.watch)(
|
|
14027
|
+
() => props.showHeaderOverflow,
|
|
14028
|
+
() => {
|
|
14029
|
+
reLayoutFlag.value++;
|
|
14030
|
+
}
|
|
14031
|
+
);
|
|
14032
|
+
(0, import_vue.watch)(
|
|
14033
|
+
() => props.showOverflow,
|
|
14034
|
+
() => {
|
|
14035
|
+
updateColumnAllOverflow();
|
|
14036
|
+
reLayoutFlag.value++;
|
|
14037
|
+
}
|
|
14038
|
+
);
|
|
14039
|
+
(0, import_vue.watch)(
|
|
14040
|
+
() => props.showFooterOverflow,
|
|
14041
|
+
() => {
|
|
14042
|
+
reLayoutFlag.value++;
|
|
14043
|
+
}
|
|
14044
|
+
);
|
|
14045
|
+
(0, import_vue.watch)(
|
|
14046
|
+
() => reactData.overflowX,
|
|
14047
|
+
() => {
|
|
14048
|
+
reLayoutFlag.value++;
|
|
14049
|
+
}
|
|
14050
|
+
);
|
|
14051
|
+
(0, import_vue.watch)(
|
|
14052
|
+
() => reactData.overflowY,
|
|
14053
|
+
() => {
|
|
14054
|
+
reLayoutFlag.value++;
|
|
14055
|
+
}
|
|
14056
|
+
);
|
|
14057
|
+
(0, import_vue.watch)(
|
|
14058
|
+
() => props.height,
|
|
14059
|
+
() => {
|
|
14060
|
+
reLayoutFlag.value++;
|
|
14061
|
+
}
|
|
14062
|
+
);
|
|
14063
|
+
(0, import_vue.watch)(
|
|
14064
|
+
() => props.maxHeight,
|
|
14065
|
+
() => {
|
|
14066
|
+
reLayoutFlag.value++;
|
|
14067
|
+
}
|
|
14068
|
+
);
|
|
14069
|
+
(0, import_vue.watch)(
|
|
14070
|
+
() => import_core.VxeUI.getLanguage(),
|
|
14071
|
+
() => {
|
|
14072
|
+
reLayoutFlag.value++;
|
|
14073
|
+
}
|
|
14074
|
+
);
|
|
13669
14075
|
(0, import_vue.watch)(computeIsVScrollbar, () => {
|
|
13670
14076
|
(0, import_vue.nextTick)(() => {
|
|
13671
14077
|
bindScrollbarResize();
|
|
@@ -13706,58 +14112,91 @@ var table_default = (0, import_comp.defineVxeComponent)({
|
|
|
13706
14112
|
});
|
|
13707
14113
|
});
|
|
13708
14114
|
const footFlag = (0, import_vue.ref)(0);
|
|
13709
|
-
(0, import_vue.watch)(
|
|
13710
|
-
|
|
13711
|
-
|
|
13712
|
-
|
|
13713
|
-
|
|
13714
|
-
|
|
14115
|
+
(0, import_vue.watch)(
|
|
14116
|
+
() => props.footerData ? props.footerData.length : -1,
|
|
14117
|
+
() => {
|
|
14118
|
+
footFlag.value++;
|
|
14119
|
+
}
|
|
14120
|
+
);
|
|
14121
|
+
(0, import_vue.watch)(
|
|
14122
|
+
() => props.footerData,
|
|
14123
|
+
() => {
|
|
14124
|
+
footFlag.value++;
|
|
14125
|
+
}
|
|
14126
|
+
);
|
|
13715
14127
|
(0, import_vue.watch)(footFlag, () => {
|
|
13716
14128
|
internalData.footerFullDataRowData = {};
|
|
13717
14129
|
$xeTable.updateFooter();
|
|
13718
14130
|
});
|
|
13719
|
-
(0, import_vue.watch)(
|
|
13720
|
-
|
|
13721
|
-
|
|
13722
|
-
|
|
14131
|
+
(0, import_vue.watch)(
|
|
14132
|
+
() => props.syncResize,
|
|
14133
|
+
(value) => {
|
|
14134
|
+
if (value) {
|
|
13723
14135
|
handleUpdateResize();
|
|
13724
|
-
|
|
13725
|
-
|
|
14136
|
+
(0, import_vue.nextTick)(() => {
|
|
14137
|
+
handleUpdateResize();
|
|
14138
|
+
setTimeout(() => handleUpdateResize());
|
|
14139
|
+
});
|
|
14140
|
+
}
|
|
13726
14141
|
}
|
|
13727
|
-
|
|
14142
|
+
);
|
|
13728
14143
|
const mergeCellFlag = (0, import_vue.ref)(0);
|
|
13729
|
-
(0, import_vue.watch)(
|
|
13730
|
-
|
|
13731
|
-
|
|
13732
|
-
|
|
13733
|
-
|
|
13734
|
-
|
|
14144
|
+
(0, import_vue.watch)(
|
|
14145
|
+
() => props.mergeCells ? props.mergeCells.length : -1,
|
|
14146
|
+
() => {
|
|
14147
|
+
mergeCellFlag.value++;
|
|
14148
|
+
}
|
|
14149
|
+
);
|
|
14150
|
+
(0, import_vue.watch)(
|
|
14151
|
+
() => props.mergeCells,
|
|
14152
|
+
() => {
|
|
14153
|
+
mergeCellFlag.value++;
|
|
14154
|
+
}
|
|
14155
|
+
);
|
|
13735
14156
|
(0, import_vue.watch)(mergeCellFlag, () => {
|
|
13736
14157
|
handleUpdateMergeBodyCells(props.mergeCells || []);
|
|
13737
14158
|
});
|
|
13738
14159
|
const mergeHeaderItemFlag = (0, import_vue.ref)(0);
|
|
13739
|
-
(0, import_vue.watch)(
|
|
13740
|
-
|
|
13741
|
-
|
|
13742
|
-
|
|
13743
|
-
|
|
13744
|
-
|
|
14160
|
+
(0, import_vue.watch)(
|
|
14161
|
+
() => props.mergeHeaderCells ? props.mergeHeaderCells.length : -1,
|
|
14162
|
+
() => {
|
|
14163
|
+
mergeHeaderItemFlag.value++;
|
|
14164
|
+
}
|
|
14165
|
+
);
|
|
14166
|
+
(0, import_vue.watch)(
|
|
14167
|
+
() => props.mergeHeaderCells,
|
|
14168
|
+
() => {
|
|
14169
|
+
mergeHeaderItemFlag.value++;
|
|
14170
|
+
}
|
|
14171
|
+
);
|
|
13745
14172
|
(0, import_vue.watch)(mergeHeaderItemFlag, () => {
|
|
13746
14173
|
handleUpdateMergeHeaderCells(props.mergeHeaderCells || []);
|
|
13747
14174
|
});
|
|
13748
14175
|
const mergeFooteCellFlag = (0, import_vue.ref)(0);
|
|
13749
|
-
(0, import_vue.watch)(
|
|
13750
|
-
|
|
13751
|
-
|
|
13752
|
-
|
|
13753
|
-
|
|
13754
|
-
|
|
13755
|
-
(0, import_vue.watch)(
|
|
13756
|
-
|
|
13757
|
-
|
|
13758
|
-
|
|
13759
|
-
|
|
13760
|
-
|
|
14176
|
+
(0, import_vue.watch)(
|
|
14177
|
+
() => props.mergeFooterCells ? props.mergeFooterCells.length : -1,
|
|
14178
|
+
() => {
|
|
14179
|
+
mergeFooteCellFlag.value++;
|
|
14180
|
+
}
|
|
14181
|
+
);
|
|
14182
|
+
(0, import_vue.watch)(
|
|
14183
|
+
() => props.mergeFooterCells,
|
|
14184
|
+
() => {
|
|
14185
|
+
mergeFooteCellFlag.value++;
|
|
14186
|
+
}
|
|
14187
|
+
);
|
|
14188
|
+
(0, import_vue.watch)(
|
|
14189
|
+
() => props.mergeFooterItems ? props.mergeFooterItems.length : -1,
|
|
14190
|
+
() => {
|
|
14191
|
+
mergeFooteCellFlag.value++;
|
|
14192
|
+
}
|
|
14193
|
+
);
|
|
14194
|
+
(0, import_vue.watch)(
|
|
14195
|
+
() => props.mergeFooterItems,
|
|
14196
|
+
() => {
|
|
14197
|
+
mergeFooteCellFlag.value++;
|
|
14198
|
+
}
|
|
14199
|
+
);
|
|
13761
14200
|
(0, import_vue.watch)(mergeFooteCellFlag, () => {
|
|
13762
14201
|
const mFooterCells = props.mergeFooterCells || props.mergeFooterItems;
|
|
13763
14202
|
handleUpdateMergeFooterCells(mFooterCells || []);
|
|
@@ -13776,9 +14215,12 @@ var table_default = (0, import_comp.defineVxeComponent)({
|
|
|
13776
14215
|
}
|
|
13777
14216
|
});
|
|
13778
14217
|
const kfFlag = (0, import_vue.ref)(0);
|
|
13779
|
-
(0, import_vue.watch)(
|
|
13780
|
-
|
|
13781
|
-
|
|
14218
|
+
(0, import_vue.watch)(
|
|
14219
|
+
() => reactData.updateColFlag,
|
|
14220
|
+
() => {
|
|
14221
|
+
kfFlag.value++;
|
|
14222
|
+
}
|
|
14223
|
+
);
|
|
13782
14224
|
(0, import_vue.watch)(computeKeepFields, () => {
|
|
13783
14225
|
kfFlag.value++;
|
|
13784
14226
|
});
|
|
@@ -14004,7 +14446,7 @@ var table_default = (0, import_comp.defineVxeComponent)({
|
|
|
14004
14446
|
if (mouseOpts.area && mouseOpts.selected) {
|
|
14005
14447
|
warnLog("vxe.error.errConflicts", ["mouse-config.area", "mouse-config.selected"]);
|
|
14006
14448
|
}
|
|
14007
|
-
if (mouseOpts.area &&
|
|
14449
|
+
if (mouseOpts.area && props.treeConfig && !treeOpts.transform) {
|
|
14008
14450
|
errLog("vxe.error.notSupportProp", ["mouse-config.area", "tree-config.transform=false", "tree-config.transform=true"]);
|
|
14009
14451
|
}
|
|
14010
14452
|
if (props.editConfig && editOpts.activeMethod) {
|