vxe-table 3.12.1-beta.2 → 3.12.1-beta.3
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/mixin.js +5 -5
- package/es/table/src/body.js +4 -3
- package/es/table/src/methods.js +10 -8
- package/es/table/src/table.js +1 -0
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/lib/index.umd.js +30 -15
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/table/module/edit/mixin.js +10 -5
- package/lib/table/module/edit/mixin.min.js +1 -1
- package/lib/table/src/body.js +4 -2
- package/lib/table/src/body.min.js +1 -1
- package/lib/table/src/methods.js +15 -8
- package/lib/table/src/methods.min.js +1 -1
- package/lib/table/src/table.js +1 -0
- 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/mixin.ts +5 -5
- package/packages/table/src/body.ts +4 -2
- package/packages/table/src/methods.ts +10 -8
- package/packages/table/src/table.ts +2 -0
- /package/es/{iconfont.1735881990049.ttf → iconfont.1735888162273.ttf} +0 -0
- /package/es/{iconfont.1735881990049.woff → iconfont.1735888162273.woff} +0 -0
- /package/es/{iconfont.1735881990049.woff2 → iconfont.1735888162273.woff2} +0 -0
- /package/lib/{iconfont.1735881990049.ttf → iconfont.1735888162273.ttf} +0 -0
- /package/lib/{iconfont.1735881990049.woff → iconfont.1735888162273.woff} +0 -0
- /package/lib/{iconfont.1735881990049.woff2 → iconfont.1735888162273.woff2} +0 -0
package/es/table/src/methods.js
CHANGED
|
@@ -998,7 +998,7 @@ const Methods = {
|
|
|
998
998
|
}
|
|
999
999
|
let cacheItem = fullAllDataRowIdData[rowid];
|
|
1000
1000
|
if (!cacheItem) {
|
|
1001
|
-
cacheItem = { row, rowid, seq, index: -1, _index: -1, $index: -1, items, parent: parentRow, level, height: 0 };
|
|
1001
|
+
cacheItem = { row, rowid, seq, index: -1, _index: -1, $index: -1, items, parent: parentRow, level, height: 0, oTop: 0 };
|
|
1002
1002
|
}
|
|
1003
1003
|
cacheItem.row = row;
|
|
1004
1004
|
cacheItem.items = items;
|
|
@@ -1072,7 +1072,7 @@ const Methods = {
|
|
|
1072
1072
|
XEUtils.eachTree(rows, (childRow, index, items, path, parentItem, nodes) => {
|
|
1073
1073
|
const rowid = getRowid($xeTable, childRow);
|
|
1074
1074
|
const parentRow = parentItem || parentRest.row;
|
|
1075
|
-
const rest = { row: childRow, rowid, seq: -1, index, _index: -1, $index: -1, items, parent: parentRow, level: parentLevel + nodes.length, height: 0 };
|
|
1075
|
+
const rest = { row: childRow, rowid, seq: -1, index, _index: -1, $index: -1, items, parent: parentRow, level: parentLevel + nodes.length, height: 0, oTop: 0 };
|
|
1076
1076
|
fullDataRowIdData[rowid] = rest;
|
|
1077
1077
|
fullAllDataRowIdData[rowid] = rest;
|
|
1078
1078
|
}, { children: childrenField });
|
|
@@ -1936,7 +1936,7 @@ const Methods = {
|
|
|
1936
1936
|
rowRest._index = index;
|
|
1937
1937
|
}
|
|
1938
1938
|
else {
|
|
1939
|
-
const rest = { row, rowid, seq: '-1', index: -1, $index: -1, _index: index, items: [], parent: null, level: 0, height: 0 };
|
|
1939
|
+
const rest = { row, rowid, seq: '-1', index: -1, $index: -1, _index: index, items: [], parent: null, level: 0, height: 0, oTop: 0 };
|
|
1940
1940
|
fullAllDataRowIdData[rowid] = rest;
|
|
1941
1941
|
fullDataRowIdData[rowid] = rest;
|
|
1942
1942
|
}
|
|
@@ -1967,7 +1967,7 @@ const Methods = {
|
|
|
1967
1967
|
rowRest._index = index;
|
|
1968
1968
|
}
|
|
1969
1969
|
else {
|
|
1970
|
-
const rest = { row, rowid, seq, index: -1, $index: -1, _index: index, items: [], parent: null, level: 0, height: 0 };
|
|
1970
|
+
const rest = { row, rowid, seq, index: -1, $index: -1, _index: index, items: [], parent: null, level: 0, height: 0, oTop: 0 };
|
|
1971
1971
|
fullAllDataRowIdData[rowid] = rest;
|
|
1972
1972
|
fullDataRowIdData[rowid] = rest;
|
|
1973
1973
|
}
|
|
@@ -1985,7 +1985,7 @@ const Methods = {
|
|
|
1985
1985
|
rowRest._index = index;
|
|
1986
1986
|
}
|
|
1987
1987
|
else {
|
|
1988
|
-
const rest = { row, rowid, seq, index: -1, $index: -1, _index: index, items: [], parent: null, level: 0, height: 0 };
|
|
1988
|
+
const rest = { row, rowid, seq, index: -1, $index: -1, _index: index, items: [], parent: null, level: 0, height: 0, oTop: 0 };
|
|
1989
1989
|
fullAllDataRowIdData[rowid] = rest;
|
|
1990
1990
|
fullDataRowIdData[rowid] = rest;
|
|
1991
1991
|
}
|
|
@@ -6811,7 +6811,7 @@ const Methods = {
|
|
|
6811
6811
|
$xeTable.loadScrollXData();
|
|
6812
6812
|
}
|
|
6813
6813
|
internalData.lxTimeout = setTimeout(() => {
|
|
6814
|
-
internalData.
|
|
6814
|
+
internalData.lxTimeout = undefined;
|
|
6815
6815
|
internalData.lxRunTime = undefined;
|
|
6816
6816
|
$xeTable.loadScrollXData();
|
|
6817
6817
|
}, fpsTime);
|
|
@@ -7030,8 +7030,9 @@ const Methods = {
|
|
|
7030
7030
|
const $xeTable = this;
|
|
7031
7031
|
const props = $xeTable;
|
|
7032
7032
|
const { showOverflow } = props;
|
|
7033
|
+
$xeTable.handleTableColumn();
|
|
7034
|
+
calcCellHeight($xeTable);
|
|
7033
7035
|
return $xeTable.$nextTick().then(() => {
|
|
7034
|
-
$xeTable.handleTableColumn();
|
|
7035
7036
|
calcCellHeight($xeTable);
|
|
7036
7037
|
$xeTable.updateScrollXSpace();
|
|
7037
7038
|
if (!showOverflow) {
|
|
@@ -7082,8 +7083,9 @@ const Methods = {
|
|
|
7082
7083
|
},
|
|
7083
7084
|
updateScrollYData() {
|
|
7084
7085
|
const $xeTable = this;
|
|
7086
|
+
$xeTable.handleTableData();
|
|
7087
|
+
calcCellHeight($xeTable);
|
|
7085
7088
|
return $xeTable.$nextTick().then(() => {
|
|
7086
|
-
$xeTable.handleTableData();
|
|
7087
7089
|
calcCellHeight($xeTable);
|
|
7088
7090
|
$xeTable.updateScrollYSpace();
|
|
7089
7091
|
});
|
package/es/table/src/table.js
CHANGED
package/es/ui/index.js
CHANGED
package/es/ui/src/log.js
CHANGED
package/lib/index.umd.js
CHANGED
|
@@ -6097,7 +6097,8 @@ const Methods = {
|
|
|
6097
6097
|
items,
|
|
6098
6098
|
parent: parentRow,
|
|
6099
6099
|
level,
|
|
6100
|
-
height: 0
|
|
6100
|
+
height: 0,
|
|
6101
|
+
oTop: 0
|
|
6101
6102
|
};
|
|
6102
6103
|
}
|
|
6103
6104
|
cacheItem.row = row;
|
|
@@ -6200,7 +6201,8 @@ const Methods = {
|
|
|
6200
6201
|
items,
|
|
6201
6202
|
parent: parentRow,
|
|
6202
6203
|
level: parentLevel + nodes.length,
|
|
6203
|
-
height: 0
|
|
6204
|
+
height: 0,
|
|
6205
|
+
oTop: 0
|
|
6204
6206
|
};
|
|
6205
6207
|
fullDataRowIdData[rowid] = rest;
|
|
6206
6208
|
fullAllDataRowIdData[rowid] = rest;
|
|
@@ -7259,7 +7261,8 @@ const Methods = {
|
|
|
7259
7261
|
items: [],
|
|
7260
7262
|
parent: null,
|
|
7261
7263
|
level: 0,
|
|
7262
|
-
height: 0
|
|
7264
|
+
height: 0,
|
|
7265
|
+
oTop: 0
|
|
7263
7266
|
};
|
|
7264
7267
|
fullAllDataRowIdData[rowid] = rest;
|
|
7265
7268
|
fullDataRowIdData[rowid] = rest;
|
|
@@ -7307,7 +7310,8 @@ const Methods = {
|
|
|
7307
7310
|
items: [],
|
|
7308
7311
|
parent: null,
|
|
7309
7312
|
level: 0,
|
|
7310
|
-
height: 0
|
|
7313
|
+
height: 0,
|
|
7314
|
+
oTop: 0
|
|
7311
7315
|
};
|
|
7312
7316
|
fullAllDataRowIdData[rowid] = rest;
|
|
7313
7317
|
fullDataRowIdData[rowid] = rest;
|
|
@@ -7336,7 +7340,8 @@ const Methods = {
|
|
|
7336
7340
|
items: [],
|
|
7337
7341
|
parent: null,
|
|
7338
7342
|
level: 0,
|
|
7339
|
-
height: 0
|
|
7343
|
+
height: 0,
|
|
7344
|
+
oTop: 0
|
|
7340
7345
|
};
|
|
7341
7346
|
fullAllDataRowIdData[rowid] = rest;
|
|
7342
7347
|
fullDataRowIdData[rowid] = rest;
|
|
@@ -13037,7 +13042,7 @@ const Methods = {
|
|
|
13037
13042
|
$xeTable.loadScrollXData();
|
|
13038
13043
|
}
|
|
13039
13044
|
internalData.lxTimeout = setTimeout(() => {
|
|
13040
|
-
internalData.
|
|
13045
|
+
internalData.lxTimeout = undefined;
|
|
13041
13046
|
internalData.lxRunTime = undefined;
|
|
13042
13047
|
$xeTable.loadScrollXData();
|
|
13043
13048
|
}, fpsTime);
|
|
@@ -13307,8 +13312,9 @@ const Methods = {
|
|
|
13307
13312
|
const {
|
|
13308
13313
|
showOverflow
|
|
13309
13314
|
} = props;
|
|
13315
|
+
$xeTable.handleTableColumn();
|
|
13316
|
+
calcCellHeight($xeTable);
|
|
13310
13317
|
return $xeTable.$nextTick().then(() => {
|
|
13311
|
-
$xeTable.handleTableColumn();
|
|
13312
13318
|
calcCellHeight($xeTable);
|
|
13313
13319
|
$xeTable.updateScrollXSpace();
|
|
13314
13320
|
if (!showOverflow) {
|
|
@@ -13372,8 +13378,9 @@ const Methods = {
|
|
|
13372
13378
|
},
|
|
13373
13379
|
updateScrollYData() {
|
|
13374
13380
|
const $xeTable = this;
|
|
13381
|
+
$xeTable.handleTableData();
|
|
13382
|
+
calcCellHeight($xeTable);
|
|
13375
13383
|
return $xeTable.$nextTick().then(() => {
|
|
13376
|
-
$xeTable.handleTableData();
|
|
13377
13384
|
calcCellHeight($xeTable);
|
|
13378
13385
|
$xeTable.updateScrollYSpace();
|
|
13379
13386
|
});
|
|
@@ -13937,6 +13944,7 @@ function renderColumn(h, _vm, $xeTable, seq, rowid, fixedType, rowLevel, row, ro
|
|
|
13937
13944
|
sYOpts,
|
|
13938
13945
|
scrollXLoad,
|
|
13939
13946
|
scrollYLoad,
|
|
13947
|
+
isCalcCellHeight,
|
|
13940
13948
|
highlightCurrentRow,
|
|
13941
13949
|
showOverflow: allColumnOverflow,
|
|
13942
13950
|
isAllOverflow,
|
|
@@ -14200,14 +14208,15 @@ function renderColumn(h, _vm, $xeTable, seq, rowid, fixedType, rowLevel, row, ro
|
|
|
14200
14208
|
}
|
|
14201
14209
|
}
|
|
14202
14210
|
let cellHeight = '';
|
|
14211
|
+
const vnHeight = isCalcCellHeight ? rest.height : 0;
|
|
14203
14212
|
if (hasEllipsis) {
|
|
14204
14213
|
if (scrollYRHeight || rowHeight) {
|
|
14205
14214
|
cellHeight = `${scrollYRHeight || rowHeight}px`;
|
|
14206
14215
|
} else if (!isAllOverflow) {
|
|
14207
|
-
cellHeight = `${
|
|
14216
|
+
cellHeight = `${vnHeight || rowHeight || 18}px`;
|
|
14208
14217
|
}
|
|
14209
14218
|
} else {
|
|
14210
|
-
cellHeight = `${
|
|
14219
|
+
cellHeight = `${vnHeight || rowHeight || 18}px`;
|
|
14211
14220
|
}
|
|
14212
14221
|
if (mouseConfig && mouseOpts.area && selectCellToRow) {
|
|
14213
14222
|
if (!$columnIndex && selectCellToRow === true || selectCellToRow === column.field) {
|
|
@@ -19178,7 +19187,8 @@ function insertTreeRow(_vm, newRecords, isAppend) {
|
|
|
19178
19187
|
items: parentChilds,
|
|
19179
19188
|
parent: parentRow,
|
|
19180
19189
|
level: parentLevel + 1,
|
|
19181
|
-
height: 0
|
|
19190
|
+
height: 0,
|
|
19191
|
+
oTop: 0
|
|
19182
19192
|
};
|
|
19183
19193
|
fullDataRowIdData[rowid] = rest;
|
|
19184
19194
|
fullAllDataRowIdData[rowid] = rest;
|
|
@@ -19200,7 +19210,8 @@ function insertTreeRow(_vm, newRecords, isAppend) {
|
|
|
19200
19210
|
items: tableFullTreeData,
|
|
19201
19211
|
parent: null,
|
|
19202
19212
|
level: 0,
|
|
19203
|
-
height: 0
|
|
19213
|
+
height: 0,
|
|
19214
|
+
oTop: 0
|
|
19204
19215
|
};
|
|
19205
19216
|
fullDataRowIdData[rowid] = rest;
|
|
19206
19217
|
fullAllDataRowIdData[rowid] = rest;
|
|
@@ -19256,7 +19267,8 @@ function handleInsertRowAt($xeTable, records, targetRow, isInsertNextRow) {
|
|
|
19256
19267
|
items: afterFullData,
|
|
19257
19268
|
parent: null,
|
|
19258
19269
|
level: 0,
|
|
19259
|
-
height: 0
|
|
19270
|
+
height: 0,
|
|
19271
|
+
oTop: 0
|
|
19260
19272
|
};
|
|
19261
19273
|
fullDataRowIdData[rowid] = rest;
|
|
19262
19274
|
fullAllDataRowIdData[rowid] = rest;
|
|
@@ -19291,7 +19303,8 @@ function handleInsertRowAt($xeTable, records, targetRow, isInsertNextRow) {
|
|
|
19291
19303
|
items: afterFullData,
|
|
19292
19304
|
parent: null,
|
|
19293
19305
|
level: 0,
|
|
19294
|
-
height: 0
|
|
19306
|
+
height: 0,
|
|
19307
|
+
oTop: 0
|
|
19295
19308
|
};
|
|
19296
19309
|
fullDataRowIdData[rowid] = rest;
|
|
19297
19310
|
fullAllDataRowIdData[rowid] = rest;
|
|
@@ -19349,7 +19362,8 @@ function handleInsertRowAt($xeTable, records, targetRow, isInsertNextRow) {
|
|
|
19349
19362
|
items: parentMapChilds,
|
|
19350
19363
|
parent: parentRow,
|
|
19351
19364
|
level: parentLevel + 1,
|
|
19352
|
-
height: 0
|
|
19365
|
+
height: 0,
|
|
19366
|
+
oTop: 0
|
|
19353
19367
|
};
|
|
19354
19368
|
fullDataRowIdData[rowid] = rest;
|
|
19355
19369
|
fullAllDataRowIdData[rowid] = rest;
|
|
@@ -23879,6 +23893,7 @@ function handleUupdateResize(_vm) {
|
|
|
23879
23893
|
isFooter: false
|
|
23880
23894
|
},
|
|
23881
23895
|
scrollVMLoading: false,
|
|
23896
|
+
isCalcCellHeight: 0,
|
|
23882
23897
|
isCustomStatus: false,
|
|
23883
23898
|
isDragRowMove: false,
|
|
23884
23899
|
dragRow: null,
|