vxe-table 3.16.10 → 3.16.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/style.css +1 -1
- package/es/table/src/methods.js +6 -1
- package/es/table/src/table.js +26 -6
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/lib/index.umd.js +36 -8
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/table/src/methods.js +6 -0
- package/lib/table/src/methods.min.js +1 -1
- package/lib/table/src/table.js +28 -6
- package/lib/table/src/table.min.js +1 -1
- package/lib/ui/index.js +1 -1
- package/lib/ui/index.min.js +1 -1
- package/lib/ui/src/log.js +1 -1
- package/lib/ui/src/log.min.js +1 -1
- package/package.json +1 -1
- package/packages/table/src/methods.ts +6 -1
- package/packages/table/src/table.ts +26 -6
- /package/es/{iconfont.1754358121155.ttf → iconfont.1754381491758.ttf} +0 -0
- /package/es/{iconfont.1754358121155.woff → iconfont.1754381491758.woff} +0 -0
- /package/es/{iconfont.1754358121155.woff2 → iconfont.1754381491758.woff2} +0 -0
- /package/lib/{iconfont.1754358121155.ttf → iconfont.1754381491758.ttf} +0 -0
- /package/lib/{iconfont.1754358121155.woff → iconfont.1754381491758.woff} +0 -0
- /package/lib/{iconfont.1754358121155.woff2 → iconfont.1754381491758.woff2} +0 -0
package/es/table/src/methods.js
CHANGED
|
@@ -3895,12 +3895,16 @@ const Methods = {
|
|
|
3895
3895
|
const internalData = $xeTable;
|
|
3896
3896
|
const { treeConfig } = props;
|
|
3897
3897
|
const { isRowGroupStatus } = reactData;
|
|
3898
|
-
const { fullAllDataRowIdData, tableFullData, tableFullTreeData, tableFullGroupData, treeExpandedMaps } = internalData;
|
|
3898
|
+
const { currKeyField, fullAllDataRowIdData, tableFullData, tableFullTreeData, tableFullGroupData, treeExpandedMaps } = internalData;
|
|
3899
3899
|
const fullAllDataRowIdMaps = isReset ? {} : Object.assign({}, fullAllDataRowIdData); // 存在已删除数据
|
|
3900
3900
|
const fullDataRowIdMaps = {};
|
|
3901
|
+
const idMaps = {};
|
|
3901
3902
|
const { handleUpdateRowId } = createHandleUpdateRowId($xeTable);
|
|
3902
3903
|
const handleRowCache = (row, index, items, currIndex, parentRow, rowid, level, seq) => {
|
|
3903
3904
|
let rowRest = fullAllDataRowIdMaps[rowid];
|
|
3905
|
+
if (idMaps[rowid]) {
|
|
3906
|
+
errLog('vxe.error.repeatKey', [currKeyField, rowid]);
|
|
3907
|
+
}
|
|
3904
3908
|
if (!rowRest) {
|
|
3905
3909
|
rowRest = { row, rowid, seq, index: -1, _index: -1, $index: -1, treeIndex: index, items, parent: parentRow, level, height: 0, resizeHeight: 0, oTop: 0, expandHeight: 0 };
|
|
3906
3910
|
}
|
|
@@ -3912,6 +3916,7 @@ const Methods = {
|
|
|
3912
3916
|
rowRest.level = level;
|
|
3913
3917
|
rowRest.index = currIndex;
|
|
3914
3918
|
rowRest.treeIndex = index;
|
|
3919
|
+
idMaps[rowid] = true;
|
|
3915
3920
|
fullDataRowIdMaps[rowid] = rowRest;
|
|
3916
3921
|
fullAllDataRowIdMaps[rowid] = rowRest;
|
|
3917
3922
|
};
|
package/es/table/src/table.js
CHANGED
|
@@ -757,20 +757,40 @@ export default {
|
|
|
757
757
|
computeVirtualXOpts() {
|
|
758
758
|
const $xeTable = this;
|
|
759
759
|
const props = $xeTable;
|
|
760
|
-
const { virtualXConfig } = props;
|
|
760
|
+
const { virtualXConfig, scrollX } = props;
|
|
761
|
+
const globalVirtualXConfig = getConfig().table.virtualXConfig;
|
|
762
|
+
const globalScrollX = getConfig().table.scrollX;
|
|
761
763
|
if (virtualXConfig) {
|
|
762
|
-
return Object.assign({},
|
|
764
|
+
return Object.assign({}, globalVirtualXConfig, virtualXConfig);
|
|
763
765
|
}
|
|
764
|
-
|
|
766
|
+
if (scrollX) {
|
|
767
|
+
// 已废弃,保留兼容
|
|
768
|
+
return Object.assign({}, globalScrollX, scrollX);
|
|
769
|
+
}
|
|
770
|
+
if (globalVirtualXConfig) {
|
|
771
|
+
return Object.assign({}, globalVirtualXConfig, virtualXConfig);
|
|
772
|
+
}
|
|
773
|
+
// 已废弃,保留兼容
|
|
774
|
+
return Object.assign({}, globalScrollX, scrollX);
|
|
765
775
|
},
|
|
766
776
|
computeVirtualYOpts() {
|
|
767
777
|
const $xeTable = this;
|
|
768
778
|
const props = $xeTable;
|
|
769
|
-
const { virtualYConfig } = props;
|
|
779
|
+
const { virtualYConfig, scrollY } = props;
|
|
780
|
+
const globalVirtualYConfig = getConfig().table.virtualYConfig;
|
|
781
|
+
const globalScrollY = getConfig().table.scrollY;
|
|
770
782
|
if (virtualYConfig) {
|
|
771
|
-
return Object.assign({},
|
|
783
|
+
return Object.assign({}, globalVirtualYConfig, virtualYConfig);
|
|
784
|
+
}
|
|
785
|
+
if (scrollY) {
|
|
786
|
+
// 已废弃,保留兼容
|
|
787
|
+
return Object.assign({}, globalScrollY, scrollY);
|
|
788
|
+
}
|
|
789
|
+
if (globalVirtualYConfig) {
|
|
790
|
+
return Object.assign({}, globalVirtualYConfig, virtualYConfig);
|
|
772
791
|
}
|
|
773
|
-
|
|
792
|
+
// 已废弃,保留兼容
|
|
793
|
+
return Object.assign({}, globalScrollY, scrollY);
|
|
774
794
|
},
|
|
775
795
|
computeScrollbarOpts() {
|
|
776
796
|
const $xeTable = this;
|
package/es/ui/index.js
CHANGED
package/es/ui/src/log.js
CHANGED
package/lib/index.umd.js
CHANGED
|
@@ -3234,7 +3234,7 @@ function getClass(property, params) {
|
|
|
3234
3234
|
;// ./packages/ui/index.ts
|
|
3235
3235
|
|
|
3236
3236
|
|
|
3237
|
-
const version = "3.16.
|
|
3237
|
+
const version = "3.16.12";
|
|
3238
3238
|
core_.VxeUI.version = version;
|
|
3239
3239
|
core_.VxeUI.tableVersion = version;
|
|
3240
3240
|
core_.VxeUI.setConfig({
|
|
@@ -3908,7 +3908,7 @@ var es_iterator_map = __webpack_require__(1701);
|
|
|
3908
3908
|
const {
|
|
3909
3909
|
log: log_log
|
|
3910
3910
|
} = core_.VxeUI;
|
|
3911
|
-
const log_version = `table v${"3.16.
|
|
3911
|
+
const log_version = `table v${"3.16.12"}`;
|
|
3912
3912
|
const warnLog = log_log.create('warn', log_version);
|
|
3913
3913
|
const errLog = log_log.create('error', log_version);
|
|
3914
3914
|
;// ./packages/table/src/columnInfo.ts
|
|
@@ -11073,6 +11073,7 @@ const Methods = {
|
|
|
11073
11073
|
isRowGroupStatus
|
|
11074
11074
|
} = reactData;
|
|
11075
11075
|
const {
|
|
11076
|
+
currKeyField,
|
|
11076
11077
|
fullAllDataRowIdData,
|
|
11077
11078
|
tableFullData,
|
|
11078
11079
|
tableFullTreeData,
|
|
@@ -11083,11 +11084,15 @@ const Methods = {
|
|
|
11083
11084
|
...fullAllDataRowIdData
|
|
11084
11085
|
}; // 存在已删除数据
|
|
11085
11086
|
const fullDataRowIdMaps = {};
|
|
11087
|
+
const idMaps = {};
|
|
11086
11088
|
const {
|
|
11087
11089
|
handleUpdateRowId
|
|
11088
11090
|
} = createHandleUpdateRowId($xeTable);
|
|
11089
11091
|
const handleRowCache = (row, index, items, currIndex, parentRow, rowid, level, seq) => {
|
|
11090
11092
|
let rowRest = fullAllDataRowIdMaps[rowid];
|
|
11093
|
+
if (idMaps[rowid]) {
|
|
11094
|
+
errLog('vxe.error.repeatKey', [currKeyField, rowid]);
|
|
11095
|
+
}
|
|
11091
11096
|
if (!rowRest) {
|
|
11092
11097
|
rowRest = {
|
|
11093
11098
|
row,
|
|
@@ -11114,6 +11119,7 @@ const Methods = {
|
|
|
11114
11119
|
rowRest.level = level;
|
|
11115
11120
|
rowRest.index = currIndex;
|
|
11116
11121
|
rowRest.treeIndex = index;
|
|
11122
|
+
idMaps[rowid] = true;
|
|
11117
11123
|
fullDataRowIdMaps[rowid] = rowRest;
|
|
11118
11124
|
fullAllDataRowIdMaps[rowid] = rowRest;
|
|
11119
11125
|
};
|
|
@@ -29953,23 +29959,45 @@ function renderBody(h, $xeTable) {
|
|
|
29953
29959
|
const $xeTable = this;
|
|
29954
29960
|
const props = $xeTable;
|
|
29955
29961
|
const {
|
|
29956
|
-
virtualXConfig
|
|
29962
|
+
virtualXConfig,
|
|
29963
|
+
scrollX
|
|
29957
29964
|
} = props;
|
|
29965
|
+
const globalVirtualXConfig = table_getConfig().table.virtualXConfig;
|
|
29966
|
+
const globalScrollX = table_getConfig().table.scrollX;
|
|
29958
29967
|
if (virtualXConfig) {
|
|
29959
|
-
return Object.assign({},
|
|
29968
|
+
return Object.assign({}, globalVirtualXConfig, virtualXConfig);
|
|
29969
|
+
}
|
|
29970
|
+
if (scrollX) {
|
|
29971
|
+
// 已废弃,保留兼容
|
|
29972
|
+
return Object.assign({}, globalScrollX, scrollX);
|
|
29973
|
+
}
|
|
29974
|
+
if (globalVirtualXConfig) {
|
|
29975
|
+
return Object.assign({}, globalVirtualXConfig, virtualXConfig);
|
|
29960
29976
|
}
|
|
29961
|
-
|
|
29977
|
+
// 已废弃,保留兼容
|
|
29978
|
+
return Object.assign({}, globalScrollX, scrollX);
|
|
29962
29979
|
},
|
|
29963
29980
|
computeVirtualYOpts() {
|
|
29964
29981
|
const $xeTable = this;
|
|
29965
29982
|
const props = $xeTable;
|
|
29966
29983
|
const {
|
|
29967
|
-
virtualYConfig
|
|
29984
|
+
virtualYConfig,
|
|
29985
|
+
scrollY
|
|
29968
29986
|
} = props;
|
|
29987
|
+
const globalVirtualYConfig = table_getConfig().table.virtualYConfig;
|
|
29988
|
+
const globalScrollY = table_getConfig().table.scrollY;
|
|
29969
29989
|
if (virtualYConfig) {
|
|
29970
|
-
return Object.assign({},
|
|
29990
|
+
return Object.assign({}, globalVirtualYConfig, virtualYConfig);
|
|
29991
|
+
}
|
|
29992
|
+
if (scrollY) {
|
|
29993
|
+
// 已废弃,保留兼容
|
|
29994
|
+
return Object.assign({}, globalScrollY, scrollY);
|
|
29995
|
+
}
|
|
29996
|
+
if (globalVirtualYConfig) {
|
|
29997
|
+
return Object.assign({}, globalVirtualYConfig, virtualYConfig);
|
|
29971
29998
|
}
|
|
29972
|
-
|
|
29999
|
+
// 已废弃,保留兼容
|
|
30000
|
+
return Object.assign({}, globalScrollY, scrollY);
|
|
29973
30001
|
},
|
|
29974
30002
|
computeScrollbarOpts() {
|
|
29975
30003
|
const $xeTable = this;
|