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/lib/table/src/methods.js
CHANGED
|
@@ -4579,6 +4579,7 @@ const Methods = {
|
|
|
4579
4579
|
isRowGroupStatus
|
|
4580
4580
|
} = reactData;
|
|
4581
4581
|
const {
|
|
4582
|
+
currKeyField,
|
|
4582
4583
|
fullAllDataRowIdData,
|
|
4583
4584
|
tableFullData,
|
|
4584
4585
|
tableFullTreeData,
|
|
@@ -4587,11 +4588,15 @@ const Methods = {
|
|
|
4587
4588
|
} = internalData;
|
|
4588
4589
|
const fullAllDataRowIdMaps = isReset ? {} : Object.assign({}, fullAllDataRowIdData); // 存在已删除数据
|
|
4589
4590
|
const fullDataRowIdMaps = {};
|
|
4591
|
+
const idMaps = {};
|
|
4590
4592
|
const {
|
|
4591
4593
|
handleUpdateRowId
|
|
4592
4594
|
} = (0, _util.createHandleUpdateRowId)($xeTable);
|
|
4593
4595
|
const handleRowCache = (row, index, items, currIndex, parentRow, rowid, level, seq) => {
|
|
4594
4596
|
let rowRest = fullAllDataRowIdMaps[rowid];
|
|
4597
|
+
if (idMaps[rowid]) {
|
|
4598
|
+
(0, _log.errLog)('vxe.error.repeatKey', [currKeyField, rowid]);
|
|
4599
|
+
}
|
|
4595
4600
|
if (!rowRest) {
|
|
4596
4601
|
rowRest = {
|
|
4597
4602
|
row,
|
|
@@ -4618,6 +4623,7 @@ const Methods = {
|
|
|
4618
4623
|
rowRest.level = level;
|
|
4619
4624
|
rowRest.index = currIndex;
|
|
4620
4625
|
rowRest.treeIndex = index;
|
|
4626
|
+
idMaps[rowid] = true;
|
|
4621
4627
|
fullDataRowIdMaps[rowid] = rowRest;
|
|
4622
4628
|
fullAllDataRowIdMaps[rowid] = rowRest;
|
|
4623
4629
|
};
|