vxe-table 3.17.2 → 3.17.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/grid/src/grid.js +10 -1
- package/es/locale/lang/de-DE.js +80 -80
- package/es/locale/lang/es-ES.js +79 -79
- package/es/locale/lang/ja-JP.js +82 -82
- package/es/locale/lang/ko-KR.js +88 -88
- package/es/locale/lang/ru-RU.js +84 -84
- package/es/locale/lang/vi-VN.js +79 -79
- package/es/locale/lang/zh-CHT.js +21 -21
- package/es/style.css +1 -1
- package/es/table/src/body.js +4 -4
- package/es/table/src/methods.js +28 -5
- package/es/table/src/table.js +9 -120
- package/es/table/src/util.js +116 -0
- package/es/toolbar/src/toolbar.js +11 -3
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/lib/grid/src/grid.js +10 -1
- package/lib/grid/src/grid.min.js +1 -1
- package/lib/index.umd.js +183 -132
- package/lib/index.umd.min.js +1 -1
- package/lib/locale/lang/de-DE.js +80 -80
- package/lib/locale/lang/de-DE.min.js +1 -1
- package/lib/locale/lang/de-DE.umd.js +80 -80
- package/lib/locale/lang/es-ES.js +79 -79
- package/lib/locale/lang/es-ES.min.js +1 -1
- package/lib/locale/lang/es-ES.umd.js +79 -79
- package/lib/locale/lang/ja-JP.js +82 -82
- package/lib/locale/lang/ja-JP.min.js +1 -1
- package/lib/locale/lang/ja-JP.umd.js +82 -82
- package/lib/locale/lang/ko-KR.js +88 -88
- package/lib/locale/lang/ko-KR.min.js +1 -1
- package/lib/locale/lang/ko-KR.umd.js +88 -88
- package/lib/locale/lang/ru-RU.js +84 -84
- package/lib/locale/lang/ru-RU.min.js +1 -1
- package/lib/locale/lang/ru-RU.umd.js +84 -84
- package/lib/locale/lang/vi-VN.js +79 -79
- package/lib/locale/lang/vi-VN.min.js +1 -1
- package/lib/locale/lang/vi-VN.umd.js +79 -79
- package/lib/locale/lang/zh-CHT.js +21 -21
- package/lib/locale/lang/zh-CHT.min.js +1 -1
- package/lib/locale/lang/zh-CHT.umd.js +21 -21
- package/lib/style.css +1 -1
- package/lib/table/src/body.js +4 -3
- package/lib/table/src/body.min.js +1 -1
- package/lib/table/src/methods.js +32 -4
- package/lib/table/src/methods.min.js +1 -1
- package/lib/table/src/table.js +8 -119
- package/lib/table/src/table.min.js +1 -1
- package/lib/table/src/util.js +117 -0
- package/lib/table/src/util.min.js +1 -1
- package/lib/toolbar/src/toolbar.js +11 -3
- package/lib/toolbar/src/toolbar.min.js +1 -1
- package/lib/ui/index.js +1 -1
- package/lib/ui/index.min.js +1 -1
- package/lib/ui/src/log.js +1 -1
- package/lib/ui/src/log.min.js +1 -1
- package/package.json +1 -1
- package/packages/grid/src/grid.ts +14 -2
- package/packages/locale/lang/de-DE.ts +80 -80
- package/packages/locale/lang/es-ES.ts +79 -79
- package/packages/locale/lang/ja-JP.ts +82 -82
- package/packages/locale/lang/ko-KR.ts +88 -88
- package/packages/locale/lang/ru-RU.ts +84 -84
- package/packages/locale/lang/vi-VN.ts +79 -79
- package/packages/locale/lang/zh-CHT.ts +21 -21
- package/packages/table/src/body.ts +4 -4
- package/packages/table/src/methods.ts +28 -5
- package/packages/table/src/table.ts +12 -123
- package/packages/table/src/util.ts +120 -0
- package/packages/toolbar/src/toolbar.ts +13 -3
- /package/es/{iconfont.1754370027268.ttf → iconfont.1754457088150.ttf} +0 -0
- /package/es/{iconfont.1754370027268.woff → iconfont.1754457088150.woff} +0 -0
- /package/es/{iconfont.1754370027268.woff2 → iconfont.1754457088150.woff2} +0 -0
- /package/lib/{iconfont.1754370027268.ttf → iconfont.1754457088150.ttf} +0 -0
- /package/lib/{iconfont.1754370027268.woff → iconfont.1754457088150.woff} +0 -0
- /package/lib/{iconfont.1754370027268.woff2 → iconfont.1754457088150.woff2} +0 -0
package/lib/index.umd.js
CHANGED
|
@@ -2002,7 +2002,7 @@ function getClass(property, params) {
|
|
|
2002
2002
|
;// CONCATENATED MODULE: ./packages/ui/index.ts
|
|
2003
2003
|
|
|
2004
2004
|
|
|
2005
|
-
const version = "3.17.
|
|
2005
|
+
const version = "3.17.4";
|
|
2006
2006
|
core_.VxeUI.version = version;
|
|
2007
2007
|
core_.VxeUI.tableVersion = version;
|
|
2008
2008
|
core_.VxeUI.setConfig({
|
|
@@ -2669,7 +2669,7 @@ function isNodeElement(elem) {
|
|
|
2669
2669
|
const {
|
|
2670
2670
|
log: log_log
|
|
2671
2671
|
} = core_.VxeUI;
|
|
2672
|
-
const log_version = `table v${"3.17.
|
|
2672
|
+
const log_version = `table v${"3.17.4"}`;
|
|
2673
2673
|
const warnLog = log_log.create('warn', log_version);
|
|
2674
2674
|
const errLog = log_log.create('error', log_version);
|
|
2675
2675
|
;// CONCATENATED MODULE: ./packages/table/src/columnInfo.ts
|
|
@@ -2879,6 +2879,122 @@ class ColumnInfo {
|
|
|
2879
2879
|
|
|
2880
2880
|
|
|
2881
2881
|
|
|
2882
|
+
function createInternalData() {
|
|
2883
|
+
return {
|
|
2884
|
+
tZindex: 0,
|
|
2885
|
+
currKeyField: '',
|
|
2886
|
+
isCurrDeepKey: false,
|
|
2887
|
+
elemStore: {},
|
|
2888
|
+
// 存放横向 X 虚拟滚动相关的信息
|
|
2889
|
+
scrollXStore: {
|
|
2890
|
+
preloadSize: 0,
|
|
2891
|
+
offsetSize: 0,
|
|
2892
|
+
visibleSize: 0,
|
|
2893
|
+
visibleStartIndex: 0,
|
|
2894
|
+
visibleEndIndex: 0,
|
|
2895
|
+
startIndex: 0,
|
|
2896
|
+
endIndex: 0
|
|
2897
|
+
},
|
|
2898
|
+
// 存放纵向 Y 虚拟滚动相关信息
|
|
2899
|
+
scrollYStore: {
|
|
2900
|
+
preloadSize: 0,
|
|
2901
|
+
offsetSize: 0,
|
|
2902
|
+
visibleSize: 0,
|
|
2903
|
+
visibleStartIndex: 0,
|
|
2904
|
+
visibleEndIndex: 0,
|
|
2905
|
+
startIndex: 0,
|
|
2906
|
+
endIndex: 0
|
|
2907
|
+
},
|
|
2908
|
+
// 表格宽度
|
|
2909
|
+
tableWidth: 0,
|
|
2910
|
+
// 表格高度
|
|
2911
|
+
tableHeight: 0,
|
|
2912
|
+
// 表头高度
|
|
2913
|
+
headerHeight: 0,
|
|
2914
|
+
// 表尾高度
|
|
2915
|
+
footerHeight: 0,
|
|
2916
|
+
customHeight: 0,
|
|
2917
|
+
customMinHeight: 0,
|
|
2918
|
+
customMaxHeight: 0,
|
|
2919
|
+
// 当前 hover 行
|
|
2920
|
+
hoverRow: null,
|
|
2921
|
+
// 最后滚动位置
|
|
2922
|
+
lastScrollLeft: 0,
|
|
2923
|
+
lastScrollTop: 0,
|
|
2924
|
+
// 单选框属性,已选中保留的行
|
|
2925
|
+
radioReserveRow: null,
|
|
2926
|
+
// 复选框属性,已选中保留的行集合
|
|
2927
|
+
checkboxReserveRowMap: {},
|
|
2928
|
+
// 行数据,已展开保留的行集合
|
|
2929
|
+
rowExpandedReserveRowMap: {},
|
|
2930
|
+
// 树结构数据,已展开保留的行集合
|
|
2931
|
+
treeExpandedReserveRowMap: {},
|
|
2932
|
+
// 树结构数据,不确定状态的集合
|
|
2933
|
+
treeIndeterminateRowMaps: {},
|
|
2934
|
+
// 列表完整数据、条件处理后
|
|
2935
|
+
tableFullData: [],
|
|
2936
|
+
afterFullData: [],
|
|
2937
|
+
afterTreeFullData: [],
|
|
2938
|
+
afterGroupFullData: [],
|
|
2939
|
+
// 列表条件处理后数据集合
|
|
2940
|
+
afterFullRowMaps: {},
|
|
2941
|
+
// 树结构完整数据、条件处理后
|
|
2942
|
+
tableFullTreeData: [],
|
|
2943
|
+
// 行分组全量数据、条件处理后
|
|
2944
|
+
tableFullGroupData: [],
|
|
2945
|
+
tableSynchData: [],
|
|
2946
|
+
tableSourceData: [],
|
|
2947
|
+
// 收集的列配置(带分组)
|
|
2948
|
+
collectColumn: [],
|
|
2949
|
+
// 完整所有列(不带分组)
|
|
2950
|
+
tableFullColumn: [],
|
|
2951
|
+
// 渲染所有列
|
|
2952
|
+
visibleColumn: [],
|
|
2953
|
+
// 全量数据集(包括当前和已删除)
|
|
2954
|
+
fullAllDataRowIdData: {},
|
|
2955
|
+
// 数据集(仅当前)
|
|
2956
|
+
fullDataRowIdData: {},
|
|
2957
|
+
// 数据集(仅可视)
|
|
2958
|
+
visibleDataRowIdData: {},
|
|
2959
|
+
// 渲染中缓存数据
|
|
2960
|
+
sourceDataRowIdData: {},
|
|
2961
|
+
fullColumnIdData: {},
|
|
2962
|
+
fullColumnFieldData: {},
|
|
2963
|
+
// 合并单元格的数据
|
|
2964
|
+
mergeBodyList: [],
|
|
2965
|
+
mergeBodyMaps: {},
|
|
2966
|
+
// 合并表尾的数据
|
|
2967
|
+
mergeFooterList: [],
|
|
2968
|
+
mergeFooterMaps: {},
|
|
2969
|
+
// 已合并单元格数据集合
|
|
2970
|
+
mergeBodyCellMaps: {},
|
|
2971
|
+
// 已合并表尾数据集合
|
|
2972
|
+
mergeFooterCellMaps: {},
|
|
2973
|
+
// 已展开的行集合
|
|
2974
|
+
rowExpandedMaps: {},
|
|
2975
|
+
// 懒加载中的展开行的集合
|
|
2976
|
+
rowExpandLazyLoadedMaps: {},
|
|
2977
|
+
// 已展开的分组行
|
|
2978
|
+
rowGroupExpandedMaps: {},
|
|
2979
|
+
// 已展开树节点集合
|
|
2980
|
+
treeExpandedMaps: {},
|
|
2981
|
+
// 懒加载中的树节点的集合
|
|
2982
|
+
treeExpandLazyLoadedMaps: {},
|
|
2983
|
+
// 复选框属性,已选中的行集合
|
|
2984
|
+
selectCheckboxMaps: {},
|
|
2985
|
+
// 已标记的对象集
|
|
2986
|
+
pendingRowMaps: {},
|
|
2987
|
+
// 已新增的临时行
|
|
2988
|
+
insertRowMaps: {},
|
|
2989
|
+
// 已删除行
|
|
2990
|
+
removeRowMaps: {},
|
|
2991
|
+
cvCacheMaps: {},
|
|
2992
|
+
inited: false,
|
|
2993
|
+
tooltipTimeout: null,
|
|
2994
|
+
initStatus: false,
|
|
2995
|
+
isActivated: false
|
|
2996
|
+
};
|
|
2997
|
+
}
|
|
2882
2998
|
const getAllConvertColumns = (columns, parentColumn) => {
|
|
2883
2999
|
const result = [];
|
|
2884
3000
|
columns.forEach(column => {
|
|
@@ -8789,9 +8905,7 @@ function loadTableData($xeTable, datas, isReset) {
|
|
|
8789
8905
|
internalData.cvCacheMaps = {};
|
|
8790
8906
|
reactData.isRowLoading = true;
|
|
8791
8907
|
reactData.scrollVMLoading = false;
|
|
8792
|
-
// internalData.treeExpandedMaps = {}
|
|
8793
8908
|
reactData.treeExpandedFlag++;
|
|
8794
|
-
// internalData.rowExpandedMaps = {}
|
|
8795
8909
|
reactData.rowExpandedFlag++;
|
|
8796
8910
|
internalData.insertRowMaps = {};
|
|
8797
8911
|
reactData.insertRowFlag++;
|
|
@@ -9951,6 +10065,7 @@ const Methods = {
|
|
|
9951
10065
|
isRowGroupStatus
|
|
9952
10066
|
} = reactData;
|
|
9953
10067
|
const {
|
|
10068
|
+
currKeyField,
|
|
9954
10069
|
fullAllDataRowIdData,
|
|
9955
10070
|
tableFullData,
|
|
9956
10071
|
tableFullTreeData,
|
|
@@ -9961,11 +10076,15 @@ const Methods = {
|
|
|
9961
10076
|
...fullAllDataRowIdData
|
|
9962
10077
|
}; // 存在已删除数据
|
|
9963
10078
|
const fullDataRowIdMaps = {};
|
|
10079
|
+
const idMaps = {};
|
|
9964
10080
|
const {
|
|
9965
10081
|
handleUpdateRowId
|
|
9966
10082
|
} = createHandleUpdateRowId($xeTable);
|
|
9967
10083
|
const handleRowCache = (row, index, items, currIndex, parentRow, rowid, level, seq) => {
|
|
9968
10084
|
let rowRest = fullAllDataRowIdMaps[rowid];
|
|
10085
|
+
if (idMaps[rowid]) {
|
|
10086
|
+
errLog('vxe.error.repeatKey', [currKeyField, rowid]);
|
|
10087
|
+
}
|
|
9969
10088
|
if (!rowRest) {
|
|
9970
10089
|
rowRest = {
|
|
9971
10090
|
row,
|
|
@@ -9993,6 +10112,7 @@ const Methods = {
|
|
|
9993
10112
|
rowRest.level = level;
|
|
9994
10113
|
rowRest.index = currIndex;
|
|
9995
10114
|
rowRest.treeIndex = index;
|
|
10115
|
+
idMaps[rowid] = true;
|
|
9996
10116
|
fullDataRowIdMaps[rowid] = rowRest;
|
|
9997
10117
|
fullAllDataRowIdMaps[rowid] = rowRest;
|
|
9998
10118
|
};
|
|
@@ -14078,8 +14198,32 @@ const Methods = {
|
|
|
14078
14198
|
/**
|
|
14079
14199
|
* 用于当前行,获取当前行的数据
|
|
14080
14200
|
*/
|
|
14081
|
-
getCurrentRecord() {
|
|
14082
|
-
|
|
14201
|
+
getCurrentRecord(isFull) {
|
|
14202
|
+
const $xeTable = this;
|
|
14203
|
+
const props = $xeTable;
|
|
14204
|
+
const reactData = $xeTable;
|
|
14205
|
+
const internalData = $xeTable;
|
|
14206
|
+
const {
|
|
14207
|
+
currentRow
|
|
14208
|
+
} = reactData;
|
|
14209
|
+
const {
|
|
14210
|
+
fullDataRowIdData,
|
|
14211
|
+
afterFullRowMaps
|
|
14212
|
+
} = internalData;
|
|
14213
|
+
const rowOpts = $xeTable.computeRowOpts;
|
|
14214
|
+
if (rowOpts.isCurrent || props.highlightCurrentRow) {
|
|
14215
|
+
const rowid = getRowid($xeTable, currentRow);
|
|
14216
|
+
if (isFull) {
|
|
14217
|
+
if (fullDataRowIdData[rowid]) {
|
|
14218
|
+
return currentRow;
|
|
14219
|
+
}
|
|
14220
|
+
} else {
|
|
14221
|
+
if (afterFullRowMaps[rowid]) {
|
|
14222
|
+
return currentRow;
|
|
14223
|
+
}
|
|
14224
|
+
}
|
|
14225
|
+
}
|
|
14226
|
+
return null;
|
|
14083
14227
|
},
|
|
14084
14228
|
/**
|
|
14085
14229
|
* 用于单选行,获取当已选中的数据
|
|
@@ -18009,6 +18153,7 @@ function renderTdColumn(h, $xeTable, seq, rowid, fixedType, isOptimizeMode, rowL
|
|
|
18009
18153
|
tableData,
|
|
18010
18154
|
dragRow,
|
|
18011
18155
|
overflowX,
|
|
18156
|
+
overflowY,
|
|
18012
18157
|
currentColumn,
|
|
18013
18158
|
scrollXLoad,
|
|
18014
18159
|
scrollYLoad,
|
|
@@ -18246,11 +18391,11 @@ function renderTdColumn(h, $xeTable, seq, rowid, fixedType, isOptimizeMode, rowL
|
|
|
18246
18391
|
const isLastColumn = $columnIndex === columns.length - 1;
|
|
18247
18392
|
const isAutoCellWidth = !column.resizeWidth && (column.minWidth === 'auto' || column.width === 'auto');
|
|
18248
18393
|
let isVNPreEmptyStatus = false;
|
|
18249
|
-
if (
|
|
18394
|
+
if (!isMergeCell) {
|
|
18250
18395
|
if (!dragRow || getRowid($xeTable, dragRow) !== rowid) {
|
|
18251
|
-
if (scrollYLoad && !treeConfig && !virtualYOpts.immediate && (_rowIndex < scrollYStore.visibleStartIndex - scrollYStore.preloadSize || _rowIndex > scrollYStore.visibleEndIndex + scrollYStore.preloadSize)) {
|
|
18396
|
+
if (overflowY && scrollYLoad && !treeConfig && !virtualYOpts.immediate && (_rowIndex < scrollYStore.visibleStartIndex - scrollYStore.preloadSize || _rowIndex > scrollYStore.visibleEndIndex + scrollYStore.preloadSize)) {
|
|
18252
18397
|
isVNPreEmptyStatus = true;
|
|
18253
|
-
} else if (scrollXLoad && !virtualXOpts.immediate && !column.fixed && (_columnIndex < scrollXStore.visibleStartIndex - scrollXStore.preloadSize || _columnIndex > scrollXStore.visibleEndIndex + scrollXStore.preloadSize)) {
|
|
18398
|
+
} else if (overflowX && scrollXLoad && !virtualXOpts.immediate && !column.fixed && (_columnIndex < scrollXStore.visibleStartIndex - scrollXStore.preloadSize || _columnIndex > scrollXStore.visibleEndIndex + scrollXStore.preloadSize)) {
|
|
18254
18399
|
isVNPreEmptyStatus = true;
|
|
18255
18400
|
}
|
|
18256
18401
|
}
|
|
@@ -29499,7 +29644,7 @@ function renderBody(h, $xeTable) {
|
|
|
29499
29644
|
if (value && value.length >= 50000) {
|
|
29500
29645
|
warnLog('vxe.error.errLargeData', ['loadData(data), reloadData(data)']);
|
|
29501
29646
|
}
|
|
29502
|
-
this.loadTableData(value || [],
|
|
29647
|
+
this.loadTableData(value || [], true).then(() => {
|
|
29503
29648
|
const {
|
|
29504
29649
|
scrollXLoad,
|
|
29505
29650
|
scrollYLoad,
|
|
@@ -29627,116 +29772,7 @@ function renderBody(h, $xeTable) {
|
|
|
29627
29772
|
const $xeTable = this;
|
|
29628
29773
|
const props = $xeTable;
|
|
29629
29774
|
const internalData = $xeTable;
|
|
29630
|
-
|
|
29631
|
-
tZindex: 0,
|
|
29632
|
-
currKeyField: '',
|
|
29633
|
-
isCurrDeepKey: false,
|
|
29634
|
-
elemStore: {},
|
|
29635
|
-
// 存放横向 X 虚拟滚动相关的信息
|
|
29636
|
-
scrollXStore: {
|
|
29637
|
-
preloadSize: 0,
|
|
29638
|
-
offsetSize: 0,
|
|
29639
|
-
visibleSize: 0,
|
|
29640
|
-
visibleStartIndex: 0,
|
|
29641
|
-
visibleEndIndex: 0,
|
|
29642
|
-
startIndex: 0,
|
|
29643
|
-
endIndex: 0
|
|
29644
|
-
},
|
|
29645
|
-
// 存放纵向 Y 虚拟滚动相关信息
|
|
29646
|
-
scrollYStore: {
|
|
29647
|
-
preloadSize: 0,
|
|
29648
|
-
offsetSize: 0,
|
|
29649
|
-
visibleSize: 0,
|
|
29650
|
-
visibleStartIndex: 0,
|
|
29651
|
-
visibleEndIndex: 0,
|
|
29652
|
-
startIndex: 0,
|
|
29653
|
-
endIndex: 0
|
|
29654
|
-
},
|
|
29655
|
-
// 表格宽度
|
|
29656
|
-
tableWidth: 0,
|
|
29657
|
-
// 表格高度
|
|
29658
|
-
tableHeight: 0,
|
|
29659
|
-
// 表头高度
|
|
29660
|
-
headerHeight: 0,
|
|
29661
|
-
// 表尾高度
|
|
29662
|
-
footerHeight: 0,
|
|
29663
|
-
// 当前 hover 行
|
|
29664
|
-
// hoverRow: null,
|
|
29665
|
-
// 最后滚动位置
|
|
29666
|
-
lastScrollLeft: 0,
|
|
29667
|
-
lastScrollTop: 0,
|
|
29668
|
-
// 单选框属性,已选中保留的行
|
|
29669
|
-
radioReserveRow: null,
|
|
29670
|
-
// 复选框属性,已选中保留的行集合
|
|
29671
|
-
checkboxReserveRowMap: {},
|
|
29672
|
-
// 行数据,已展开保留的行集合
|
|
29673
|
-
rowExpandedReserveRowMap: {},
|
|
29674
|
-
// 树结构数据,已展开保留的行集合
|
|
29675
|
-
treeExpandedReserveRowMap: {},
|
|
29676
|
-
// 树结构数据,不确定状态的集合
|
|
29677
|
-
treeIndeterminateRowMaps: {},
|
|
29678
|
-
// 列表完整数据、条件处理后
|
|
29679
|
-
tableFullData: [],
|
|
29680
|
-
afterFullData: [],
|
|
29681
|
-
afterTreeFullData: [],
|
|
29682
|
-
afterGroupFullData: [],
|
|
29683
|
-
// 列表条件处理后数据集合
|
|
29684
|
-
afterFullRowMaps: {},
|
|
29685
|
-
// 树结构完整数据、条件处理后
|
|
29686
|
-
tableFullTreeData: [],
|
|
29687
|
-
// 行分组全量数据、条件处理后
|
|
29688
|
-
tableFullGroupData: [],
|
|
29689
|
-
tableSynchData: [],
|
|
29690
|
-
tableSourceData: [],
|
|
29691
|
-
// 收集的列配置(带分组)
|
|
29692
|
-
collectColumn: [],
|
|
29693
|
-
// 完整所有列(不带分组)
|
|
29694
|
-
tableFullColumn: [],
|
|
29695
|
-
// 渲染所有列
|
|
29696
|
-
visibleColumn: [],
|
|
29697
|
-
// 全量数据集(包括当前和已删除)
|
|
29698
|
-
fullAllDataRowIdData: {},
|
|
29699
|
-
// 数据集(仅当前)
|
|
29700
|
-
fullDataRowIdData: {},
|
|
29701
|
-
// 数据集(仅可视)
|
|
29702
|
-
visibleDataRowIdData: {},
|
|
29703
|
-
// 渲染中缓存数据
|
|
29704
|
-
sourceDataRowIdData: {},
|
|
29705
|
-
fullColumnIdData: {},
|
|
29706
|
-
fullColumnFieldData: {},
|
|
29707
|
-
// 合并单元格的数据
|
|
29708
|
-
mergeBodyList: [],
|
|
29709
|
-
mergeBodyMaps: {},
|
|
29710
|
-
// 合并表尾的数据
|
|
29711
|
-
mergeFooterList: [],
|
|
29712
|
-
mergeFooterMaps: {},
|
|
29713
|
-
// 已合并单元格数据集合
|
|
29714
|
-
mergeBodyCellMaps: {},
|
|
29715
|
-
// 已合并表尾数据集合
|
|
29716
|
-
mergeFooterCellMaps: {},
|
|
29717
|
-
// 已展开的行集合
|
|
29718
|
-
rowExpandedMaps: {},
|
|
29719
|
-
// 懒加载中的展开行的集合
|
|
29720
|
-
rowExpandLazyLoadedMaps: {},
|
|
29721
|
-
// 已展开的分组行
|
|
29722
|
-
rowGroupExpandedMaps: {},
|
|
29723
|
-
// 已展开树节点集合
|
|
29724
|
-
treeExpandedMaps: {},
|
|
29725
|
-
// 懒加载中的树节点的集合
|
|
29726
|
-
treeExpandLazyLoadedMaps: {},
|
|
29727
|
-
// 复选框属性,已选中的行集合
|
|
29728
|
-
selectCheckboxMaps: {},
|
|
29729
|
-
// 已标记的对象集
|
|
29730
|
-
pendingRowMaps: {},
|
|
29731
|
-
// 已新增的临时行
|
|
29732
|
-
insertRowMaps: {},
|
|
29733
|
-
// 已删除行
|
|
29734
|
-
removeRowMaps: {},
|
|
29735
|
-
cvCacheMaps: {},
|
|
29736
|
-
swYSize: 0,
|
|
29737
|
-
swYInterval: 0,
|
|
29738
|
-
swYTotal: 0
|
|
29739
|
-
});
|
|
29775
|
+
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().assign(internalData, createInternalData());
|
|
29740
29776
|
handleKeyField($xeTable);
|
|
29741
29777
|
const {
|
|
29742
29778
|
data,
|
|
@@ -30085,23 +30121,15 @@ function renderBody(h, $xeTable) {
|
|
|
30085
30121
|
},
|
|
30086
30122
|
beforeDestroy() {
|
|
30087
30123
|
const $xeTable = this;
|
|
30088
|
-
const internalData = $xeTable;
|
|
30089
30124
|
const tableViewportEl = $xeTable.$refs.refTableViewportElem;
|
|
30090
30125
|
if (tableViewportEl) {
|
|
30091
30126
|
tableViewportEl.removeEventListener('wheel', $xeTable.triggerBodyWheelEvent);
|
|
30092
30127
|
}
|
|
30093
|
-
internalData.cvCacheMaps = {};
|
|
30094
|
-
internalData.prevDragRow = null;
|
|
30095
|
-
internalData.prevDragCol = null;
|
|
30096
30128
|
if (this.$resize) {
|
|
30097
30129
|
this.$resize.disconnect();
|
|
30098
30130
|
}
|
|
30099
30131
|
this.closeFilter();
|
|
30100
30132
|
this.closeMenu();
|
|
30101
|
-
this.preventEvent(null, 'beforeDestroy');
|
|
30102
|
-
},
|
|
30103
|
-
destroyed() {
|
|
30104
|
-
const $xeTable = this;
|
|
30105
30133
|
table_globalEvents.off($xeTable, 'paste');
|
|
30106
30134
|
table_globalEvents.off($xeTable, 'copy');
|
|
30107
30135
|
table_globalEvents.off($xeTable, 'cut');
|
|
@@ -30111,7 +30139,13 @@ function renderBody(h, $xeTable) {
|
|
|
30111
30139
|
table_globalEvents.off($xeTable, 'keydown');
|
|
30112
30140
|
table_globalEvents.off($xeTable, 'resize');
|
|
30113
30141
|
table_globalEvents.off($xeTable, 'contextmenu');
|
|
30142
|
+
this.preventEvent(null, 'beforeDestroy');
|
|
30143
|
+
},
|
|
30144
|
+
destroyed() {
|
|
30145
|
+
const $xeTable = this;
|
|
30146
|
+
const internalData = $xeTable;
|
|
30114
30147
|
this.preventEvent(null, 'destroyed');
|
|
30148
|
+
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().assign(internalData, createInternalData());
|
|
30115
30149
|
},
|
|
30116
30150
|
render(h) {
|
|
30117
30151
|
// 使用已安装的组件,如果未安装则不渲染
|
|
@@ -30418,6 +30452,11 @@ const {
|
|
|
30418
30452
|
globalMixins: toolbar_globalMixins,
|
|
30419
30453
|
renderEmptyElement: toolbar_renderEmptyElement
|
|
30420
30454
|
} = core_.VxeUI;
|
|
30455
|
+
function toolbar_createInternalData() {
|
|
30456
|
+
return {
|
|
30457
|
+
connectTable: null
|
|
30458
|
+
};
|
|
30459
|
+
}
|
|
30421
30460
|
/* harmony default export */ var src_toolbar = (/* define-vxe-component start */defineVxeComponent({
|
|
30422
30461
|
name: 'VxeToolbar',
|
|
30423
30462
|
mixins: [toolbar_globalMixins.sizeMixin],
|
|
@@ -30465,9 +30504,7 @@ const {
|
|
|
30465
30504
|
connectFlag: 0,
|
|
30466
30505
|
columns: []
|
|
30467
30506
|
};
|
|
30468
|
-
const internalData =
|
|
30469
|
-
connectTable: null
|
|
30470
|
-
};
|
|
30507
|
+
const internalData = toolbar_createInternalData();
|
|
30471
30508
|
return {
|
|
30472
30509
|
xID,
|
|
30473
30510
|
reactData,
|
|
@@ -31288,6 +31325,11 @@ const {
|
|
|
31288
31325
|
}
|
|
31289
31326
|
}
|
|
31290
31327
|
},
|
|
31328
|
+
destroyed() {
|
|
31329
|
+
const $xeToolbar = this;
|
|
31330
|
+
const internalData = $xeToolbar.internalData;
|
|
31331
|
+
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().assign(internalData, toolbar_createInternalData());
|
|
31332
|
+
},
|
|
31291
31333
|
render(h) {
|
|
31292
31334
|
return this.renderVN(h);
|
|
31293
31335
|
}
|
|
@@ -31348,6 +31390,11 @@ external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default(
|
|
|
31348
31390
|
return $xeTable && $xeTable[name](...args);
|
|
31349
31391
|
};
|
|
31350
31392
|
});
|
|
31393
|
+
function grid_createInternalData() {
|
|
31394
|
+
return {
|
|
31395
|
+
connectTable: null
|
|
31396
|
+
};
|
|
31397
|
+
}
|
|
31351
31398
|
/* harmony default export */ var grid = (/* define-vxe-component start */defineVxeComponent({
|
|
31352
31399
|
name: 'VxeGrid',
|
|
31353
31400
|
mixins: [grid_globalMixins.sizeMixin],
|
|
@@ -31412,9 +31459,11 @@ external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default(
|
|
|
31412
31459
|
currentPage: 1
|
|
31413
31460
|
}
|
|
31414
31461
|
};
|
|
31462
|
+
const internalData = grid_createInternalData();
|
|
31415
31463
|
return {
|
|
31416
31464
|
xID,
|
|
31417
|
-
reactData
|
|
31465
|
+
reactData,
|
|
31466
|
+
internalData
|
|
31418
31467
|
};
|
|
31419
31468
|
},
|
|
31420
31469
|
computed: {
|
|
@@ -33176,7 +33225,9 @@ external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default(
|
|
|
33176
33225
|
},
|
|
33177
33226
|
destroyed() {
|
|
33178
33227
|
const $xeGrid = this;
|
|
33228
|
+
const internalData = $xeGrid.internalData;
|
|
33179
33229
|
grid_globalEvents.off($xeGrid, 'keydown');
|
|
33230
|
+
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().assign(internalData, grid_createInternalData());
|
|
33180
33231
|
},
|
|
33181
33232
|
render(h) {
|
|
33182
33233
|
return this.renderVN(h);
|