vxe-table 3.12.1-beta.0 → 3.12.1-beta.1
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/export/mixin.js +1 -1
- package/es/table/src/body.js +9 -6
- package/es/table/src/methods.js +21 -9
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/lib/index.umd.js +31 -18
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/table/module/export/mixin.js +1 -1
- package/lib/table/module/export/mixin.min.js +1 -1
- package/lib/table/src/body.js +7 -5
- package/lib/table/src/body.min.js +1 -1
- package/lib/table/src/methods.js +21 -10
- 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/module/export/mixin.ts +1 -1
- package/packages/table/src/body.ts +7 -5
- package/packages/table/src/methods.ts +22 -10
- /package/es/{iconfont.1735796308780.ttf → iconfont.1735808839640.ttf} +0 -0
- /package/es/{iconfont.1735796308780.woff → iconfont.1735808839640.woff} +0 -0
- /package/es/{iconfont.1735796308780.woff2 → iconfont.1735808839640.woff2} +0 -0
- /package/lib/{iconfont.1735796308780.ttf → iconfont.1735808839640.ttf} +0 -0
- /package/lib/{iconfont.1735796308780.woff → iconfont.1735808839640.woff} +0 -0
- /package/lib/{iconfont.1735796308780.woff2 → iconfont.1735808839640.woff2} +0 -0
package/es/ui/index.js
CHANGED
package/es/ui/src/log.js
CHANGED
package/lib/index.umd.js
CHANGED
|
@@ -2220,7 +2220,7 @@ function getClass(property, params) {
|
|
|
2220
2220
|
;// CONCATENATED MODULE: ./packages/ui/index.ts
|
|
2221
2221
|
|
|
2222
2222
|
|
|
2223
|
-
const version = "3.12.1-beta.
|
|
2223
|
+
const version = "3.12.1-beta.1";
|
|
2224
2224
|
core_.VxeUI.version = version;
|
|
2225
2225
|
core_.VxeUI.tableVersion = version;
|
|
2226
2226
|
core_.VxeUI.setConfig({
|
|
@@ -2814,7 +2814,7 @@ function isNodeElement(elem) {
|
|
|
2814
2814
|
const {
|
|
2815
2815
|
log: log_log
|
|
2816
2816
|
} = core_.VxeUI;
|
|
2817
|
-
const log_version = `table v${"3.12.1-beta.
|
|
2817
|
+
const log_version = `table v${"3.12.1-beta.1"}`;
|
|
2818
2818
|
const warnLog = log_log.create('warn', log_version);
|
|
2819
2819
|
const errLog = log_log.create('error', log_version);
|
|
2820
2820
|
;// CONCATENATED MODULE: ./packages/table/src/columnInfo.ts
|
|
@@ -5291,14 +5291,13 @@ const calcCellHeight = $xeTable => {
|
|
|
5291
5291
|
} = props;
|
|
5292
5292
|
const {
|
|
5293
5293
|
tableData,
|
|
5294
|
-
scrollXLoad
|
|
5295
|
-
scrollYLoad
|
|
5294
|
+
scrollXLoad
|
|
5296
5295
|
} = reactData;
|
|
5297
5296
|
const {
|
|
5298
5297
|
fullAllDataRowIdData
|
|
5299
5298
|
} = internalData;
|
|
5300
5299
|
const el = $xeTable.$refs.refElem;
|
|
5301
|
-
if (!showOverflow &&
|
|
5300
|
+
if (!showOverflow && el) {
|
|
5302
5301
|
let paddingTop = 0;
|
|
5303
5302
|
let paddingBottom = 0;
|
|
5304
5303
|
let calcPadding = false;
|
|
@@ -5567,7 +5566,7 @@ const handleScrollToRowColumn = ($xeTable, fieldOrColumn, row) => {
|
|
|
5567
5566
|
function handleRecalculateLayout($xeTable, reFull) {
|
|
5568
5567
|
const internalData = $xeTable;
|
|
5569
5568
|
const el = $xeTable.$refs.refElem;
|
|
5570
|
-
internalData.
|
|
5569
|
+
internalData.rceRunTime = Date.now();
|
|
5571
5570
|
if (!el || !el.clientWidth) {
|
|
5572
5571
|
return $xeTable.$nextTick();
|
|
5573
5572
|
}
|
|
@@ -5603,10 +5602,14 @@ function checkLastSyncScroll($xeTable, isRollX, isRollY) {
|
|
|
5603
5602
|
internalData.bodyScrollType = '';
|
|
5604
5603
|
internalData.inFooterScroll = false;
|
|
5605
5604
|
if (isRollX && scrollXLoad) {
|
|
5606
|
-
$xeTable.updateScrollXData()
|
|
5605
|
+
$xeTable.updateScrollXData().then(() => {
|
|
5606
|
+
$xeTable.loadScrollXData();
|
|
5607
|
+
});
|
|
5607
5608
|
}
|
|
5608
5609
|
if (isRollY && scrollYLoad) {
|
|
5609
|
-
$xeTable.updateScrollYData()
|
|
5610
|
+
$xeTable.updateScrollYData().then(() => {
|
|
5611
|
+
$xeTable.loadScrollYData();
|
|
5612
|
+
});
|
|
5610
5613
|
}
|
|
5611
5614
|
$xeTable.updateCellAreas();
|
|
5612
5615
|
}, 200);
|
|
@@ -7836,6 +7839,7 @@ const Methods = {
|
|
|
7836
7839
|
saveCustomStore(type) {
|
|
7837
7840
|
const $xeTable = this;
|
|
7838
7841
|
const props = $xeTable;
|
|
7842
|
+
const reactData = $xeTable;
|
|
7839
7843
|
const {
|
|
7840
7844
|
customConfig
|
|
7841
7845
|
} = props;
|
|
@@ -7851,6 +7855,9 @@ const Methods = {
|
|
|
7851
7855
|
const isCustomVisible = isAllCustom || storageOpts.visible;
|
|
7852
7856
|
const isCustomFixed = isAllCustom || storageOpts.fixed;
|
|
7853
7857
|
const isCustomSort = isAllCustom || storageOpts.sort;
|
|
7858
|
+
if (type !== 'reset') {
|
|
7859
|
+
reactData.isCustomStatus = true;
|
|
7860
|
+
}
|
|
7854
7861
|
if ((customConfig ? isEnableConf(customOpts) : customOpts.enabled) && (isCustomResizable || isCustomVisible || isCustomFixed || isCustomSort)) {
|
|
7855
7862
|
if (!tableId) {
|
|
7856
7863
|
errLog('vxe.error.reqProp', ['id']);
|
|
@@ -8141,7 +8148,7 @@ const Methods = {
|
|
|
8141
8148
|
return new Promise(resolve => {
|
|
8142
8149
|
const {
|
|
8143
8150
|
rceTimeout,
|
|
8144
|
-
|
|
8151
|
+
rceRunTime
|
|
8145
8152
|
} = internalData;
|
|
8146
8153
|
const resizeOpts = $xeTable.computeResizeOpts;
|
|
8147
8154
|
const refreshDelay = resizeOpts.refreshDelay || 20;
|
|
@@ -8151,7 +8158,7 @@ const Methods = {
|
|
|
8151
8158
|
}
|
|
8152
8159
|
if (rceTimeout) {
|
|
8153
8160
|
clearTimeout(rceTimeout);
|
|
8154
|
-
if (
|
|
8161
|
+
if (rceRunTime && rceRunTime + (refreshDelay - 5) < Date.now()) {
|
|
8155
8162
|
resolve(handleRecalculateLayout($xeTable, !!reFull));
|
|
8156
8163
|
} else {
|
|
8157
8164
|
$xeTable.$nextTick(() => {
|
|
@@ -13225,7 +13232,9 @@ const Methods = {
|
|
|
13225
13232
|
scrollXStore.offsetSize = offsetXSize;
|
|
13226
13233
|
scrollXStore.visibleSize = visibleXSize;
|
|
13227
13234
|
scrollXStore.endIndex = Math.max(scrollXStore.startIndex + scrollXStore.visibleSize + offsetXSize, scrollXStore.endIndex);
|
|
13228
|
-
$xeTable.updateScrollXData()
|
|
13235
|
+
$xeTable.updateScrollXData().then(() => {
|
|
13236
|
+
$xeTable.loadScrollXData();
|
|
13237
|
+
});
|
|
13229
13238
|
} else {
|
|
13230
13239
|
$xeTable.updateScrollXSpace();
|
|
13231
13240
|
}
|
|
@@ -13242,7 +13251,9 @@ const Methods = {
|
|
|
13242
13251
|
scrollYStore.offsetSize = offsetYSize;
|
|
13243
13252
|
scrollYStore.visibleSize = visibleYSize;
|
|
13244
13253
|
scrollYStore.endIndex = Math.max(scrollYStore.startIndex + visibleYSize + offsetYSize, scrollYStore.endIndex);
|
|
13245
|
-
$xeTable.updateScrollYData()
|
|
13254
|
+
$xeTable.updateScrollYData().then(() => {
|
|
13255
|
+
$xeTable.loadScrollYData();
|
|
13256
|
+
});
|
|
13246
13257
|
} else {
|
|
13247
13258
|
$xeTable.updateScrollYSpace();
|
|
13248
13259
|
}
|
|
@@ -14174,12 +14185,14 @@ function renderColumn(h, _vm, $xeTable, seq, rowid, fixedType, rowLevel, row, ro
|
|
|
14174
14185
|
}
|
|
14175
14186
|
}
|
|
14176
14187
|
let cellHeight = '';
|
|
14177
|
-
if (hasEllipsis
|
|
14178
|
-
|
|
14179
|
-
|
|
14180
|
-
if (!
|
|
14181
|
-
cellHeight = `${rest.height ||
|
|
14188
|
+
if (hasEllipsis) {
|
|
14189
|
+
if (scrollYRHeight || rowHeight) {
|
|
14190
|
+
cellHeight = `${scrollYRHeight || rowHeight}px`;
|
|
14191
|
+
} else if (!isAllOverflow) {
|
|
14192
|
+
cellHeight = `${rest.height || 18}px`;
|
|
14182
14193
|
}
|
|
14194
|
+
} else {
|
|
14195
|
+
cellHeight = `${rest.height || 18}px`;
|
|
14183
14196
|
}
|
|
14184
14197
|
if (mouseConfig && mouseOpts.area && selectCellToRow) {
|
|
14185
14198
|
if (!$columnIndex && selectCellToRow === true || selectCellToRow === column.field) {
|
|
@@ -21848,7 +21861,7 @@ const convertToRows = originColumns => {
|
|
|
21848
21861
|
handleOptions.data = afterFullData;
|
|
21849
21862
|
}
|
|
21850
21863
|
}
|
|
21851
|
-
return handleExport($xeTable,
|
|
21864
|
+
return handleExport($xeTable, handleOptions);
|
|
21852
21865
|
},
|
|
21853
21866
|
_importByFile(file, options) {
|
|
21854
21867
|
const opts = Object.assign({}, options);
|