vxe-table 4.10.6-beta.5 → 4.10.6-beta.7
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/module/edit/hook.js +5 -5
- package/es/table/src/body.js +1 -1
- package/es/table/src/table.js +24 -27
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/lib/index.umd.js +46 -39
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/table/module/edit/hook.js +5 -0
- package/lib/table/module/edit/hook.min.js +1 -1
- package/lib/table/src/body.js +1 -1
- package/lib/table/src/body.min.js +1 -1
- package/lib/table/src/table.js +38 -36
- 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/module/edit/hook.ts +5 -5
- package/packages/table/src/body.ts +1 -1
- package/packages/table/src/table.ts +23 -25
- /package/es/{iconfont.1736761484754.ttf → iconfont.1736820154664.ttf} +0 -0
- /package/es/{iconfont.1736761484754.woff → iconfont.1736820154664.woff} +0 -0
- /package/es/{iconfont.1736761484754.woff2 → iconfont.1736820154664.woff2} +0 -0
- /package/lib/{iconfont.1736761484754.ttf → iconfont.1736820154664.ttf} +0 -0
- /package/lib/{iconfont.1736761484754.woff → iconfont.1736820154664.woff} +0 -0
- /package/lib/{iconfont.1736761484754.woff2 → iconfont.1736820154664.woff2} +0 -0
package/es/table/src/table.js
CHANGED
|
@@ -1455,7 +1455,7 @@ export default defineComponent({
|
|
|
1455
1455
|
rowRest._index = index;
|
|
1456
1456
|
}
|
|
1457
1457
|
else {
|
|
1458
|
-
const rest = { row, rowid, seq, index: -1, $index: -1, _index: index, items: [], parent: null, level: 0, height: 0, oTop: 0 };
|
|
1458
|
+
const rest = { row, rowid, seq, index: -1, $index: -1, _index: index, treeIndex: -1, items: [], parent: null, level: 0, height: 0, oTop: 0 };
|
|
1459
1459
|
fullAllDataRowIdData[rowid] = rest;
|
|
1460
1460
|
fullDataRowIdData[rowid] = rest;
|
|
1461
1461
|
}
|
|
@@ -1475,29 +1475,23 @@ export default defineComponent({
|
|
|
1475
1475
|
const childrenField = treeOpts.children || treeOpts.childrenField;
|
|
1476
1476
|
const fullMaps = {};
|
|
1477
1477
|
if (treeConfig) {
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
fullDataRowIdData[rowid] = rest;
|
|
1496
|
-
}
|
|
1497
|
-
fullMaps[rowid] = row;
|
|
1498
|
-
}, { children: transform ? treeOpts.mapChildrenField : childrenField });
|
|
1499
|
-
internalData.afterFullRowMaps = fullMaps;
|
|
1500
|
-
}
|
|
1478
|
+
XEUtils.eachTree(afterTreeFullData, (row, index, items, path) => {
|
|
1479
|
+
const rowid = getRowid($xeTable, row);
|
|
1480
|
+
const rowRest = fullAllDataRowIdData[rowid];
|
|
1481
|
+
const seq = path.map((num, i) => i % 2 === 0 ? (Number(num) + 1) : '.').join('');
|
|
1482
|
+
if (rowRest) {
|
|
1483
|
+
rowRest.seq = seq;
|
|
1484
|
+
rowRest.treeIndex = index;
|
|
1485
|
+
}
|
|
1486
|
+
else {
|
|
1487
|
+
const rest = { row, rowid, seq, index: -1, $index: -1, _index: -1, treeIndex: -1, items: [], parent: null, level: 0, height: 0, oTop: 0 };
|
|
1488
|
+
fullAllDataRowIdData[rowid] = rest;
|
|
1489
|
+
fullDataRowIdData[rowid] = rest;
|
|
1490
|
+
}
|
|
1491
|
+
fullMaps[rowid] = row;
|
|
1492
|
+
}, { children: transform ? treeOpts.mapChildrenField : childrenField });
|
|
1493
|
+
internalData.afterFullRowMaps = fullMaps;
|
|
1494
|
+
updateAfterListIndex();
|
|
1501
1495
|
}
|
|
1502
1496
|
else {
|
|
1503
1497
|
updateAfterListIndex();
|
|
@@ -2515,12 +2509,14 @@ export default defineComponent({
|
|
|
2515
2509
|
}
|
|
2516
2510
|
calcCellWidth();
|
|
2517
2511
|
autoCellWidth();
|
|
2512
|
+
updateStyle();
|
|
2518
2513
|
return computeScrollLoad().then(() => {
|
|
2519
2514
|
if (reFull === true) {
|
|
2520
2515
|
// 初始化时需要在列计算之后再执行优化运算,达到最优显示效果
|
|
2521
2516
|
calcCellHeight();
|
|
2522
2517
|
calcCellWidth();
|
|
2523
2518
|
autoCellWidth();
|
|
2519
|
+
updateStyle();
|
|
2524
2520
|
return computeScrollLoad();
|
|
2525
2521
|
}
|
|
2526
2522
|
});
|
|
@@ -3007,8 +3003,9 @@ export default defineComponent({
|
|
|
3007
3003
|
handleVirtualTreeToList();
|
|
3008
3004
|
tablePrivateMethods.handleTableData();
|
|
3009
3005
|
updateAfterDataIndex();
|
|
3006
|
+
return nextTick();
|
|
3010
3007
|
}).then(() => {
|
|
3011
|
-
return tableMethods.recalculate();
|
|
3008
|
+
return tableMethods.recalculate(true);
|
|
3012
3009
|
}).then(() => {
|
|
3013
3010
|
setTimeout(() => {
|
|
3014
3011
|
tableMethods.updateCellAreas();
|
|
@@ -3376,7 +3373,7 @@ export default defineComponent({
|
|
|
3376
3373
|
XEUtils.eachTree(rows, (childRow, index, items, path, parentItem, nodes) => {
|
|
3377
3374
|
const rowid = getRowid($xeTable, childRow);
|
|
3378
3375
|
const parentRow = parentItem || parentRest.row;
|
|
3379
|
-
const rest = { row: childRow, rowid, seq: -1, index, _index: -1, $index: -1, items, parent: parentRow, level: parentLevel + nodes.length, height: 0, oTop: 0 };
|
|
3376
|
+
const rest = { row: childRow, rowid, seq: -1, index, _index: -1, $index: -1, treeIndex: -1, items, parent: parentRow, level: parentLevel + nodes.length, height: 0, oTop: 0 };
|
|
3380
3377
|
fullDataRowIdData[rowid] = rest;
|
|
3381
3378
|
fullAllDataRowIdData[rowid] = rest;
|
|
3382
3379
|
}, { children: childrenField });
|
|
@@ -6428,7 +6425,7 @@ export default defineComponent({
|
|
|
6428
6425
|
}
|
|
6429
6426
|
let cacheItem = fullAllDataRowIdData[rowid];
|
|
6430
6427
|
if (!cacheItem) {
|
|
6431
|
-
cacheItem = { row, rowid, seq, index: -1, _index: -1, $index: -1, items, parent: parentRow, level, height: 0, oTop: 0 };
|
|
6428
|
+
cacheItem = { row, rowid, seq, index: -1, _index: -1, $index: -1, treeIndex: index, items, parent: parentRow, level, height: 0, oTop: 0 };
|
|
6432
6429
|
}
|
|
6433
6430
|
cacheItem.row = row;
|
|
6434
6431
|
cacheItem.items = items;
|
package/es/ui/index.js
CHANGED
package/es/ui/src/log.js
CHANGED
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.10.6-beta.
|
|
3141
|
+
const version = "4.10.6-beta.7";
|
|
3142
3142
|
core_.VxeUI.version = version;
|
|
3143
3143
|
core_.VxeUI.tableVersion = version;
|
|
3144
3144
|
core_.VxeUI.setConfig({
|
|
@@ -3568,7 +3568,7 @@ var esnext_iterator_some = __webpack_require__(7550);
|
|
|
3568
3568
|
const {
|
|
3569
3569
|
log: log_log
|
|
3570
3570
|
} = core_.VxeUI;
|
|
3571
|
-
const log_version = `table v${"4.10.6-beta.
|
|
3571
|
+
const log_version = `table v${"4.10.6-beta.7"}`;
|
|
3572
3572
|
const warnLog = log_log.create('warn', log_version);
|
|
3573
3573
|
const errLog = log_log.create('error', log_version);
|
|
3574
3574
|
;// ./packages/table/src/columnInfo.ts
|
|
@@ -6210,7 +6210,7 @@ const renderType = 'body';
|
|
|
6210
6210
|
let prevRow = null;
|
|
6211
6211
|
if (rest) {
|
|
6212
6212
|
rLevel = rest.level;
|
|
6213
|
-
prevRow = rest.items[rest.
|
|
6213
|
+
prevRow = rest.items[rest.treeIndex - 1];
|
|
6214
6214
|
}
|
|
6215
6215
|
const isFirstRow = $xeTable.eqRow(afterFullData[0], row);
|
|
6216
6216
|
if (treeConfig && treeNode && (treeOpts.showLine || treeOpts.line)) {
|
|
@@ -11922,6 +11922,7 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
11922
11922
|
index: -1,
|
|
11923
11923
|
$index: -1,
|
|
11924
11924
|
_index: index,
|
|
11925
|
+
treeIndex: -1,
|
|
11925
11926
|
items: [],
|
|
11926
11927
|
parent: null,
|
|
11927
11928
|
level: 0,
|
|
@@ -11955,41 +11956,37 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
11955
11956
|
const childrenField = treeOpts.children || treeOpts.childrenField;
|
|
11956
11957
|
const fullMaps = {};
|
|
11957
11958
|
if (treeConfig) {
|
|
11958
|
-
|
|
11959
|
-
|
|
11960
|
-
|
|
11961
|
-
|
|
11962
|
-
|
|
11963
|
-
|
|
11964
|
-
|
|
11965
|
-
|
|
11966
|
-
|
|
11967
|
-
|
|
11968
|
-
|
|
11969
|
-
|
|
11970
|
-
|
|
11971
|
-
|
|
11972
|
-
|
|
11973
|
-
|
|
11974
|
-
|
|
11975
|
-
|
|
11976
|
-
|
|
11977
|
-
|
|
11978
|
-
|
|
11979
|
-
|
|
11980
|
-
|
|
11981
|
-
|
|
11982
|
-
|
|
11983
|
-
|
|
11984
|
-
|
|
11985
|
-
|
|
11986
|
-
|
|
11987
|
-
|
|
11988
|
-
|
|
11989
|
-
children: transform ? treeOpts.mapChildrenField : childrenField
|
|
11990
|
-
});
|
|
11991
|
-
internalData.afterFullRowMaps = fullMaps;
|
|
11992
|
-
}
|
|
11959
|
+
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree(afterTreeFullData, (row, index, items, path) => {
|
|
11960
|
+
const rowid = getRowid($xeTable, row);
|
|
11961
|
+
const rowRest = fullAllDataRowIdData[rowid];
|
|
11962
|
+
const seq = path.map((num, i) => i % 2 === 0 ? Number(num) + 1 : '.').join('');
|
|
11963
|
+
if (rowRest) {
|
|
11964
|
+
rowRest.seq = seq;
|
|
11965
|
+
rowRest.treeIndex = index;
|
|
11966
|
+
} else {
|
|
11967
|
+
const rest = {
|
|
11968
|
+
row,
|
|
11969
|
+
rowid,
|
|
11970
|
+
seq,
|
|
11971
|
+
index: -1,
|
|
11972
|
+
$index: -1,
|
|
11973
|
+
_index: -1,
|
|
11974
|
+
treeIndex: -1,
|
|
11975
|
+
items: [],
|
|
11976
|
+
parent: null,
|
|
11977
|
+
level: 0,
|
|
11978
|
+
height: 0,
|
|
11979
|
+
oTop: 0
|
|
11980
|
+
};
|
|
11981
|
+
fullAllDataRowIdData[rowid] = rest;
|
|
11982
|
+
fullDataRowIdData[rowid] = rest;
|
|
11983
|
+
}
|
|
11984
|
+
fullMaps[rowid] = row;
|
|
11985
|
+
}, {
|
|
11986
|
+
children: transform ? treeOpts.mapChildrenField : childrenField
|
|
11987
|
+
});
|
|
11988
|
+
internalData.afterFullRowMaps = fullMaps;
|
|
11989
|
+
updateAfterListIndex();
|
|
11993
11990
|
} else {
|
|
11994
11991
|
updateAfterListIndex();
|
|
11995
11992
|
}
|
|
@@ -13228,12 +13225,14 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
13228
13225
|
}
|
|
13229
13226
|
calcCellWidth();
|
|
13230
13227
|
autoCellWidth();
|
|
13228
|
+
updateStyle();
|
|
13231
13229
|
return computeScrollLoad().then(() => {
|
|
13232
13230
|
if (reFull === true) {
|
|
13233
13231
|
// 初始化时需要在列计算之后再执行优化运算,达到最优显示效果
|
|
13234
13232
|
calcCellHeight();
|
|
13235
13233
|
calcCellWidth();
|
|
13236
13234
|
autoCellWidth();
|
|
13235
|
+
updateStyle();
|
|
13237
13236
|
return computeScrollLoad();
|
|
13238
13237
|
}
|
|
13239
13238
|
});
|
|
@@ -13785,8 +13784,9 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
13785
13784
|
handleVirtualTreeToList();
|
|
13786
13785
|
tablePrivateMethods.handleTableData();
|
|
13787
13786
|
updateAfterDataIndex();
|
|
13787
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)();
|
|
13788
13788
|
}).then(() => {
|
|
13789
|
-
return tableMethods.recalculate();
|
|
13789
|
+
return tableMethods.recalculate(true);
|
|
13790
13790
|
}).then(() => {
|
|
13791
13791
|
setTimeout(() => {
|
|
13792
13792
|
tableMethods.updateCellAreas();
|
|
@@ -14244,6 +14244,7 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
14244
14244
|
index,
|
|
14245
14245
|
_index: -1,
|
|
14246
14246
|
$index: -1,
|
|
14247
|
+
treeIndex: -1,
|
|
14247
14248
|
items,
|
|
14248
14249
|
parent: parentRow,
|
|
14249
14250
|
level: parentLevel + nodes.length,
|
|
@@ -17701,6 +17702,7 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
17701
17702
|
index: -1,
|
|
17702
17703
|
_index: -1,
|
|
17703
17704
|
$index: -1,
|
|
17705
|
+
treeIndex: index,
|
|
17704
17706
|
items,
|
|
17705
17707
|
parent: parentRow,
|
|
17706
17708
|
level,
|
|
@@ -22049,6 +22051,7 @@ edit_hook_hooks.add('tableEditModule', {
|
|
|
22049
22051
|
index: -1,
|
|
22050
22052
|
_index: -1,
|
|
22051
22053
|
$index: -1,
|
|
22054
|
+
treeIndex: -1,
|
|
22052
22055
|
items: parentChilds,
|
|
22053
22056
|
parent: parentRow,
|
|
22054
22057
|
level: parentLevel + 1,
|
|
@@ -22072,6 +22075,7 @@ edit_hook_hooks.add('tableEditModule', {
|
|
|
22072
22075
|
index: -1,
|
|
22073
22076
|
_index: -1,
|
|
22074
22077
|
$index: -1,
|
|
22078
|
+
treeIndex: -1,
|
|
22075
22079
|
items: tableFullTreeData,
|
|
22076
22080
|
parent: null,
|
|
22077
22081
|
level: 0,
|
|
@@ -22126,6 +22130,7 @@ edit_hook_hooks.add('tableEditModule', {
|
|
|
22126
22130
|
index: -1,
|
|
22127
22131
|
_index: -1,
|
|
22128
22132
|
$index: -1,
|
|
22133
|
+
treeIndex: -1,
|
|
22129
22134
|
items: afterFullData,
|
|
22130
22135
|
parent: null,
|
|
22131
22136
|
level: 0,
|
|
@@ -22161,6 +22166,7 @@ edit_hook_hooks.add('tableEditModule', {
|
|
|
22161
22166
|
seq: -1,
|
|
22162
22167
|
index: -1,
|
|
22163
22168
|
_index: -1,
|
|
22169
|
+
treeIndex: -1,
|
|
22164
22170
|
$index: -1,
|
|
22165
22171
|
items: afterFullData,
|
|
22166
22172
|
parent: null,
|
|
@@ -22221,6 +22227,7 @@ edit_hook_hooks.add('tableEditModule', {
|
|
|
22221
22227
|
index: -1,
|
|
22222
22228
|
_index: -1,
|
|
22223
22229
|
$index: -1,
|
|
22230
|
+
treeIndex: -1,
|
|
22224
22231
|
items: parentMapChilds,
|
|
22225
22232
|
parent: parentRow,
|
|
22226
22233
|
level: parentLevel + 1,
|