vxe-table 4.11.5 → 4.11.6
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/index.css +1 -1
- package/es/index.min.css +1 -1
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/table/src/table.js +30 -32
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/lib/index.css +1 -1
- package/lib/index.min.css +1 -1
- package/lib/index.umd.js +32 -35
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/table/src/table.js +28 -31
- package/lib/table/src/table.min.js +1 -1
- package/lib/ui/index.js +1 -1
- package/lib/ui/index.min.js +1 -1
- package/lib/ui/src/log.js +1 -1
- package/lib/ui/src/log.min.js +1 -1
- package/package.json +2 -2
- package/packages/table/src/table.ts +29 -32
- package/styles/index.scss +1 -1
- package/styles/theme/base.scss +1 -1
- /package/es/{iconfont.1740013709563.ttf → iconfont.1740038200666.ttf} +0 -0
- /package/es/{iconfont.1740013709563.woff → iconfont.1740038200666.woff} +0 -0
- /package/es/{iconfont.1740013709563.woff2 → iconfont.1740038200666.woff2} +0 -0
- /package/lib/{iconfont.1740013709563.ttf → iconfont.1740038200666.ttf} +0 -0
- /package/lib/{iconfont.1740013709563.woff → iconfont.1740038200666.woff} +0 -0
- /package/lib/{iconfont.1740013709563.woff2 → iconfont.1740038200666.woff2} +0 -0
package/lib/index.umd.js
CHANGED
|
@@ -3138,7 +3138,7 @@ function eqEmptyValue(cellValue) {
|
|
|
3138
3138
|
;// ./packages/ui/index.ts
|
|
3139
3139
|
|
|
3140
3140
|
|
|
3141
|
-
const version = "4.11.
|
|
3141
|
+
const version = "4.11.6";
|
|
3142
3142
|
core_.VxeUI.version = version;
|
|
3143
3143
|
core_.VxeUI.tableVersion = version;
|
|
3144
3144
|
core_.VxeUI.setConfig({
|
|
@@ -3586,7 +3586,7 @@ var esnext_iterator_some = __webpack_require__(7550);
|
|
|
3586
3586
|
const {
|
|
3587
3587
|
log: log_log
|
|
3588
3588
|
} = core_.VxeUI;
|
|
3589
|
-
const log_version = `table v${"4.11.
|
|
3589
|
+
const log_version = `table v${"4.11.6"}`;
|
|
3590
3590
|
const warnLog = log_log.create('warn', log_version);
|
|
3591
3591
|
const errLog = log_log.create('error', log_version);
|
|
3592
3592
|
;// ./packages/table/src/columnInfo.ts
|
|
@@ -13429,15 +13429,11 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
13429
13429
|
internalData.tableFullData = fullData;
|
|
13430
13430
|
internalData.tableFullTreeData = treeData;
|
|
13431
13431
|
// 缓存数据
|
|
13432
|
-
$xeTable.cacheRowMap(true
|
|
13432
|
+
$xeTable.cacheRowMap(true);
|
|
13433
13433
|
// 原始数据
|
|
13434
13434
|
internalData.tableSynchData = datas;
|
|
13435
13435
|
if (isReset) {
|
|
13436
13436
|
internalData.isResizeCellHeight = false;
|
|
13437
|
-
reactData.rowExpandedMaps = {};
|
|
13438
|
-
reactData.rowExpandLazyLoadedMaps = {};
|
|
13439
|
-
reactData.treeExpandedMaps = {};
|
|
13440
|
-
reactData.treeExpandLazyLoadedMaps = {};
|
|
13441
13437
|
}
|
|
13442
13438
|
// 克隆原数据,用于显示编辑状态,与编辑值做对比
|
|
13443
13439
|
if (keepSource) {
|
|
@@ -14944,7 +14940,7 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
14944
14940
|
treeConfig
|
|
14945
14941
|
} = props;
|
|
14946
14942
|
const {
|
|
14947
|
-
|
|
14943
|
+
fullAllDataRowIdData
|
|
14948
14944
|
} = internalData;
|
|
14949
14945
|
const treeOpts = computeTreeOpts.value;
|
|
14950
14946
|
const {
|
|
@@ -14960,7 +14956,7 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
14960
14956
|
rowid = getRowid($xeTable, rowOrRowid);
|
|
14961
14957
|
}
|
|
14962
14958
|
if (rowid) {
|
|
14963
|
-
const rest =
|
|
14959
|
+
const rest = fullAllDataRowIdData[rowid];
|
|
14964
14960
|
const row = rest ? rest.row : null;
|
|
14965
14961
|
if (row) {
|
|
14966
14962
|
return row[transform ? mapChildrenField : childrenField] || [];
|
|
@@ -14977,7 +14973,7 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
14977
14973
|
treeConfig
|
|
14978
14974
|
} = props;
|
|
14979
14975
|
const {
|
|
14980
|
-
|
|
14976
|
+
fullAllDataRowIdData
|
|
14981
14977
|
} = internalData;
|
|
14982
14978
|
if (rowOrRowid && treeConfig) {
|
|
14983
14979
|
let rowid;
|
|
@@ -14987,7 +14983,7 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
14987
14983
|
rowid = getRowid($xeTable, rowOrRowid);
|
|
14988
14984
|
}
|
|
14989
14985
|
if (rowid) {
|
|
14990
|
-
const rest =
|
|
14986
|
+
const rest = fullAllDataRowIdData[rowid];
|
|
14991
14987
|
return rest ? rest.parent : null;
|
|
14992
14988
|
}
|
|
14993
14989
|
}
|
|
@@ -15003,10 +14999,10 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
15003
14999
|
*/
|
|
15004
15000
|
getRowById(cellValue) {
|
|
15005
15001
|
const {
|
|
15006
|
-
|
|
15002
|
+
fullAllDataRowIdData
|
|
15007
15003
|
} = internalData;
|
|
15008
15004
|
const rowid = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eqNull(cellValue) ? '' : encodeURIComponent(cellValue || '');
|
|
15009
|
-
return
|
|
15005
|
+
return fullAllDataRowIdData[rowid] ? fullAllDataRowIdData[rowid].row : null;
|
|
15010
15006
|
},
|
|
15011
15007
|
/**
|
|
15012
15008
|
* 根据行获取行的唯一主键
|
|
@@ -16372,9 +16368,6 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
16372
16368
|
return rowRest && !!rowRest.treeLoaded;
|
|
16373
16369
|
},
|
|
16374
16370
|
clearTreeExpandLoaded(rows) {
|
|
16375
|
-
const tExpandedMaps = {
|
|
16376
|
-
...reactData.treeExpandedMaps
|
|
16377
|
-
};
|
|
16378
16371
|
const {
|
|
16379
16372
|
fullAllDataRowIdData
|
|
16380
16373
|
} = internalData;
|
|
@@ -16382,7 +16375,11 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
16382
16375
|
const {
|
|
16383
16376
|
transform
|
|
16384
16377
|
} = treeOpts;
|
|
16378
|
+
let tExpandedMaps = {};
|
|
16385
16379
|
if (rows) {
|
|
16380
|
+
tExpandedMaps = {
|
|
16381
|
+
...reactData.treeExpandedMaps
|
|
16382
|
+
};
|
|
16386
16383
|
if (!external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(rows)) {
|
|
16387
16384
|
rows = [rows];
|
|
16388
16385
|
}
|
|
@@ -16396,11 +16393,15 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
16396
16393
|
}
|
|
16397
16394
|
}
|
|
16398
16395
|
});
|
|
16396
|
+
} else {
|
|
16397
|
+
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().each(fullAllDataRowIdData, rowRest => {
|
|
16398
|
+
rowRest.treeLoaded = false;
|
|
16399
|
+
});
|
|
16399
16400
|
}
|
|
16400
|
-
reactData.treeExpandedMaps =
|
|
16401
|
+
reactData.treeExpandedMaps = {};
|
|
16401
16402
|
if (transform) {
|
|
16402
16403
|
handleVirtualTreeToList();
|
|
16403
|
-
return
|
|
16404
|
+
return $xeTable.handleTableData();
|
|
16404
16405
|
}
|
|
16405
16406
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)();
|
|
16406
16407
|
},
|
|
@@ -17945,7 +17946,7 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
17945
17946
|
/**
|
|
17946
17947
|
* 更新数据行的 Map
|
|
17947
17948
|
*/
|
|
17948
|
-
cacheRowMap(
|
|
17949
|
+
cacheRowMap() {
|
|
17949
17950
|
const {
|
|
17950
17951
|
treeConfig
|
|
17951
17952
|
} = props;
|
|
@@ -17972,9 +17973,9 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
17972
17973
|
if (isLazy && row[hasChildField] && external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isUndefined(row[childrenField])) {
|
|
17973
17974
|
row[childrenField] = null;
|
|
17974
17975
|
}
|
|
17975
|
-
let
|
|
17976
|
-
if (
|
|
17977
|
-
|
|
17976
|
+
let rowRest = fullAllDataRowIdData[rowid];
|
|
17977
|
+
if (!rowRest) {
|
|
17978
|
+
rowRest = {
|
|
17978
17979
|
row,
|
|
17979
17980
|
rowid,
|
|
17980
17981
|
seq,
|
|
@@ -17991,19 +17992,15 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
17991
17992
|
expandHeight: 0
|
|
17992
17993
|
};
|
|
17993
17994
|
}
|
|
17994
|
-
|
|
17995
|
-
|
|
17996
|
-
|
|
17997
|
-
|
|
17998
|
-
|
|
17999
|
-
|
|
18000
|
-
|
|
18001
|
-
}
|
|
18002
|
-
fullAllDataRowIdMaps[rowid] = cacheItem;
|
|
17995
|
+
rowRest.row = row;
|
|
17996
|
+
rowRest.items = items;
|
|
17997
|
+
rowRest.parent = parentRow;
|
|
17998
|
+
rowRest.level = level;
|
|
17999
|
+
rowRest.index = treeConfig && parentRow ? -1 : index;
|
|
18000
|
+
fullDataRowIdMaps[rowid] = rowRest;
|
|
18001
|
+
fullAllDataRowIdMaps[rowid] = rowRest;
|
|
18003
18002
|
};
|
|
18004
|
-
|
|
18005
|
-
internalData.fullDataRowIdData = fullDataRowIdMaps;
|
|
18006
|
-
}
|
|
18003
|
+
internalData.fullDataRowIdData = fullDataRowIdMaps;
|
|
18007
18004
|
internalData.fullAllDataRowIdData = fullAllDataRowIdMaps;
|
|
18008
18005
|
if (treeConfig) {
|
|
18009
18006
|
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree(tableFullTreeData, handleRow, {
|
|
@@ -21581,7 +21578,7 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
21581
21578
|
if (value && value.length >= 50000) {
|
|
21582
21579
|
warnLog('vxe.error.errLargeData', ['loadData(data), reloadData(data)']);
|
|
21583
21580
|
}
|
|
21584
|
-
loadTableData(value,
|
|
21581
|
+
loadTableData(value, false).then(() => {
|
|
21585
21582
|
const {
|
|
21586
21583
|
scrollXLoad,
|
|
21587
21584
|
scrollYLoad,
|