vxe-table 3.19.27 → 3.19.28
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/locale/lang/ar-EG.js +16 -11
- package/es/locale/lang/de-DE.js +16 -11
- package/es/locale/lang/en-US.js +19 -14
- package/es/locale/lang/es-ES.js +16 -11
- package/es/locale/lang/fr-FR.js +16 -11
- package/es/locale/lang/hu-HU.js +16 -11
- package/es/locale/lang/hy-AM.js +16 -11
- package/es/locale/lang/id-ID.js +16 -11
- package/es/locale/lang/it-IT.js +16 -11
- package/es/locale/lang/ja-JP.js +16 -11
- package/es/locale/lang/ko-KR.js +16 -11
- package/es/locale/lang/ms-MY.js +16 -11
- package/es/locale/lang/nb-NO.js +16 -11
- package/es/locale/lang/pt-BR.js +16 -11
- package/es/locale/lang/ru-RU.js +16 -11
- package/es/locale/lang/th-TH.js +16 -11
- package/es/locale/lang/ug-CN.js +16 -11
- package/es/locale/lang/uk-UA.js +16 -11
- package/es/locale/lang/uz-UZ.js +16 -11
- package/es/locale/lang/vi-VN.js +16 -11
- package/es/locale/lang/zh-CHT.js +16 -11
- package/es/locale/lang/zh-CN.js +15 -12
- package/es/style.css +1 -1
- package/es/table/src/methods.js +24 -22
- package/es/table/src/table.js +13 -3
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/lib/index.umd.js +48 -33
- package/lib/index.umd.min.js +1 -1
- package/lib/locale/lang/ar-EG.js +16 -11
- package/lib/locale/lang/ar-EG.min.js +1 -1
- package/lib/locale/lang/ar-EG.umd.js +16 -11
- package/lib/locale/lang/de-DE.js +16 -11
- package/lib/locale/lang/de-DE.min.js +1 -1
- package/lib/locale/lang/de-DE.umd.js +16 -11
- package/lib/locale/lang/en-US.js +19 -14
- package/lib/locale/lang/en-US.min.js +1 -1
- package/lib/locale/lang/en-US.umd.js +19 -14
- package/lib/locale/lang/es-ES.js +16 -11
- package/lib/locale/lang/es-ES.min.js +1 -1
- package/lib/locale/lang/es-ES.umd.js +16 -11
- package/lib/locale/lang/fr-FR.js +16 -11
- package/lib/locale/lang/fr-FR.min.js +1 -1
- package/lib/locale/lang/fr-FR.umd.js +16 -11
- package/lib/locale/lang/hu-HU.js +16 -11
- package/lib/locale/lang/hu-HU.min.js +1 -1
- package/lib/locale/lang/hu-HU.umd.js +16 -11
- package/lib/locale/lang/hy-AM.js +16 -11
- package/lib/locale/lang/hy-AM.min.js +1 -1
- package/lib/locale/lang/hy-AM.umd.js +16 -11
- package/lib/locale/lang/id-ID.js +16 -11
- package/lib/locale/lang/id-ID.min.js +1 -1
- package/lib/locale/lang/id-ID.umd.js +16 -11
- package/lib/locale/lang/it-IT.js +16 -11
- package/lib/locale/lang/it-IT.min.js +1 -1
- package/lib/locale/lang/it-IT.umd.js +16 -11
- package/lib/locale/lang/ja-JP.js +16 -11
- package/lib/locale/lang/ja-JP.min.js +1 -1
- package/lib/locale/lang/ja-JP.umd.js +16 -11
- package/lib/locale/lang/ko-KR.js +16 -11
- package/lib/locale/lang/ko-KR.min.js +1 -1
- package/lib/locale/lang/ko-KR.umd.js +16 -11
- package/lib/locale/lang/ms-MY.js +16 -11
- package/lib/locale/lang/ms-MY.min.js +1 -1
- package/lib/locale/lang/ms-MY.umd.js +16 -11
- package/lib/locale/lang/nb-NO.js +16 -11
- package/lib/locale/lang/nb-NO.min.js +1 -1
- package/lib/locale/lang/nb-NO.umd.js +16 -11
- package/lib/locale/lang/pt-BR.js +16 -11
- package/lib/locale/lang/pt-BR.min.js +1 -1
- package/lib/locale/lang/pt-BR.umd.js +16 -11
- package/lib/locale/lang/ru-RU.js +16 -11
- package/lib/locale/lang/ru-RU.min.js +1 -1
- package/lib/locale/lang/ru-RU.umd.js +16 -11
- package/lib/locale/lang/th-TH.js +16 -11
- package/lib/locale/lang/th-TH.min.js +1 -1
- package/lib/locale/lang/th-TH.umd.js +16 -11
- package/lib/locale/lang/ug-CN.js +16 -11
- package/lib/locale/lang/ug-CN.min.js +1 -1
- package/lib/locale/lang/ug-CN.umd.js +16 -11
- package/lib/locale/lang/uk-UA.js +16 -11
- package/lib/locale/lang/uk-UA.min.js +1 -1
- package/lib/locale/lang/uk-UA.umd.js +16 -11
- package/lib/locale/lang/uz-UZ.js +16 -11
- package/lib/locale/lang/uz-UZ.min.js +1 -1
- package/lib/locale/lang/uz-UZ.umd.js +16 -11
- package/lib/locale/lang/vi-VN.js +16 -11
- package/lib/locale/lang/vi-VN.min.js +1 -1
- package/lib/locale/lang/vi-VN.umd.js +16 -11
- package/lib/locale/lang/zh-CHT.js +16 -11
- package/lib/locale/lang/zh-CHT.min.js +1 -1
- package/lib/locale/lang/zh-CHT.umd.js +16 -11
- package/lib/locale/lang/zh-CN.js +15 -12
- package/lib/locale/lang/zh-CN.min.js +1 -1
- package/lib/locale/lang/zh-CN.umd.js +15 -12
- package/lib/style.css +1 -1
- package/lib/table/src/methods.js +26 -22
- package/lib/table/src/methods.min.js +1 -1
- package/lib/table/src/table.js +18 -6
- 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/locale/lang/ar-EG.ts +16 -11
- package/packages/locale/lang/de-DE.ts +16 -11
- package/packages/locale/lang/en-US.ts +19 -14
- package/packages/locale/lang/es-ES.ts +16 -11
- package/packages/locale/lang/fr-FR.ts +16 -11
- package/packages/locale/lang/hu-HU.ts +16 -11
- package/packages/locale/lang/hy-AM.ts +16 -11
- package/packages/locale/lang/id-ID.ts +16 -11
- package/packages/locale/lang/it-IT.ts +16 -11
- package/packages/locale/lang/ja-JP.ts +16 -11
- package/packages/locale/lang/ko-KR.ts +16 -11
- package/packages/locale/lang/ms-MY.ts +16 -11
- package/packages/locale/lang/nb-NO.ts +16 -11
- package/packages/locale/lang/pt-BR.ts +16 -11
- package/packages/locale/lang/ru-RU.ts +16 -11
- package/packages/locale/lang/th-TH.ts +16 -11
- package/packages/locale/lang/ug-CN.ts +16 -11
- package/packages/locale/lang/uk-UA.ts +16 -11
- package/packages/locale/lang/uz-UZ.ts +16 -11
- package/packages/locale/lang/vi-VN.ts +16 -11
- package/packages/locale/lang/zh-CHT.ts +16 -11
- package/packages/locale/lang/zh-CN.ts +15 -12
- package/packages/table/src/cell.ts +3 -3
- package/packages/table/src/methods.ts +24 -23
- package/packages/table/src/table.ts +14 -3
- /package/es/{iconfont.1765156950513.ttf → iconfont.1765353143587.ttf} +0 -0
- /package/es/{iconfont.1765156950513.woff → iconfont.1765353143587.woff} +0 -0
- /package/es/{iconfont.1765156950513.woff2 → iconfont.1765353143587.woff2} +0 -0
- /package/es/{table → ui}/src/anime.js +0 -0
- /package/lib/{iconfont.1765156950513.ttf → iconfont.1765353143587.ttf} +0 -0
- /package/lib/{iconfont.1765156950513.woff → iconfont.1765353143587.woff} +0 -0
- /package/lib/{iconfont.1765156950513.woff2 → iconfont.1765353143587.woff2} +0 -0
- /package/lib/{table → ui}/src/anime.js +0 -0
- /package/lib/{table → ui}/src/anime.min.js +0 -0
- /package/packages/{table → ui}/src/anime.ts +0 -0
package/lib/table/src/methods.js
CHANGED
|
@@ -11,7 +11,7 @@ var _ui = require("../../ui");
|
|
|
11
11
|
var _cell = _interopRequireDefault(require("./cell"));
|
|
12
12
|
var _util = require("./util");
|
|
13
13
|
var _vn = require("../../ui/src/vn");
|
|
14
|
-
var _anime = require("
|
|
14
|
+
var _anime = require("../../ui/src/anime");
|
|
15
15
|
var _log = require("../../ui/src/log");
|
|
16
16
|
var _store = require("./store");
|
|
17
17
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -5934,7 +5934,7 @@ const tableMethods = {
|
|
|
5934
5934
|
cellLabel = formatter(formatParams);
|
|
5935
5935
|
}
|
|
5936
5936
|
} else if (renderOpts && tcFormatter) {
|
|
5937
|
-
cellLabel =
|
|
5937
|
+
cellLabel = tcFormatter(renderOpts, formatParams);
|
|
5938
5938
|
}
|
|
5939
5939
|
if (formatData) {
|
|
5940
5940
|
formatData[colid] = {
|
|
@@ -10242,8 +10242,6 @@ const tableMethods = {
|
|
|
10242
10242
|
const isDragToChildFlag = isSelfToChildDrag && dragToChildMethod ? dragToChildMethod(dragParams) : prevDragToChild;
|
|
10243
10243
|
return Promise.resolve(dEndMethod ? dEndMethod(dragParams) : true).then(status => {
|
|
10244
10244
|
if (!status) {
|
|
10245
|
-
clearRowDragData($xeTable);
|
|
10246
|
-
clearCrossTableDragStatus($xeTable);
|
|
10247
10245
|
return errRest;
|
|
10248
10246
|
}
|
|
10249
10247
|
const dragRowid = (0, _util.getRowid)($xeTable, dragRow);
|
|
@@ -10371,8 +10369,6 @@ const tableMethods = {
|
|
|
10371
10369
|
afterFullData.splice(nafIndex, 0, dragRow);
|
|
10372
10370
|
tableFullData.splice(ntfIndex, 0, dragRow);
|
|
10373
10371
|
}
|
|
10374
|
-
clearRowDragData($xeTable);
|
|
10375
|
-
clearCrossTableDragStatus($xeTable);
|
|
10376
10372
|
$xeTable.handleTableData(treeConfig && transform);
|
|
10377
10373
|
$xeTable.cacheRowMap(false);
|
|
10378
10374
|
updateScrollYStatus($xeTable);
|
|
@@ -10402,6 +10398,9 @@ const tableMethods = {
|
|
|
10402
10398
|
const {
|
|
10403
10399
|
tableData
|
|
10404
10400
|
} = reactData;
|
|
10401
|
+
const {
|
|
10402
|
+
fullAllDataRowIdData
|
|
10403
|
+
} = internalData;
|
|
10405
10404
|
const dragRowRest = fullAllDataRowIdData[dragRowid];
|
|
10406
10405
|
const _newRowIndex = dragRowRest._index;
|
|
10407
10406
|
const firstRow = tableData[0];
|
|
@@ -10476,6 +10475,10 @@ const tableMethods = {
|
|
|
10476
10475
|
});
|
|
10477
10476
|
}).catch(() => {
|
|
10478
10477
|
return errRest;
|
|
10478
|
+
}).then(rest => {
|
|
10479
|
+
clearRowDragData($xeTable);
|
|
10480
|
+
clearCrossTableDragStatus($xeTable);
|
|
10481
|
+
return rest;
|
|
10479
10482
|
});
|
|
10480
10483
|
}
|
|
10481
10484
|
clearRowDragData($xeTable);
|
|
@@ -10857,12 +10860,10 @@ const tableMethods = {
|
|
|
10857
10860
|
const isControlKey = (0, _dom.hasControlKey)(evnt);
|
|
10858
10861
|
const trEl = evnt.currentTarget;
|
|
10859
10862
|
const rowid = trEl.getAttribute('rowid') || '';
|
|
10860
|
-
const
|
|
10861
|
-
if (
|
|
10863
|
+
const rowRest = fullAllDataRowIdData[rowid];
|
|
10864
|
+
if (rowRest) {
|
|
10862
10865
|
evnt.preventDefault();
|
|
10863
|
-
const row =
|
|
10864
|
-
const rowid = (0, _util.getRowid)($xeTable, row);
|
|
10865
|
-
const rowRest = fullAllDataRowIdData[rowid];
|
|
10866
|
+
const row = rowRest.row;
|
|
10866
10867
|
const offsetY = evnt.clientY - trEl.getBoundingClientRect().y;
|
|
10867
10868
|
const dragPos = offsetY < trEl.clientHeight / 2 ? 'top' : 'bottom';
|
|
10868
10869
|
internalData.prevDragToChild = !!(treeConfig && transform && isCrossDrag && isToChildDrag && isControlKey);
|
|
@@ -10896,7 +10897,7 @@ const tableMethods = {
|
|
|
10896
10897
|
}
|
|
10897
10898
|
}
|
|
10898
10899
|
}
|
|
10899
|
-
if ($xeTable.eqRow(dragRow, row) || isControlKey && treeConfig && lazy && row[hasChildField] && rowRest && !rowRest.treeLoaded || !isCrossDrag && treeConfig && transform && (isPeerDrag ? dragRow[parentField] !== row[parentField] :
|
|
10900
|
+
if ($xeTable.eqRow(dragRow, row) || isControlKey && treeConfig && lazy && row[hasChildField] && rowRest && !rowRest.treeLoaded || !isCrossDrag && treeConfig && transform && (isPeerDrag ? dragRow[parentField] !== row[parentField] : rowRest.level)) {
|
|
10900
10901
|
showDropTip($xeTable, evnt, trEl, null, false, dragPos);
|
|
10901
10902
|
return;
|
|
10902
10903
|
}
|
|
@@ -11020,8 +11021,6 @@ const tableMethods = {
|
|
|
11020
11021
|
const isDragToChildFlag = isSelfToChildDrag && dragToChildMethod ? dragToChildMethod(dragParams) : prevDragToChild;
|
|
11021
11022
|
return Promise.resolve(dragEndMethod ? dragEndMethod(dragParams) : true).then(status => {
|
|
11022
11023
|
if (!status) {
|
|
11023
|
-
clearColDragData($xeTable);
|
|
11024
|
-
clearCrossTableDragStatus($xeTable);
|
|
11025
11024
|
return errRest;
|
|
11026
11025
|
}
|
|
11027
11026
|
let dragTargetColumn = null;
|
|
@@ -11166,8 +11165,6 @@ const tableMethods = {
|
|
|
11166
11165
|
$xeTable.clearCopyCellArea();
|
|
11167
11166
|
}
|
|
11168
11167
|
}
|
|
11169
|
-
clearColDragData($xeTable);
|
|
11170
|
-
clearCrossTableDragStatus($xeTable);
|
|
11171
11168
|
if (evnt) {
|
|
11172
11169
|
$xeTable.dispatchEvent('column-dragend', {
|
|
11173
11170
|
oldColumn: dragColumn,
|
|
@@ -11274,6 +11271,10 @@ const tableMethods = {
|
|
|
11274
11271
|
});
|
|
11275
11272
|
}).catch(() => {
|
|
11276
11273
|
return errRest;
|
|
11274
|
+
}).then(rest => {
|
|
11275
|
+
clearColDragData($xeTable);
|
|
11276
|
+
clearCrossTableDragStatus($xeTable);
|
|
11277
|
+
return rest;
|
|
11277
11278
|
});
|
|
11278
11279
|
}
|
|
11279
11280
|
clearColDragData($xeTable);
|
|
@@ -13472,12 +13473,15 @@ const tableMethods = {
|
|
|
13472
13473
|
const lastRow = afterFullData[afterFullData.length - 1];
|
|
13473
13474
|
rowid = (0, _util.getRowid)($xeTable, lastRow);
|
|
13474
13475
|
rowRest = fullAllDataRowIdData[rowid] || {};
|
|
13475
|
-
|
|
13476
|
-
|
|
13477
|
-
|
|
13478
|
-
|
|
13479
|
-
|
|
13480
|
-
|
|
13476
|
+
if (rowRest) {
|
|
13477
|
+
const rHeight = (0, _util.getCellRestHeight)(rowRest, cellOpts, rowOpts, defaultRowHeight);
|
|
13478
|
+
// 如果为空时还没计算完数据,保持原高度不变
|
|
13479
|
+
if (rHeight) {
|
|
13480
|
+
sYHeight = (rowRest.oTop || 0) + rHeight;
|
|
13481
|
+
// 是否展开行
|
|
13482
|
+
if (expandColumn && rowExpandedMaps[rowid]) {
|
|
13483
|
+
sYHeight += rowRest.expandHeight || expandOpts.height || 0;
|
|
13484
|
+
}
|
|
13481
13485
|
}
|
|
13482
13486
|
}
|
|
13483
13487
|
if (sYHeight > maxYHeight) {
|