vxe-table 4.11.14 → 4.11.16
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/grid/src/grid.js +1 -2
- package/es/locale/lang/ar-EG.js +1 -0
- package/es/locale/lang/de-DE.js +1 -0
- package/es/locale/lang/en-US.js +3 -2
- package/es/locale/lang/es-ES.js +1 -0
- package/es/locale/lang/fr-FR.js +1 -0
- package/es/locale/lang/hu-HU.js +1 -0
- package/es/locale/lang/hy-AM.js +1 -0
- package/es/locale/lang/id-ID.js +1 -0
- package/es/locale/lang/it-IT.js +1 -0
- package/es/locale/lang/ja-JP.js +1 -0
- package/es/locale/lang/ko-KR.js +1 -0
- package/es/locale/lang/nb-NO.js +1 -0
- package/es/locale/lang/pt-BR.js +1 -0
- package/es/locale/lang/ru-RU.js +1 -0
- package/es/locale/lang/th-TH.js +1 -0
- package/es/locale/lang/ug-CN.js +1 -0
- package/es/locale/lang/uk-UA.js +1 -0
- package/es/locale/lang/vi-VN.js +1 -0
- package/es/locale/lang/zh-CHT.js +1 -0
- package/es/locale/lang/zh-CN.js +1 -0
- package/es/style.css +1 -1
- package/es/table/module/custom/panel.js +18 -16
- package/es/table/module/edit/hook.js +4 -2
- package/es/table/src/body.js +2 -2
- package/es/table/src/cell.js +3 -2
- package/es/table/src/table.js +130 -134
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/lib/grid/src/grid.js +1 -4
- package/lib/grid/src/grid.min.js +1 -1
- package/lib/index.umd.js +164 -163
- package/lib/index.umd.min.js +1 -1
- package/lib/locale/lang/ar-EG.js +1 -0
- package/lib/locale/lang/ar-EG.min.js +1 -1
- package/lib/locale/lang/de-DE.js +1 -0
- package/lib/locale/lang/de-DE.min.js +1 -1
- package/lib/locale/lang/en-US.js +3 -2
- package/lib/locale/lang/en-US.min.js +1 -1
- package/lib/locale/lang/en-US.umd.js +3 -2
- package/lib/locale/lang/es-ES.js +1 -0
- package/lib/locale/lang/es-ES.min.js +1 -1
- package/lib/locale/lang/es-ES.umd.js +1 -0
- package/lib/locale/lang/fr-FR.js +1 -0
- package/lib/locale/lang/fr-FR.min.js +1 -1
- package/lib/locale/lang/hu-HU.js +1 -0
- package/lib/locale/lang/hu-HU.min.js +1 -1
- package/lib/locale/lang/hu-HU.umd.js +1 -0
- package/lib/locale/lang/hy-AM.js +1 -0
- package/lib/locale/lang/hy-AM.min.js +1 -1
- package/lib/locale/lang/id-ID.js +1 -0
- package/lib/locale/lang/id-ID.min.js +1 -1
- package/lib/locale/lang/it-IT.js +1 -0
- package/lib/locale/lang/it-IT.min.js +1 -1
- package/lib/locale/lang/ja-JP.js +1 -0
- package/lib/locale/lang/ja-JP.min.js +1 -1
- package/lib/locale/lang/ja-JP.umd.js +1 -0
- package/lib/locale/lang/ko-KR.js +1 -0
- package/lib/locale/lang/ko-KR.min.js +1 -1
- package/lib/locale/lang/ko-KR.umd.js +1 -0
- package/lib/locale/lang/nb-NO.js +1 -0
- package/lib/locale/lang/nb-NO.min.js +1 -1
- package/lib/locale/lang/pt-BR.js +1 -0
- package/lib/locale/lang/pt-BR.min.js +1 -1
- package/lib/locale/lang/pt-BR.umd.js +1 -0
- package/lib/locale/lang/ru-RU.js +1 -0
- package/lib/locale/lang/ru-RU.min.js +1 -1
- package/lib/locale/lang/ru-RU.umd.js +1 -0
- package/lib/locale/lang/th-TH.js +1 -0
- package/lib/locale/lang/th-TH.min.js +1 -1
- package/lib/locale/lang/ug-CN.js +1 -0
- package/lib/locale/lang/ug-CN.min.js +1 -1
- package/lib/locale/lang/uk-UA.js +1 -0
- package/lib/locale/lang/uk-UA.min.js +1 -1
- package/lib/locale/lang/uk-UA.umd.js +1 -0
- package/lib/locale/lang/vi-VN.js +1 -0
- package/lib/locale/lang/vi-VN.min.js +1 -1
- package/lib/locale/lang/zh-CHT.js +1 -0
- package/lib/locale/lang/zh-CHT.min.js +1 -1
- package/lib/locale/lang/zh-CN.js +1 -0
- package/lib/locale/lang/zh-CN.min.js +1 -1
- package/lib/locale/lang/zh-CN.umd.js +1 -0
- package/lib/style.css +1 -1
- package/lib/table/module/custom/panel.js +18 -16
- package/lib/table/module/custom/panel.min.js +1 -1
- package/lib/table/module/edit/hook.js +4 -2
- package/lib/table/module/edit/hook.min.js +1 -1
- package/lib/table/src/body.js +2 -1
- package/lib/table/src/body.min.js +1 -1
- package/lib/table/src/cell.js +4 -2
- package/lib/table/src/cell.min.js +1 -1
- package/lib/table/src/table.js +132 -136
- 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 +2 -2
- package/packages/grid/src/grid.ts +1 -2
- package/packages/locale/lang/ar-EG.ts +1 -0
- package/packages/locale/lang/de-DE.ts +1 -0
- package/packages/locale/lang/en-US.ts +3 -2
- package/packages/locale/lang/es-ES.ts +1 -0
- package/packages/locale/lang/fr-FR.ts +1 -0
- package/packages/locale/lang/hu-HU.ts +1 -0
- package/packages/locale/lang/hy-AM.ts +1 -0
- package/packages/locale/lang/id-ID.ts +1 -0
- package/packages/locale/lang/it-IT.ts +1 -0
- package/packages/locale/lang/ja-JP.ts +1 -0
- package/packages/locale/lang/ko-KR.ts +1 -0
- package/packages/locale/lang/nb-NO.ts +1 -0
- package/packages/locale/lang/pt-BR.ts +1 -0
- package/packages/locale/lang/ru-RU.ts +1 -0
- package/packages/locale/lang/th-TH.ts +1 -0
- package/packages/locale/lang/ug-CN.ts +1 -0
- package/packages/locale/lang/uk-UA.ts +1 -0
- package/packages/locale/lang/vi-VN.ts +1 -0
- package/packages/locale/lang/zh-CHT.ts +1 -0
- package/packages/locale/lang/zh-CN.ts +1 -0
- package/packages/table/module/custom/panel.ts +18 -16
- package/packages/table/module/edit/hook.ts +4 -2
- package/packages/table/module/keyboard/hook.ts +2 -2
- package/packages/table/src/body.ts +2 -2
- package/packages/table/src/cell.ts +3 -2
- package/packages/table/src/table.ts +130 -134
- /package/es/{iconfont.1740640573077.ttf → iconfont.1741051544689.ttf} +0 -0
- /package/es/{iconfont.1740640573077.woff → iconfont.1741051544689.woff} +0 -0
- /package/es/{iconfont.1740640573077.woff2 → iconfont.1741051544689.woff2} +0 -0
- /package/lib/{iconfont.1740640573077.ttf → iconfont.1741051544689.ttf} +0 -0
- /package/lib/{iconfont.1740640573077.woff → iconfont.1741051544689.woff} +0 -0
- /package/lib/{iconfont.1740640573077.woff2 → iconfont.1741051544689.woff2} +0 -0
package/lib/table/src/table.js
CHANGED
|
@@ -9310,6 +9310,7 @@ var _default = exports.default = (0, _vue.defineComponent)({
|
|
|
9310
9310
|
const dragParams = {
|
|
9311
9311
|
oldRow: dragRow,
|
|
9312
9312
|
newRow: prevDragRow,
|
|
9313
|
+
dragRow,
|
|
9313
9314
|
dragPos: prevDragPos,
|
|
9314
9315
|
dragToChild: !!prevDragToChild,
|
|
9315
9316
|
offsetIndex: dragOffsetIndex
|
|
@@ -9451,6 +9452,7 @@ var _default = exports.default = (0, _vue.defineComponent)({
|
|
|
9451
9452
|
dispatchEvent('row-dragend', {
|
|
9452
9453
|
oldRow: dragRow,
|
|
9453
9454
|
newRow: prevDragRow,
|
|
9455
|
+
dragRow,
|
|
9454
9456
|
dragPos: prevDragPos,
|
|
9455
9457
|
dragToChild: isDragToChildFlag,
|
|
9456
9458
|
offsetIndex: dragOffsetIndex,
|
|
@@ -9634,11 +9636,12 @@ var _default = exports.default = (0, _vue.defineComponent)({
|
|
|
9634
9636
|
if (prevDragCol && dragCol) {
|
|
9635
9637
|
// 判断是否有拖动
|
|
9636
9638
|
if (prevDragCol !== dragCol) {
|
|
9637
|
-
const
|
|
9639
|
+
const dragColumn = dragCol;
|
|
9638
9640
|
const newColumn = prevDragCol;
|
|
9639
9641
|
const dragParams = {
|
|
9640
|
-
oldColumn,
|
|
9642
|
+
oldColumn: dragColumn,
|
|
9641
9643
|
newColumn,
|
|
9644
|
+
dragColumn,
|
|
9642
9645
|
dragPos: prevDragPos,
|
|
9643
9646
|
dragToChild: !!prevDragToChild,
|
|
9644
9647
|
offsetIndex: dragOffsetIndex
|
|
@@ -9651,14 +9654,14 @@ var _default = exports.default = (0, _vue.defineComponent)({
|
|
|
9651
9654
|
let oafIndex = -1;
|
|
9652
9655
|
let nafIndex = -1;
|
|
9653
9656
|
const oldAllMaps = {};
|
|
9654
|
-
_xeUtils.default.eachTree([
|
|
9657
|
+
_xeUtils.default.eachTree([dragColumn], column => {
|
|
9655
9658
|
oldAllMaps[column.id] = column;
|
|
9656
9659
|
});
|
|
9657
9660
|
let isSelfToChildStatus = false;
|
|
9658
|
-
if (
|
|
9661
|
+
if (dragColumn.parentId && newColumn.parentId) {
|
|
9659
9662
|
// 子到子
|
|
9660
9663
|
if (isPeerDrag && !isCrossDrag) {
|
|
9661
|
-
if (
|
|
9664
|
+
if (dragColumn.parentId !== newColumn.parentId) {
|
|
9662
9665
|
// 非同级
|
|
9663
9666
|
return;
|
|
9664
9667
|
}
|
|
@@ -9679,7 +9682,7 @@ var _default = exports.default = (0, _vue.defineComponent)({
|
|
|
9679
9682
|
}
|
|
9680
9683
|
}
|
|
9681
9684
|
}
|
|
9682
|
-
} else if (
|
|
9685
|
+
} else if (dragColumn.parentId) {
|
|
9683
9686
|
// 子到根
|
|
9684
9687
|
if (!isCrossDrag) {
|
|
9685
9688
|
return;
|
|
@@ -9704,7 +9707,7 @@ var _default = exports.default = (0, _vue.defineComponent)({
|
|
|
9704
9707
|
} else {
|
|
9705
9708
|
// 根到根
|
|
9706
9709
|
}
|
|
9707
|
-
const oldewMatchRest = _xeUtils.default.findTree(collectColumn, item => item.id ===
|
|
9710
|
+
const oldewMatchRest = _xeUtils.default.findTree(collectColumn, item => item.id === dragColumn.id);
|
|
9708
9711
|
// 改变层级
|
|
9709
9712
|
if (isSelfToChildStatus && isCrossDrag && isSelfToChildDrag) {
|
|
9710
9713
|
if (oldewMatchRest) {
|
|
@@ -9712,12 +9715,12 @@ var _default = exports.default = (0, _vue.defineComponent)({
|
|
|
9712
9715
|
items: oCols,
|
|
9713
9716
|
index: oIndex
|
|
9714
9717
|
} = oldewMatchRest;
|
|
9715
|
-
const childList =
|
|
9718
|
+
const childList = dragColumn.children || [];
|
|
9716
9719
|
childList.forEach(column => {
|
|
9717
|
-
column.parentId =
|
|
9720
|
+
column.parentId = dragColumn.parentId;
|
|
9718
9721
|
});
|
|
9719
9722
|
oCols.splice(oIndex, 1, ...childList);
|
|
9720
|
-
|
|
9723
|
+
dragColumn.children = [];
|
|
9721
9724
|
}
|
|
9722
9725
|
} else {
|
|
9723
9726
|
if (oldewMatchRest) {
|
|
@@ -9741,11 +9744,11 @@ var _default = exports.default = (0, _vue.defineComponent)({
|
|
|
9741
9744
|
} = newMatchRest;
|
|
9742
9745
|
// 转子级
|
|
9743
9746
|
if (isCrossDrag && isToChildDrag && isDragToChildFlag) {
|
|
9744
|
-
|
|
9745
|
-
newColumn.children = (newColumn.children || []).concat([
|
|
9747
|
+
dragColumn.parentId = newColumn.id;
|
|
9748
|
+
newColumn.children = (newColumn.children || []).concat([dragColumn]);
|
|
9746
9749
|
} else {
|
|
9747
|
-
|
|
9748
|
-
nCols.splice(nIndex + dragOffsetIndex, 0,
|
|
9750
|
+
dragColumn.parentId = newColumn.parentId;
|
|
9751
|
+
nCols.splice(nIndex + dragOffsetIndex, 0, dragColumn);
|
|
9749
9752
|
}
|
|
9750
9753
|
if (!nParent) {
|
|
9751
9754
|
nafIndex = nIndex;
|
|
@@ -9768,8 +9771,9 @@ var _default = exports.default = (0, _vue.defineComponent)({
|
|
|
9768
9771
|
}
|
|
9769
9772
|
}
|
|
9770
9773
|
dispatchEvent('column-dragend', {
|
|
9771
|
-
oldColumn,
|
|
9774
|
+
oldColumn: dragColumn,
|
|
9772
9775
|
newColumn,
|
|
9776
|
+
dragColumn,
|
|
9773
9777
|
dragPos: prevDragPos,
|
|
9774
9778
|
dragToChild: isDragToChildFlag,
|
|
9775
9779
|
offsetIndex: dragOffsetIndex,
|
|
@@ -10226,7 +10230,8 @@ var _default = exports.default = (0, _vue.defineComponent)({
|
|
|
10226
10230
|
const {
|
|
10227
10231
|
target,
|
|
10228
10232
|
deltaY,
|
|
10229
|
-
deltaX
|
|
10233
|
+
deltaX,
|
|
10234
|
+
shiftKey
|
|
10230
10235
|
} = evnt;
|
|
10231
10236
|
if (target && /^textarea$/i.test(target.tagName)) {
|
|
10232
10237
|
return;
|
|
@@ -10267,8 +10272,8 @@ var _default = exports.default = (0, _vue.defineComponent)({
|
|
|
10267
10272
|
return;
|
|
10268
10273
|
}
|
|
10269
10274
|
const wheelSpeed = getWheelSpeed(reactData.lastScrollTime);
|
|
10270
|
-
const deltaTop = Math.ceil(deltaY * wheelSpeed);
|
|
10271
|
-
const deltaLeft = Math.ceil(deltaX * wheelSpeed);
|
|
10275
|
+
const deltaTop = Math.ceil((shiftKey ? deltaX : deltaY) * wheelSpeed);
|
|
10276
|
+
const deltaLeft = Math.ceil((shiftKey ? deltaY : deltaX) * wheelSpeed);
|
|
10272
10277
|
const isTopWheel = deltaTop < 0;
|
|
10273
10278
|
const currScrollTop = bodyScrollElem.scrollTop;
|
|
10274
10279
|
// 如果滚动位置已经是顶部或底部,则不需要触发
|
|
@@ -11458,6 +11463,8 @@ var _default = exports.default = (0, _vue.defineComponent)({
|
|
|
11458
11463
|
(0, _vue.nextTick)(() => {
|
|
11459
11464
|
const {
|
|
11460
11465
|
data,
|
|
11466
|
+
exportConfig,
|
|
11467
|
+
importConfig,
|
|
11461
11468
|
treeConfig,
|
|
11462
11469
|
showOverflow
|
|
11463
11470
|
} = props;
|
|
@@ -11472,132 +11479,121 @@ var _default = exports.default = (0, _vue.defineComponent)({
|
|
|
11472
11479
|
const checkboxOpts = computeCheckboxOpts.value;
|
|
11473
11480
|
const expandOpts = computeExpandOpts.value;
|
|
11474
11481
|
const rowOpts = computeRowOpts.value;
|
|
11475
|
-
|
|
11476
|
-
|
|
11477
|
-
|
|
11478
|
-
|
|
11479
|
-
|
|
11480
|
-
|
|
11481
|
-
}
|
|
11482
|
-
if (props.columnKey) {
|
|
11483
|
-
(0, _log.warnLog)('vxe.error.delProp', ['column-id', 'column-config.useKey']);
|
|
11484
|
-
}
|
|
11485
|
-
if (!(props.rowId || rowOpts.keyField) && (checkboxOpts.reserve || checkboxOpts.checkRowKeys || radioOpts.reserve || radioOpts.checkRowKey || expandOpts.expandRowKeys || treeOpts.expandRowKeys)) {
|
|
11486
|
-
(0, _log.warnLog)('vxe.error.reqProp', ['row-config.keyField']);
|
|
11487
|
-
}
|
|
11488
|
-
if (props.editConfig && (editOpts.showStatus || editOpts.showUpdateStatus || editOpts.showInsertStatus) && !props.keepSource) {
|
|
11489
|
-
(0, _log.warnLog)('vxe.error.reqProp', ['keep-source']);
|
|
11490
|
-
}
|
|
11491
|
-
if (treeConfig && (treeOpts.showLine || treeOpts.line) && (!(props.rowKey || rowOpts.useKey) || !showOverflow)) {
|
|
11492
|
-
(0, _log.warnLog)('vxe.error.reqProp', ['row-config.useKey | show-overflow']);
|
|
11493
|
-
}
|
|
11494
|
-
if (treeConfig && !treeOpts.transform && props.stripe) {
|
|
11495
|
-
(0, _log.warnLog)('vxe.error.noTree', ['stripe']);
|
|
11496
|
-
}
|
|
11497
|
-
if (props.showFooter && !(props.footerMethod || props.footerData)) {
|
|
11498
|
-
(0, _log.warnLog)('vxe.error.reqProp', ['footer-data | footer-method']);
|
|
11499
|
-
}
|
|
11500
|
-
if (rowOpts.height) {
|
|
11501
|
-
(0, _log.warnLog)('vxe.error.delProp', ['row-config.height', 'cell-config.height']);
|
|
11502
|
-
}
|
|
11503
|
-
// if (props.highlightCurrentRow) {
|
|
11504
|
-
// warnLog('vxe.error.delProp', ['highlight-current-row', 'row-config.isCurrent'])
|
|
11505
|
-
// }
|
|
11506
|
-
// if (props.highlightHoverRow) {
|
|
11507
|
-
// warnLog('vxe.error.delProp', ['highlight-hover-row', 'row-config.isHover'])
|
|
11508
|
-
// }
|
|
11509
|
-
// if (props.highlightCurrentColumn) {
|
|
11510
|
-
// warnLog('vxe.error.delProp', ['highlight-current-column', 'column-config.isCurrent'])
|
|
11511
|
-
// }
|
|
11512
|
-
// if (props.highlightHoverColumn) {
|
|
11513
|
-
// warnLog('vxe.error.delProp', ['highlight-hover-column', 'column-config.isHover'])
|
|
11514
|
-
// }
|
|
11515
|
-
// 检查导入导出类型,如果自定义导入导出方法,则不校验类型
|
|
11516
|
-
const {
|
|
11517
|
-
exportConfig,
|
|
11518
|
-
importConfig
|
|
11519
|
-
} = props;
|
|
11520
|
-
const exportOpts = computeExportOpts.value;
|
|
11521
|
-
const importOpts = computeImportOpts.value;
|
|
11522
|
-
if (importConfig && importOpts.types && !importOpts.importMethod && !_xeUtils.default.includeArrays(_xeUtils.default.keys(importOpts._typeMaps), importOpts.types)) {
|
|
11523
|
-
(0, _log.warnLog)('vxe.error.errProp', [`export-config.types=${importOpts.types.join(',')}`, importOpts.types.filter(type => _xeUtils.default.includes(_xeUtils.default.keys(importOpts._typeMaps), type)).join(',') || _xeUtils.default.keys(importOpts._typeMaps).join(',')]);
|
|
11524
|
-
}
|
|
11525
|
-
if (exportConfig && exportOpts.types && !exportOpts.exportMethod && !_xeUtils.default.includeArrays(_xeUtils.default.keys(exportOpts._typeMaps), exportOpts.types)) {
|
|
11526
|
-
(0, _log.warnLog)('vxe.error.errProp', [`export-config.types=${exportOpts.types.join(',')}`, exportOpts.types.filter(type => _xeUtils.default.includes(_xeUtils.default.keys(exportOpts._typeMaps), type)).join(',') || _xeUtils.default.keys(exportOpts._typeMaps).join(',')]);
|
|
11527
|
-
}
|
|
11482
|
+
const customOpts = computeCustomOpts.value;
|
|
11483
|
+
const mouseOpts = computeMouseOpts.value;
|
|
11484
|
+
const exportOpts = computeExportOpts.value;
|
|
11485
|
+
const importOpts = computeImportOpts.value;
|
|
11486
|
+
if (props.rowId) {
|
|
11487
|
+
(0, _log.warnLog)('vxe.error.delProp', ['row-id', 'row-config.keyField']);
|
|
11528
11488
|
}
|
|
11529
|
-
if (
|
|
11530
|
-
|
|
11531
|
-
|
|
11532
|
-
|
|
11533
|
-
|
|
11534
|
-
|
|
11535
|
-
|
|
11536
|
-
|
|
11537
|
-
|
|
11538
|
-
|
|
11539
|
-
|
|
11540
|
-
|
|
11541
|
-
|
|
11542
|
-
|
|
11543
|
-
|
|
11544
|
-
|
|
11545
|
-
|
|
11546
|
-
|
|
11547
|
-
|
|
11548
|
-
|
|
11549
|
-
|
|
11550
|
-
|
|
11551
|
-
|
|
11552
|
-
|
|
11553
|
-
|
|
11554
|
-
|
|
11555
|
-
|
|
11556
|
-
|
|
11557
|
-
|
|
11558
|
-
|
|
11559
|
-
|
|
11560
|
-
|
|
11561
|
-
|
|
11562
|
-
|
|
11563
|
-
|
|
11564
|
-
|
|
11565
|
-
|
|
11566
|
-
|
|
11567
|
-
}
|
|
11568
|
-
|
|
11569
|
-
|
|
11489
|
+
if (props.rowKey) {
|
|
11490
|
+
(0, _log.warnLog)('vxe.error.delProp', ['row-key', 'row-config.useKey']);
|
|
11491
|
+
}
|
|
11492
|
+
if (props.columnKey) {
|
|
11493
|
+
(0, _log.warnLog)('vxe.error.delProp', ['column-id', 'column-config.useKey']);
|
|
11494
|
+
}
|
|
11495
|
+
if (!(props.rowId || rowOpts.keyField) && (checkboxOpts.reserve || checkboxOpts.checkRowKeys || radioOpts.reserve || radioOpts.checkRowKey || expandOpts.expandRowKeys || treeOpts.expandRowKeys)) {
|
|
11496
|
+
(0, _log.warnLog)('vxe.error.reqProp', ['row-config.keyField']);
|
|
11497
|
+
}
|
|
11498
|
+
if (props.editConfig && (editOpts.showStatus || editOpts.showUpdateStatus || editOpts.showInsertStatus) && !props.keepSource) {
|
|
11499
|
+
(0, _log.warnLog)('vxe.error.reqProp', ['keep-source']);
|
|
11500
|
+
}
|
|
11501
|
+
if (treeConfig && (treeOpts.showLine || treeOpts.line) && (!(props.rowKey || rowOpts.useKey) || !showOverflow)) {
|
|
11502
|
+
(0, _log.warnLog)('vxe.error.reqProp', ['row-config.useKey | show-overflow']);
|
|
11503
|
+
}
|
|
11504
|
+
if (treeConfig && !treeOpts.transform && props.stripe) {
|
|
11505
|
+
(0, _log.warnLog)('vxe.error.noTree', ['stripe']);
|
|
11506
|
+
}
|
|
11507
|
+
if (props.showFooter && !(props.footerMethod || props.footerData)) {
|
|
11508
|
+
(0, _log.warnLog)('vxe.error.reqProp', ['footer-data | footer-method']);
|
|
11509
|
+
}
|
|
11510
|
+
if (rowOpts.height) {
|
|
11511
|
+
(0, _log.warnLog)('vxe.error.delProp', ['row-config.height', 'cell-config.height']);
|
|
11512
|
+
}
|
|
11513
|
+
if (props.highlightCurrentRow) {
|
|
11514
|
+
(0, _log.warnLog)('vxe.error.delProp', ['highlight-current-row', 'row-config.isCurrent']);
|
|
11515
|
+
}
|
|
11516
|
+
if (props.highlightHoverRow) {
|
|
11517
|
+
(0, _log.warnLog)('vxe.error.delProp', ['highlight-hover-row', 'row-config.isHover']);
|
|
11518
|
+
}
|
|
11519
|
+
if (props.highlightCurrentColumn) {
|
|
11520
|
+
(0, _log.warnLog)('vxe.error.delProp', ['highlight-current-column', 'column-config.isCurrent']);
|
|
11521
|
+
}
|
|
11522
|
+
if (props.highlightHoverColumn) {
|
|
11523
|
+
(0, _log.warnLog)('vxe.error.delProp', ['highlight-hover-column', 'column-config.isHover']);
|
|
11524
|
+
}
|
|
11525
|
+
// 检查导入导出类型,如果自定义导入导出方法,则不校验类型
|
|
11526
|
+
if (importConfig && importOpts.types && !importOpts.importMethod && !_xeUtils.default.includeArrays(_xeUtils.default.keys(importOpts._typeMaps), importOpts.types)) {
|
|
11527
|
+
(0, _log.warnLog)('vxe.error.errProp', [`export-config.types=${importOpts.types.join(',')}`, importOpts.types.filter(type => _xeUtils.default.includes(_xeUtils.default.keys(importOpts._typeMaps), type)).join(',') || _xeUtils.default.keys(importOpts._typeMaps).join(',')]);
|
|
11528
|
+
}
|
|
11529
|
+
if (exportConfig && exportOpts.types && !exportOpts.exportMethod && !_xeUtils.default.includeArrays(_xeUtils.default.keys(exportOpts._typeMaps), exportOpts.types)) {
|
|
11530
|
+
(0, _log.warnLog)('vxe.error.errProp', [`export-config.types=${exportOpts.types.join(',')}`, exportOpts.types.filter(type => _xeUtils.default.includes(_xeUtils.default.keys(exportOpts._typeMaps), type)).join(',') || _xeUtils.default.keys(exportOpts._typeMaps).join(',')]);
|
|
11531
|
+
}
|
|
11532
|
+
if (!props.id) {
|
|
11533
|
+
if ((props.customConfig ? (0, _utils.isEnableConf)(customOpts) : customOpts.enabled) && customOpts.storage) {
|
|
11534
|
+
(0, _log.errLog)('vxe.error.reqProp', ['id']);
|
|
11570
11535
|
}
|
|
11571
|
-
|
|
11572
|
-
|
|
11573
|
-
|
|
11574
|
-
|
|
11575
|
-
|
|
11536
|
+
}
|
|
11537
|
+
if (props.treeConfig && checkboxOpts.range) {
|
|
11538
|
+
(0, _log.errLog)('vxe.error.noTree', ['checkbox-config.range']);
|
|
11539
|
+
}
|
|
11540
|
+
if (rowOpts.height && !props.showOverflow) {
|
|
11541
|
+
(0, _log.warnLog)('vxe.error.notProp', ['table.show-overflow']);
|
|
11542
|
+
}
|
|
11543
|
+
if (!$xeTable.handleMousedownCellAreaEvent) {
|
|
11544
|
+
if (props.areaConfig) {
|
|
11545
|
+
(0, _log.warnLog)('vxe.error.notProp', ['area-config']);
|
|
11576
11546
|
}
|
|
11577
|
-
if (props.
|
|
11578
|
-
(0, _log.warnLog)('vxe.error.
|
|
11547
|
+
if (props.clipConfig) {
|
|
11548
|
+
(0, _log.warnLog)('vxe.error.notProp', ['clip-config']);
|
|
11579
11549
|
}
|
|
11580
|
-
if (props.
|
|
11581
|
-
(0, _log.
|
|
11550
|
+
if (props.fnrConfig) {
|
|
11551
|
+
(0, _log.warnLog)('vxe.error.notProp', ['fnr-config']);
|
|
11582
11552
|
}
|
|
11583
|
-
if (
|
|
11584
|
-
(0, _log.
|
|
11553
|
+
if (mouseOpts.area) {
|
|
11554
|
+
(0, _log.errLog)('vxe.error.notProp', ['mouse-config.area']);
|
|
11555
|
+
return;
|
|
11585
11556
|
}
|
|
11586
11557
|
}
|
|
11558
|
+
if (treeConfig && rowOpts.drag && !treeOpts.transform) {
|
|
11559
|
+
(0, _log.warnLog)('vxe.error.notSupportProp', ['column-config.drag', 'tree-config.transform=false', 'tree-config.transform=true']);
|
|
11560
|
+
}
|
|
11561
|
+
if (props.dragConfig) {
|
|
11562
|
+
(0, _log.warnLog)('vxe.error.delProp', ['drag-config', 'row-drag-config']);
|
|
11563
|
+
}
|
|
11564
|
+
if (props.treeConfig && treeOpts.children) {
|
|
11565
|
+
(0, _log.warnLog)('vxe.error.delProp', ['tree-config.children', 'tree-config.childrenField']);
|
|
11566
|
+
}
|
|
11567
|
+
if (props.treeConfig && treeOpts.line) {
|
|
11568
|
+
(0, _log.warnLog)('vxe.error.delProp', ['tree-config.line', 'tree-config.showLine']);
|
|
11569
|
+
}
|
|
11570
|
+
if (mouseOpts.area && mouseOpts.selected) {
|
|
11571
|
+
(0, _log.warnLog)('vxe.error.errConflicts', ['mouse-config.area', 'mouse-config.selected']);
|
|
11572
|
+
}
|
|
11573
|
+
if (mouseOpts.area && props.treeConfig && !treeOpts.transform) {
|
|
11574
|
+
(0, _log.errLog)('vxe.error.noTree', ['mouse-config.area']);
|
|
11575
|
+
}
|
|
11576
|
+
if (props.editConfig && editOpts.activeMethod) {
|
|
11577
|
+
(0, _log.warnLog)('vxe.error.delProp', ['edit-config.activeMethod', 'edit-config.beforeEditMethod']);
|
|
11578
|
+
}
|
|
11579
|
+
if (props.treeConfig && checkboxOpts.isShiftKey) {
|
|
11580
|
+
(0, _log.errLog)('vxe.error.errConflicts', ['tree-config', 'checkbox-config.isShiftKey']);
|
|
11581
|
+
}
|
|
11582
|
+
if (checkboxOpts.halfField) {
|
|
11583
|
+
(0, _log.warnLog)('vxe.error.delProp', ['checkbox-config.halfField', 'checkbox-config.indeterminateField']);
|
|
11584
|
+
}
|
|
11587
11585
|
// 检查是否有安装需要的模块
|
|
11588
|
-
if (
|
|
11589
|
-
|
|
11590
|
-
|
|
11591
|
-
|
|
11592
|
-
|
|
11593
|
-
|
|
11594
|
-
|
|
11595
|
-
|
|
11596
|
-
|
|
11597
|
-
|
|
11598
|
-
|
|
11599
|
-
(0, _log.errLog)('vxe.error.reqModule', ['Export']);
|
|
11600
|
-
}
|
|
11586
|
+
if (props.editConfig && !$xeTable.insert) {
|
|
11587
|
+
(0, _log.errLog)('vxe.error.reqModule', ['Edit']);
|
|
11588
|
+
}
|
|
11589
|
+
if (props.editRules && !$xeTable.validate) {
|
|
11590
|
+
(0, _log.errLog)('vxe.error.reqModule', ['Validator']);
|
|
11591
|
+
}
|
|
11592
|
+
if ((checkboxOpts.range || props.keyboardConfig || props.mouseConfig) && !$xeTable.handleCellMousedownEvent) {
|
|
11593
|
+
(0, _log.errLog)('vxe.error.reqModule', ['Keyboard']);
|
|
11594
|
+
}
|
|
11595
|
+
if ((props.printConfig || props.importConfig || props.exportConfig) && !$xeTable.exportData) {
|
|
11596
|
+
(0, _log.errLog)('vxe.error.reqModule', ['Export']);
|
|
11601
11597
|
}
|
|
11602
11598
|
Object.assign(scrollYStore, {
|
|
11603
11599
|
startIndex: 0,
|