vxe-table 3.16.11 → 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/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/lib/index.umd.js +8 -2
- 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/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/es/{iconfont.1754364584926.ttf → iconfont.1754381491758.ttf} +0 -0
- /package/es/{iconfont.1754364584926.woff → iconfont.1754381491758.woff} +0 -0
- /package/es/{iconfont.1754364584926.woff2 → iconfont.1754381491758.woff2} +0 -0
- /package/lib/{iconfont.1754364584926.ttf → iconfont.1754381491758.ttf} +0 -0
- /package/lib/{iconfont.1754364584926.woff → iconfont.1754381491758.woff} +0 -0
- /package/lib/{iconfont.1754364584926.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/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
|
};
|