vxe-table 3.13.14 → 3.13.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/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/mixin.js +4 -2
- package/es/table/src/cell.js +2 -1
- package/es/table/src/column.js +2 -2
- package/es/table/src/group.js +2 -2
- package/es/table/src/methods.js +22 -18
- package/es/table/src/table.js +151 -147
- package/es/toolbar/src/toolbar.js +2 -2
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/lib/index.umd.js +216 -207
- 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-CHT.umd.js +1 -0
- 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/mixin.js +4 -2
- package/lib/table/module/edit/mixin.min.js +1 -1
- package/lib/table/src/cell.js +2 -1
- package/lib/table/src/cell.min.js +1 -1
- package/lib/table/src/column.js +3 -2
- package/lib/table/src/group.js +3 -2
- package/lib/table/src/methods.js +23 -18
- package/lib/table/src/methods.min.js +1 -1
- package/lib/table/src/table.js +160 -162
- package/lib/table/src/table.min.js +1 -1
- package/lib/toolbar/src/toolbar.js +3 -2
- 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/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 +22 -20
- package/packages/table/module/edit/mixin.ts +4 -2
- package/packages/table/src/cell.ts +2 -1
- package/packages/table/src/column.ts +2 -2
- package/packages/table/src/group.ts +2 -2
- package/packages/table/src/methods.ts +22 -18
- package/packages/table/src/table.ts +152 -147
- package/packages/toolbar/src/toolbar.ts +2 -2
- /package/es/{iconfont.1740640529071.ttf → iconfont.1740799948632.ttf} +0 -0
- /package/es/{iconfont.1740640529071.woff → iconfont.1740799948632.woff} +0 -0
- /package/es/{iconfont.1740640529071.woff2 → iconfont.1740799948632.woff2} +0 -0
- /package/lib/{iconfont.1740640529071.ttf → iconfont.1740799948632.ttf} +0 -0
- /package/lib/{iconfont.1740640529071.woff → iconfont.1740799948632.woff} +0 -0
- /package/lib/{iconfont.1740640529071.woff2 → iconfont.1740799948632.woff2} +0 -0
package/lib/index.umd.js
CHANGED
|
@@ -3201,7 +3201,7 @@ function getClass(property, params) {
|
|
|
3201
3201
|
;// ./packages/ui/index.ts
|
|
3202
3202
|
|
|
3203
3203
|
|
|
3204
|
-
const version = "3.13.
|
|
3204
|
+
const version = "3.13.16";
|
|
3205
3205
|
core_.VxeUI.version = version;
|
|
3206
3206
|
core_.VxeUI.tableVersion = version;
|
|
3207
3207
|
core_.VxeUI.setConfig({
|
|
@@ -3828,7 +3828,7 @@ var es_iterator_map = __webpack_require__(1701);
|
|
|
3828
3828
|
const {
|
|
3829
3829
|
log: log_log
|
|
3830
3830
|
} = core_.VxeUI;
|
|
3831
|
-
const log_version = `table v${"3.13.
|
|
3831
|
+
const log_version = `table v${"3.13.16"}`;
|
|
3832
3832
|
const warnLog = log_log.create('warn', log_version);
|
|
3833
3833
|
const errLog = log_log.create('error', log_version);
|
|
3834
3834
|
;// ./packages/table/src/columnInfo.ts
|
|
@@ -4692,6 +4692,7 @@ function renderCellBaseVNs(h, params, content) {
|
|
|
4692
4692
|
} = tableProps;
|
|
4693
4693
|
const rowOpts = $table.computeRowOpts;
|
|
4694
4694
|
const rowDragOpts = $table.computeRowDragOpts;
|
|
4695
|
+
const treeOpts = $table.computeTreeOpts;
|
|
4695
4696
|
const {
|
|
4696
4697
|
showIcon,
|
|
4697
4698
|
isPeerDrag,
|
|
@@ -4702,7 +4703,7 @@ function renderCellBaseVNs(h, params, content) {
|
|
|
4702
4703
|
const vns = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(content) ? content : [content];
|
|
4703
4704
|
if (dragSort && rowOpts.drag && (showIcon || (dragConfig ? dragConfig.showRowIcon : false)) && (!rVisibleMethod || rVisibleMethod(params))) {
|
|
4704
4705
|
if (treeConfig) {
|
|
4705
|
-
if (isPeerDrag || isCrossDrag || !level) {
|
|
4706
|
+
if (treeOpts.transform && (isPeerDrag || isCrossDrag || !level)) {
|
|
4706
4707
|
vns.unshift(renderCellDragIcon(h, params));
|
|
4707
4708
|
}
|
|
4708
4709
|
} else {
|
|
@@ -5949,7 +5950,7 @@ Object.keys(columnProps).forEach(name => {
|
|
|
5949
5950
|
}
|
|
5950
5951
|
};
|
|
5951
5952
|
});
|
|
5952
|
-
/* harmony default export */ var column = (defineVxeComponent({
|
|
5953
|
+
/* harmony default export */ var column = (/* define-vxe-component start */defineVxeComponent({
|
|
5953
5954
|
name: 'VxeColumn',
|
|
5954
5955
|
props: columnProps,
|
|
5955
5956
|
provide() {
|
|
@@ -5981,7 +5982,7 @@ Object.keys(columnProps).forEach(name => {
|
|
|
5981
5982
|
return h('div', this.$slots.default);
|
|
5982
5983
|
},
|
|
5983
5984
|
methods: cell
|
|
5984
|
-
}));
|
|
5985
|
+
})); /* define-vxe-component end */
|
|
5985
5986
|
;// ./packages/column/index.ts
|
|
5986
5987
|
|
|
5987
5988
|
|
|
@@ -6005,7 +6006,7 @@ const Column = VxeColumn;
|
|
|
6005
6006
|
|
|
6006
6007
|
|
|
6007
6008
|
|
|
6008
|
-
/* harmony default export */ var group = (defineVxeComponent({
|
|
6009
|
+
/* harmony default export */ var group = (/* define-vxe-component start */defineVxeComponent({
|
|
6009
6010
|
name: 'VxeColgroup',
|
|
6010
6011
|
props: columnProps,
|
|
6011
6012
|
provide() {
|
|
@@ -6044,7 +6045,7 @@ const Column = VxeColumn;
|
|
|
6044
6045
|
return h('div', this.$slots.default);
|
|
6045
6046
|
},
|
|
6046
6047
|
methods: cell
|
|
6047
|
-
}));
|
|
6048
|
+
})); /* define-vxe-component end */
|
|
6048
6049
|
;// ./packages/colgroup/index.ts
|
|
6049
6050
|
|
|
6050
6051
|
|
|
@@ -13556,6 +13557,7 @@ const Methods = {
|
|
|
13556
13557
|
const dragParams = {
|
|
13557
13558
|
oldRow: dragRow,
|
|
13558
13559
|
newRow: prevDragRow,
|
|
13560
|
+
dragRow,
|
|
13559
13561
|
dragPos: prevDragPos,
|
|
13560
13562
|
dragToChild: !!prevDragToChild,
|
|
13561
13563
|
offsetIndex: dragOffsetIndex
|
|
@@ -13697,6 +13699,7 @@ const Methods = {
|
|
|
13697
13699
|
$xeTable.dispatchEvent('row-dragend', {
|
|
13698
13700
|
oldRow: dragRow,
|
|
13699
13701
|
newRow: prevDragRow,
|
|
13702
|
+
dragRow,
|
|
13700
13703
|
dragPos: prevDragPos,
|
|
13701
13704
|
dragToChild: isDragToChildFlag,
|
|
13702
13705
|
offsetIndex: dragOffsetIndex,
|
|
@@ -13897,11 +13900,12 @@ const Methods = {
|
|
|
13897
13900
|
if (prevDragCol && dragCol) {
|
|
13898
13901
|
// 判断是否有拖动
|
|
13899
13902
|
if (prevDragCol !== dragCol) {
|
|
13900
|
-
const
|
|
13903
|
+
const dragColumn = dragCol;
|
|
13901
13904
|
const newColumn = prevDragCol;
|
|
13902
13905
|
const dragParams = {
|
|
13903
|
-
oldColumn,
|
|
13906
|
+
oldColumn: dragColumn,
|
|
13904
13907
|
newColumn,
|
|
13908
|
+
dragColumn,
|
|
13905
13909
|
dragPos: prevDragPos,
|
|
13906
13910
|
dragToChild: !!prevDragToChild,
|
|
13907
13911
|
offsetIndex: dragOffsetIndex
|
|
@@ -13914,14 +13918,14 @@ const Methods = {
|
|
|
13914
13918
|
let oafIndex = -1;
|
|
13915
13919
|
let nafIndex = -1;
|
|
13916
13920
|
const oldAllMaps = {};
|
|
13917
|
-
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree([
|
|
13921
|
+
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree([dragColumn], column => {
|
|
13918
13922
|
oldAllMaps[column.id] = column;
|
|
13919
13923
|
});
|
|
13920
13924
|
let isSelfToChildStatus = false;
|
|
13921
|
-
if (
|
|
13925
|
+
if (dragColumn.parentId && newColumn.parentId) {
|
|
13922
13926
|
// 子到子
|
|
13923
13927
|
if (isPeerDrag && !isCrossDrag) {
|
|
13924
|
-
if (
|
|
13928
|
+
if (dragColumn.parentId !== newColumn.parentId) {
|
|
13925
13929
|
// 非同级
|
|
13926
13930
|
return;
|
|
13927
13931
|
}
|
|
@@ -13942,7 +13946,7 @@ const Methods = {
|
|
|
13942
13946
|
}
|
|
13943
13947
|
}
|
|
13944
13948
|
}
|
|
13945
|
-
} else if (
|
|
13949
|
+
} else if (dragColumn.parentId) {
|
|
13946
13950
|
// 子到根
|
|
13947
13951
|
if (!isCrossDrag) {
|
|
13948
13952
|
return;
|
|
@@ -13967,7 +13971,7 @@ const Methods = {
|
|
|
13967
13971
|
} else {
|
|
13968
13972
|
// 根到根
|
|
13969
13973
|
}
|
|
13970
|
-
const oldewMatchRest = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().findTree(collectColumn, item => item.id ===
|
|
13974
|
+
const oldewMatchRest = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().findTree(collectColumn, item => item.id === dragColumn.id);
|
|
13971
13975
|
// 改变层级
|
|
13972
13976
|
if (isSelfToChildStatus && isCrossDrag && isSelfToChildDrag) {
|
|
13973
13977
|
if (oldewMatchRest) {
|
|
@@ -13975,12 +13979,12 @@ const Methods = {
|
|
|
13975
13979
|
items: oCols,
|
|
13976
13980
|
index: oIndex
|
|
13977
13981
|
} = oldewMatchRest;
|
|
13978
|
-
const childList =
|
|
13982
|
+
const childList = dragColumn.children || [];
|
|
13979
13983
|
childList.forEach(column => {
|
|
13980
|
-
column.parentId =
|
|
13984
|
+
column.parentId = dragColumn.parentId;
|
|
13981
13985
|
});
|
|
13982
13986
|
oCols.splice(oIndex, 1, ...childList);
|
|
13983
|
-
|
|
13987
|
+
dragColumn.children = [];
|
|
13984
13988
|
}
|
|
13985
13989
|
} else {
|
|
13986
13990
|
if (oldewMatchRest) {
|
|
@@ -14004,11 +14008,11 @@ const Methods = {
|
|
|
14004
14008
|
} = newMatchRest;
|
|
14005
14009
|
// 转子级
|
|
14006
14010
|
if (isCrossDrag && isToChildDrag && isDragToChildFlag) {
|
|
14007
|
-
|
|
14008
|
-
newColumn.children = (newColumn.children || []).concat([
|
|
14011
|
+
dragColumn.parentId = newColumn.id;
|
|
14012
|
+
newColumn.children = (newColumn.children || []).concat([dragColumn]);
|
|
14009
14013
|
} else {
|
|
14010
|
-
|
|
14011
|
-
nCols.splice(nIndex + dragOffsetIndex, 0,
|
|
14014
|
+
dragColumn.parentId = newColumn.parentId;
|
|
14015
|
+
nCols.splice(nIndex + dragOffsetIndex, 0, dragColumn);
|
|
14012
14016
|
}
|
|
14013
14017
|
if (!nParent) {
|
|
14014
14018
|
nafIndex = nIndex;
|
|
@@ -14031,8 +14035,9 @@ const Methods = {
|
|
|
14031
14035
|
}
|
|
14032
14036
|
}
|
|
14033
14037
|
$xeTable.dispatchEvent('column-dragend', {
|
|
14034
|
-
oldColumn,
|
|
14038
|
+
oldColumn: dragColumn,
|
|
14035
14039
|
newColumn,
|
|
14040
|
+
dragColumn,
|
|
14036
14041
|
dragPos: prevDragPos,
|
|
14037
14042
|
dragToChild: isDragToChildFlag,
|
|
14038
14043
|
offsetIndex: dragOffsetIndex,
|
|
@@ -15668,7 +15673,8 @@ const Methods = {
|
|
|
15668
15673
|
const {
|
|
15669
15674
|
target,
|
|
15670
15675
|
deltaY,
|
|
15671
|
-
deltaX
|
|
15676
|
+
deltaX,
|
|
15677
|
+
shiftKey
|
|
15672
15678
|
} = evnt;
|
|
15673
15679
|
if (target && /^textarea$/i.test(target.tagName)) {
|
|
15674
15680
|
return;
|
|
@@ -15709,8 +15715,8 @@ const Methods = {
|
|
|
15709
15715
|
return;
|
|
15710
15716
|
}
|
|
15711
15717
|
const wheelSpeed = getWheelSpeed(reactData.lastScrollTime);
|
|
15712
|
-
const deltaTop = Math.ceil(deltaY * wheelSpeed);
|
|
15713
|
-
const deltaLeft = Math.ceil(deltaX * wheelSpeed);
|
|
15718
|
+
const deltaTop = Math.ceil((shiftKey ? deltaX : deltaY) * wheelSpeed);
|
|
15719
|
+
const deltaLeft = Math.ceil((shiftKey ? deltaY : deltaX) * wheelSpeed);
|
|
15714
15720
|
const isTopWheel = deltaTop < 0;
|
|
15715
15721
|
const currScrollTop = bodyScrollElem.scrollTop;
|
|
15716
15722
|
// 如果滚动位置已经是顶部或底部,则不需要触发
|
|
@@ -19571,11 +19577,12 @@ const renderPopupPanel = (h, _vm) => {
|
|
|
19571
19577
|
if (prevDragCol && dragCol) {
|
|
19572
19578
|
// 判断是否有拖动
|
|
19573
19579
|
if (prevDragCol !== dragCol) {
|
|
19574
|
-
const
|
|
19580
|
+
const dragColumn = dragCol;
|
|
19575
19581
|
const newColumn = prevDragCol;
|
|
19576
19582
|
Promise.resolve(dragEndMethod ? dragEndMethod({
|
|
19577
|
-
oldColumn,
|
|
19583
|
+
oldColumn: dragColumn,
|
|
19578
19584
|
newColumn,
|
|
19585
|
+
dragColumn,
|
|
19579
19586
|
dragPos: prevDragPos,
|
|
19580
19587
|
dragToChild: !!prevDragToChild,
|
|
19581
19588
|
offsetIndex: dragOffsetIndex
|
|
@@ -19586,13 +19593,13 @@ const renderPopupPanel = (h, _vm) => {
|
|
|
19586
19593
|
let oafIndex = -1;
|
|
19587
19594
|
let nafIndex = -1;
|
|
19588
19595
|
const oldAllMaps = {};
|
|
19589
|
-
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree([
|
|
19596
|
+
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree([dragColumn], column => {
|
|
19590
19597
|
oldAllMaps[column.id] = column;
|
|
19591
19598
|
});
|
|
19592
19599
|
let isSelfToChildStatus = false;
|
|
19593
19600
|
// 只有实时拖拽支持跨层级
|
|
19594
19601
|
if (immediate) {
|
|
19595
|
-
if (
|
|
19602
|
+
if (dragColumn.parentId && newColumn.parentId) {
|
|
19596
19603
|
// 子到子
|
|
19597
19604
|
if (!isCrossDrag) {
|
|
19598
19605
|
return;
|
|
@@ -19609,7 +19616,7 @@ const renderPopupPanel = (h, _vm) => {
|
|
|
19609
19616
|
return;
|
|
19610
19617
|
}
|
|
19611
19618
|
}
|
|
19612
|
-
} else if (
|
|
19619
|
+
} else if (dragColumn.parentId) {
|
|
19613
19620
|
// 子到根
|
|
19614
19621
|
if (!isCrossDrag) {
|
|
19615
19622
|
return;
|
|
@@ -19634,7 +19641,7 @@ const renderPopupPanel = (h, _vm) => {
|
|
|
19634
19641
|
} else {
|
|
19635
19642
|
// 根到根
|
|
19636
19643
|
}
|
|
19637
|
-
const oldewMatchRest = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().findTree(collectColumn, item => item.id ===
|
|
19644
|
+
const oldewMatchRest = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().findTree(collectColumn, item => item.id === dragColumn.id);
|
|
19638
19645
|
// 改变层级
|
|
19639
19646
|
if (isSelfToChildStatus && isCrossDrag && isSelfToChildDrag) {
|
|
19640
19647
|
if (oldewMatchRest) {
|
|
@@ -19642,12 +19649,12 @@ const renderPopupPanel = (h, _vm) => {
|
|
|
19642
19649
|
items: oCols,
|
|
19643
19650
|
index: oIndex
|
|
19644
19651
|
} = oldewMatchRest;
|
|
19645
|
-
const childList =
|
|
19652
|
+
const childList = dragColumn.children || [];
|
|
19646
19653
|
childList.forEach(column => {
|
|
19647
|
-
column.parentId =
|
|
19654
|
+
column.parentId = dragColumn.parentId;
|
|
19648
19655
|
});
|
|
19649
19656
|
oCols.splice(oIndex, 1, ...childList);
|
|
19650
|
-
|
|
19657
|
+
dragColumn.children = [];
|
|
19651
19658
|
}
|
|
19652
19659
|
} else {
|
|
19653
19660
|
if (oldewMatchRest) {
|
|
@@ -19671,11 +19678,11 @@ const renderPopupPanel = (h, _vm) => {
|
|
|
19671
19678
|
} = newMatchRest;
|
|
19672
19679
|
// 转子级
|
|
19673
19680
|
if (isCrossDrag && isToChildDrag && prevDragToChild) {
|
|
19674
|
-
|
|
19675
|
-
newColumn.children = (newColumn.children || []).concat([
|
|
19681
|
+
dragColumn.parentId = newColumn.id;
|
|
19682
|
+
newColumn.children = (newColumn.children || []).concat([dragColumn]);
|
|
19676
19683
|
} else {
|
|
19677
|
-
|
|
19678
|
-
nCols.splice(nIndex + dragOffsetIndex, 0,
|
|
19684
|
+
dragColumn.parentId = newColumn.parentId;
|
|
19685
|
+
nCols.splice(nIndex + dragOffsetIndex, 0, dragColumn);
|
|
19679
19686
|
}
|
|
19680
19687
|
if (!nParent) {
|
|
19681
19688
|
nafIndex = nIndex;
|
|
@@ -19688,10 +19695,10 @@ const renderPopupPanel = (h, _vm) => {
|
|
|
19688
19695
|
}
|
|
19689
19696
|
});
|
|
19690
19697
|
} else {
|
|
19691
|
-
oafIndex = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().findIndexOf(customColumnList, item => item.id ===
|
|
19698
|
+
oafIndex = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().findIndexOf(customColumnList, item => item.id === dragColumn.id);
|
|
19692
19699
|
customColumnList.splice(oafIndex, 1);
|
|
19693
19700
|
nafIndex = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().findIndexOf(customColumnList, item => item.id === newColumn.id);
|
|
19694
|
-
customColumnList.splice(nafIndex + dragOffsetIndex, 0,
|
|
19701
|
+
customColumnList.splice(nafIndex + dragOffsetIndex, 0, dragColumn);
|
|
19695
19702
|
}
|
|
19696
19703
|
reactData.isDragColMove = true;
|
|
19697
19704
|
if (mouseConfig) {
|
|
@@ -19704,8 +19711,9 @@ const renderPopupPanel = (h, _vm) => {
|
|
|
19704
19711
|
}
|
|
19705
19712
|
}
|
|
19706
19713
|
$xeTable.dispatchEvent('column-dragend', {
|
|
19707
|
-
oldColumn,
|
|
19714
|
+
oldColumn: dragColumn,
|
|
19708
19715
|
newColumn,
|
|
19716
|
+
dragColumn,
|
|
19709
19717
|
dragPos: prevDragPos,
|
|
19710
19718
|
offsetIndex: dragOffsetIndex,
|
|
19711
19719
|
_index: {
|
|
@@ -22026,7 +22034,7 @@ function handleInsertChildRowAt($xeTable, records, parentRow, targetRow, isInser
|
|
|
22026
22034
|
[parentField]: parentRow[rowField]
|
|
22027
22035
|
})), targetRow, isInsertNextRow);
|
|
22028
22036
|
} else {
|
|
22029
|
-
errLog('vxe.error.errProp', ['tree-config.
|
|
22037
|
+
errLog('vxe.error.errProp', ['tree-config.transform=false', 'tree-config.transform=true']);
|
|
22030
22038
|
}
|
|
22031
22039
|
return Promise.resolve({
|
|
22032
22040
|
row: null,
|
|
@@ -22705,7 +22713,9 @@ function handleEditCell($xeTable, row, fieldOrColumn, isPos) {
|
|
|
22705
22713
|
let isPos = false;
|
|
22706
22714
|
if (fieldOrColumn) {
|
|
22707
22715
|
isPos = true;
|
|
22708
|
-
|
|
22716
|
+
if (fieldOrColumn !== true) {
|
|
22717
|
+
column = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isString(fieldOrColumn) ? this.getColumnByField(fieldOrColumn) : fieldOrColumn;
|
|
22718
|
+
}
|
|
22709
22719
|
}
|
|
22710
22720
|
return handleEditCell($xeTable, row, column, isPos);
|
|
22711
22721
|
},
|
|
@@ -27507,17 +27517,9 @@ function renderBody(h, $xeTable) {
|
|
|
27507
27517
|
},
|
|
27508
27518
|
created() {
|
|
27509
27519
|
const $xeTable = this;
|
|
27510
|
-
const
|
|
27511
|
-
|
|
27512
|
-
|
|
27513
|
-
scrollYStore,
|
|
27514
|
-
data,
|
|
27515
|
-
editOpts,
|
|
27516
|
-
treeOpts,
|
|
27517
|
-
treeConfig,
|
|
27518
|
-
showOverflow,
|
|
27519
|
-
rowOpts
|
|
27520
|
-
} = Object.assign(this, {
|
|
27520
|
+
const props = $xeTable;
|
|
27521
|
+
const internalData = $xeTable;
|
|
27522
|
+
Object.assign($xeTable, {
|
|
27521
27523
|
tZindex: 0,
|
|
27522
27524
|
elemStore: {},
|
|
27523
27525
|
// 存放横向 X 虚拟滚动相关的信息
|
|
@@ -27583,167 +27585,173 @@ function renderBody(h, $xeTable) {
|
|
|
27583
27585
|
swYInterval: 0,
|
|
27584
27586
|
swYTotal: 0
|
|
27585
27587
|
});
|
|
27586
|
-
|
|
27587
|
-
|
|
27588
|
-
|
|
27589
|
-
|
|
27590
|
-
|
|
27591
|
-
|
|
27592
|
-
|
|
27593
|
-
|
|
27594
|
-
|
|
27595
|
-
|
|
27596
|
-
|
|
27597
|
-
|
|
27598
|
-
|
|
27599
|
-
|
|
27600
|
-
|
|
27601
|
-
|
|
27602
|
-
|
|
27603
|
-
|
|
27604
|
-
|
|
27605
|
-
|
|
27606
|
-
|
|
27607
|
-
|
|
27608
|
-
|
|
27609
|
-
|
|
27610
|
-
}
|
|
27611
|
-
if (rowOpts.height) {
|
|
27612
|
-
warnLog('vxe.error.delProp', ['row-config.height', 'cell-config.height']);
|
|
27613
|
-
}
|
|
27614
|
-
if (this.tooltipOpts.enabled) {
|
|
27615
|
-
warnLog('vxe.error.delProp', ['tooltip-config.enabled', 'tooltip-config.showAll']);
|
|
27616
|
-
}
|
|
27617
|
-
// if (this.highlightCurrentRow) {
|
|
27618
|
-
// warnLog('vxe.error.delProp', ['highlight-current-row', 'row-config.isCurrent'])
|
|
27619
|
-
// }
|
|
27620
|
-
// if (this.highlightHoverRow) {
|
|
27621
|
-
// warnLog('vxe.error.delProp', ['highlight-hover-row', 'row-config.isHover'])
|
|
27622
|
-
// }
|
|
27623
|
-
// if (this.highlightCurrentColumn) {
|
|
27624
|
-
// warnLog('vxe.error.delProp', ['highlight-current-column', 'column-config.isCurrent'])
|
|
27625
|
-
// }
|
|
27626
|
-
// if (this.highlightHoverColumn) {
|
|
27627
|
-
// warnLog('vxe.error.delProp', ['highlight-hover-column', 'column-config.isHover'])
|
|
27628
|
-
// }
|
|
27629
|
-
// 检查导入导出类型,如果自定义导入导出方法,则不校验类型
|
|
27630
|
-
const {
|
|
27631
|
-
exportConfig,
|
|
27632
|
-
exportOpts,
|
|
27633
|
-
importConfig,
|
|
27634
|
-
importOpts
|
|
27635
|
-
} = this;
|
|
27636
|
-
if (importConfig && importOpts.types && !importOpts.importMethod && !external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().includeArrays(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().keys(importOpts._typeMaps), importOpts.types)) {
|
|
27637
|
-
warnLog('vxe.error.errProp', [`export-config.types=${importOpts.types.join(',')}`, importOpts.types.filter(type => external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().includes(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().keys(importOpts._typeMaps), type)).join(',') || external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().keys(importOpts._typeMaps).join(',')]);
|
|
27638
|
-
}
|
|
27639
|
-
if (exportConfig && exportOpts.types && !exportOpts.exportMethod && !external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().includeArrays(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().keys(exportOpts._typeMaps), exportOpts.types)) {
|
|
27640
|
-
warnLog('vxe.error.errProp', [`export-config.types=${exportOpts.types.join(',')}`, exportOpts.types.filter(type => external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().includes(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().keys(exportOpts._typeMaps), type)).join(',') || external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().keys(exportOpts._typeMaps).join(',')]);
|
|
27641
|
-
}
|
|
27588
|
+
const {
|
|
27589
|
+
data,
|
|
27590
|
+
exportConfig,
|
|
27591
|
+
importConfig,
|
|
27592
|
+
treeConfig,
|
|
27593
|
+
showOverflow
|
|
27594
|
+
} = props;
|
|
27595
|
+
const {
|
|
27596
|
+
scrollXStore,
|
|
27597
|
+
scrollYStore
|
|
27598
|
+
} = internalData;
|
|
27599
|
+
const sYOpts = $xeTable.computeSYOpts;
|
|
27600
|
+
const editOpts = $xeTable.computeEditOpts;
|
|
27601
|
+
const treeOpts = $xeTable.computeTreeOpts;
|
|
27602
|
+
const radioOpts = $xeTable.computeRadioOpts;
|
|
27603
|
+
const checkboxOpts = $xeTable.computeCheckboxOpts;
|
|
27604
|
+
const expandOpts = $xeTable.computeExpandOpts;
|
|
27605
|
+
const rowOpts = $xeTable.computeRowOpts;
|
|
27606
|
+
const customOpts = $xeTable.computeCustomOpts;
|
|
27607
|
+
const mouseOpts = $xeTable.computeMouseOpts;
|
|
27608
|
+
const exportOpts = $xeTable.computeExportOpts;
|
|
27609
|
+
const importOpts = $xeTable.computeImportOpts;
|
|
27610
|
+
if (this.rowId) {
|
|
27611
|
+
warnLog('vxe.error.delProp', ['row-id', 'row-config.keyField']);
|
|
27642
27612
|
}
|
|
27643
|
-
if (
|
|
27644
|
-
|
|
27645
|
-
if (!this.id) {
|
|
27646
|
-
if ((this.customConfig ? isEnableConf(customOpts) : customOpts.enabled) && customOpts.storage) {
|
|
27647
|
-
errLog('vxe.error.reqProp', ['id']);
|
|
27648
|
-
}
|
|
27649
|
-
}
|
|
27650
|
-
if (this.treeConfig && this.checkboxOpts.range) {
|
|
27651
|
-
errLog('vxe.error.noTree', ['checkbox-config.range']);
|
|
27652
|
-
}
|
|
27653
|
-
if (this.rowOpts.height && !this.showOverflow) {
|
|
27654
|
-
warnLog('vxe.error.notProp', ['table.show-overflow']);
|
|
27655
|
-
}
|
|
27656
|
-
if (!this.handleMousedownCellAreaEvent) {
|
|
27657
|
-
if (this.areaConfig) {
|
|
27658
|
-
warnLog('vxe.error.notProp', ['area-config']);
|
|
27659
|
-
}
|
|
27660
|
-
if (this.clipConfig) {
|
|
27661
|
-
warnLog('vxe.error.notProp', ['clip-config']);
|
|
27662
|
-
}
|
|
27663
|
-
if (this.fnrConfig) {
|
|
27664
|
-
warnLog('vxe.error.notProp', ['fnr-config']);
|
|
27665
|
-
}
|
|
27666
|
-
if (this.mouseOpts.area) {
|
|
27667
|
-
errLog('vxe.error.notProp', ['mouse-config.area']);
|
|
27668
|
-
return;
|
|
27669
|
-
}
|
|
27670
|
-
}
|
|
27671
|
-
if (this.dragConfig) {
|
|
27672
|
-
warnLog('vxe.error.delProp', ['drag-config', 'row-drag-config']);
|
|
27673
|
-
}
|
|
27674
|
-
if (this.treeConfig && treeOpts.children) {
|
|
27675
|
-
warnLog('vxe.error.delProp', ['tree-config.children', 'tree-config.childrenField']);
|
|
27676
|
-
}
|
|
27677
|
-
if (this.treeConfig && treeOpts.line) {
|
|
27678
|
-
warnLog('vxe.error.delProp', ['tree-config.line', 'tree-config.showLine']);
|
|
27679
|
-
}
|
|
27680
|
-
if (this.mouseOpts.area && this.mouseOpts.selected) {
|
|
27681
|
-
warnLog('vxe.error.errConflicts', ['mouse-config.area', 'mouse-config.selected']);
|
|
27682
|
-
}
|
|
27683
|
-
// if (this.mouseOpts.area && this.checkboxOpts.range) {
|
|
27684
|
-
// warnLog('vxe.error.errConflicts', ['mouse-config.area', 'checkbox-config.range'])
|
|
27685
|
-
// }
|
|
27686
|
-
if (this.mouseOpts.area && this.treeConfig && !treeOpts.transform) {
|
|
27687
|
-
errLog('vxe.error.noTree', ['mouse-config.area']);
|
|
27688
|
-
}
|
|
27613
|
+
if (this.rowKey) {
|
|
27614
|
+
warnLog('vxe.error.delProp', ['row-key', 'row-config.useKey']);
|
|
27689
27615
|
}
|
|
27690
|
-
|
|
27691
|
-
|
|
27692
|
-
|
|
27693
|
-
|
|
27694
|
-
|
|
27695
|
-
|
|
27696
|
-
|
|
27697
|
-
|
|
27698
|
-
|
|
27699
|
-
|
|
27700
|
-
|
|
27701
|
-
|
|
27702
|
-
|
|
27703
|
-
|
|
27704
|
-
|
|
27705
|
-
|
|
27706
|
-
|
|
27707
|
-
|
|
27708
|
-
|
|
27709
|
-
|
|
27710
|
-
|
|
27711
|
-
|
|
27712
|
-
|
|
27713
|
-
|
|
27714
|
-
|
|
27715
|
-
|
|
27616
|
+
if (this.columnKey) {
|
|
27617
|
+
warnLog('vxe.error.delProp', ['column-id', 'column-config.useKey']);
|
|
27618
|
+
}
|
|
27619
|
+
if (!(this.rowId || rowOpts.keyField) && (checkboxOpts.reserve || checkboxOpts.checkRowKeys || radioOpts.reserve || radioOpts.checkRowKey || expandOpts.expandRowKeys || this.treeOpts.expandRowKeys)) {
|
|
27620
|
+
warnLog('vxe.error.reqProp', ['row-config.keyField']);
|
|
27621
|
+
}
|
|
27622
|
+
if (this.editConfig && editOpts.showStatus && !this.keepSource) {
|
|
27623
|
+
warnLog('vxe.error.reqProp', ['keep-source']);
|
|
27624
|
+
}
|
|
27625
|
+
if (treeConfig && (treeOpts.showLine || treeOpts.line) && (!(this.rowKey || rowOpts.useKey) || !showOverflow)) {
|
|
27626
|
+
warnLog('vxe.error.reqProp', ['row-config.useKey | show-overflow']);
|
|
27627
|
+
}
|
|
27628
|
+
if (treeConfig && !treeOpts.transform && this.stripe) {
|
|
27629
|
+
warnLog('vxe.error.noTree', ['stripe']);
|
|
27630
|
+
}
|
|
27631
|
+
if (this.showFooter && !(this.footerMethod || this.footerData)) {
|
|
27632
|
+
warnLog('vxe.error.reqProp', ['footer-data | footer-method']);
|
|
27633
|
+
}
|
|
27634
|
+
if (rowOpts.height) {
|
|
27635
|
+
warnLog('vxe.error.delProp', ['row-config.height', 'cell-config.height']);
|
|
27636
|
+
}
|
|
27637
|
+
if (this.tooltipOpts.enabled) {
|
|
27638
|
+
warnLog('vxe.error.delProp', ['tooltip-config.enabled', 'tooltip-config.showAll']);
|
|
27639
|
+
}
|
|
27640
|
+
if (this.highlightCurrentRow) {
|
|
27641
|
+
warnLog('vxe.error.delProp', ['highlight-current-row', 'row-config.isCurrent']);
|
|
27642
|
+
}
|
|
27643
|
+
if (this.highlightHoverRow) {
|
|
27644
|
+
warnLog('vxe.error.delProp', ['highlight-hover-row', 'row-config.isHover']);
|
|
27645
|
+
}
|
|
27646
|
+
if (this.highlightCurrentColumn) {
|
|
27647
|
+
warnLog('vxe.error.delProp', ['highlight-current-column', 'column-config.isCurrent']);
|
|
27648
|
+
}
|
|
27649
|
+
if (this.highlightHoverColumn) {
|
|
27650
|
+
warnLog('vxe.error.delProp', ['highlight-hover-column', 'column-config.isHover']);
|
|
27651
|
+
}
|
|
27652
|
+
// 检查导入导出类型,如果自定义导入导出方法,则不校验类型
|
|
27653
|
+
if (importConfig && importOpts.types && !importOpts.importMethod && !external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().includeArrays(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().keys(importOpts._typeMaps), importOpts.types)) {
|
|
27654
|
+
warnLog('vxe.error.errProp', [`export-config.types=${importOpts.types.join(',')}`, importOpts.types.filter(type => external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().includes(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().keys(importOpts._typeMaps), type)).join(',') || external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().keys(importOpts._typeMaps).join(',')]);
|
|
27655
|
+
}
|
|
27656
|
+
if (exportConfig && exportOpts.types && !exportOpts.exportMethod && !external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().includeArrays(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().keys(exportOpts._typeMaps), exportOpts.types)) {
|
|
27657
|
+
warnLog('vxe.error.errProp', [`export-config.types=${exportOpts.types.join(',')}`, exportOpts.types.filter(type => external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().includes(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().keys(exportOpts._typeMaps), type)).join(',') || external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().keys(exportOpts._typeMaps).join(',')]);
|
|
27658
|
+
}
|
|
27659
|
+
if (!this.id) {
|
|
27660
|
+
if ((this.customConfig ? isEnableConf(customOpts) : customOpts.enabled) && customOpts.storage) {
|
|
27661
|
+
errLog('vxe.error.reqProp', ['id']);
|
|
27716
27662
|
}
|
|
27717
|
-
|
|
27718
|
-
|
|
27663
|
+
}
|
|
27664
|
+
if (this.treeConfig && this.checkboxOpts.range) {
|
|
27665
|
+
errLog('vxe.error.noTree', ['checkbox-config.range']);
|
|
27666
|
+
}
|
|
27667
|
+
if (this.rowOpts.height && !this.showOverflow) {
|
|
27668
|
+
warnLog('vxe.error.notProp', ['table.show-overflow']);
|
|
27669
|
+
}
|
|
27670
|
+
if (!this.handleMousedownCellAreaEvent) {
|
|
27671
|
+
if (this.areaConfig) {
|
|
27672
|
+
warnLog('vxe.error.notProp', ['area-config']);
|
|
27719
27673
|
}
|
|
27720
|
-
if (this.
|
|
27721
|
-
warnLog('vxe.error.
|
|
27674
|
+
if (this.clipConfig) {
|
|
27675
|
+
warnLog('vxe.error.notProp', ['clip-config']);
|
|
27722
27676
|
}
|
|
27723
|
-
if (this.
|
|
27724
|
-
warnLog('vxe.error.
|
|
27677
|
+
if (this.fnrConfig) {
|
|
27678
|
+
warnLog('vxe.error.notProp', ['fnr-config']);
|
|
27725
27679
|
}
|
|
27726
|
-
if (
|
|
27727
|
-
errLog('vxe.error.
|
|
27680
|
+
if (mouseOpts.area) {
|
|
27681
|
+
errLog('vxe.error.notProp', ['mouse-config.area']);
|
|
27682
|
+
return;
|
|
27728
27683
|
}
|
|
27729
|
-
|
|
27730
|
-
|
|
27684
|
+
}
|
|
27685
|
+
if (treeConfig && rowOpts.drag && !treeOpts.transform) {
|
|
27686
|
+
warnLog('vxe.error.notSupportProp', ['column-config.drag', 'tree-config.transform=false', 'tree-config.transform=true']);
|
|
27687
|
+
}
|
|
27688
|
+
if (this.dragConfig) {
|
|
27689
|
+
warnLog('vxe.error.delProp', ['drag-config', 'row-drag-config']);
|
|
27690
|
+
}
|
|
27691
|
+
if (this.treeConfig && treeOpts.children) {
|
|
27692
|
+
warnLog('vxe.error.delProp', ['tree-config.children', 'tree-config.childrenField']);
|
|
27693
|
+
}
|
|
27694
|
+
if (this.treeConfig && treeOpts.line) {
|
|
27695
|
+
warnLog('vxe.error.delProp', ['tree-config.line', 'tree-config.showLine']);
|
|
27696
|
+
}
|
|
27697
|
+
if (mouseOpts.area && mouseOpts.selected) {
|
|
27698
|
+
warnLog('vxe.error.errConflicts', ['mouse-config.area', 'mouse-config.selected']);
|
|
27699
|
+
}
|
|
27700
|
+
if (mouseOpts.area && this.treeConfig && !treeOpts.transform) {
|
|
27701
|
+
errLog('vxe.error.noTree', ['mouse-config.area']);
|
|
27702
|
+
}
|
|
27703
|
+
// 在 v3.0 中废弃 context-menu
|
|
27704
|
+
if (this.contextMenu) {
|
|
27705
|
+
warnLog('vxe.error.delProp', ['context-menu', 'menu-config']);
|
|
27706
|
+
if (!external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isObject(this.contextMenu)) {
|
|
27707
|
+
warnLog('vxe.error.errProp', [`table.context-menu=${this.contextMenu}`, 'table.context-menu={}']);
|
|
27731
27708
|
}
|
|
27732
27709
|
}
|
|
27710
|
+
if (this.menuConfig && !external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isObject(this.menuConfig)) {
|
|
27711
|
+
warnLog('vxe.error.errProp', [`table.menu-config=${this.menuConfig}`, 'table.menu-config={}']);
|
|
27712
|
+
}
|
|
27713
|
+
if (this.exportConfig && !external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isObject(this.exportConfig)) {
|
|
27714
|
+
warnLog('vxe.error.errProp', [`table.export-config=${this.exportConfig}`, 'table.export-config={}']);
|
|
27715
|
+
}
|
|
27716
|
+
if (this.importConfig && !external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isObject(this.importConfig)) {
|
|
27717
|
+
warnLog('vxe.error.errProp', [`table.import-config=${this.importConfig}`, 'table.import-config={}']);
|
|
27718
|
+
}
|
|
27719
|
+
if (this.printConfig && !external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isObject(this.printConfig)) {
|
|
27720
|
+
warnLog('vxe.error.errProp', [`table.print-config=${this.printConfig}`, 'table.print-config={}']);
|
|
27721
|
+
}
|
|
27722
|
+
if (this.treeConfig && !external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isObject(this.treeConfig)) {
|
|
27723
|
+
warnLog('vxe.error.errProp', [`table.tree-config=${this.treeConfig}`, 'table.tree-config={}']);
|
|
27724
|
+
}
|
|
27725
|
+
if (this.customConfig && !external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isObject(this.customConfig)) {
|
|
27726
|
+
warnLog('vxe.error.errProp', [`table.custom-config=${this.customConfig}`, 'table.custom-config={}']);
|
|
27727
|
+
}
|
|
27728
|
+
if (this.editConfig && !external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isObject(this.editConfig)) {
|
|
27729
|
+
warnLog('vxe.error.errProp', [`table.edit-config=${this.editConfig}`, 'table.edit-config={}']);
|
|
27730
|
+
}
|
|
27731
|
+
if (this.emptyRender && !external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isObject(this.emptyRender)) {
|
|
27732
|
+
warnLog('vxe.error.errProp', [`table.empty-render=${this.emptyRender}`, 'table.empty-render={}']);
|
|
27733
|
+
}
|
|
27734
|
+
if (this.editConfig && this.editOpts.activeMethod) {
|
|
27735
|
+
warnLog('vxe.error.delProp', ['table.edit-config.activeMethod', 'table.edit-config.beforeEditMethod']);
|
|
27736
|
+
}
|
|
27737
|
+
if (this.treeConfig && this.checkboxOpts.isShiftKey) {
|
|
27738
|
+
errLog('vxe.error.errConflicts', ['tree-config', 'checkbox-config.isShiftKey']);
|
|
27739
|
+
}
|
|
27740
|
+
if (this.checkboxOpts.halfField) {
|
|
27741
|
+
warnLog('vxe.error.delProp', ['checkbox-config.halfField', 'checkbox-config.indeterminateField']);
|
|
27742
|
+
}
|
|
27733
27743
|
// 检查是否有安装需要的模块
|
|
27734
|
-
if (
|
|
27735
|
-
|
|
27736
|
-
|
|
27737
|
-
|
|
27738
|
-
|
|
27739
|
-
|
|
27740
|
-
|
|
27741
|
-
|
|
27742
|
-
|
|
27743
|
-
|
|
27744
|
-
|
|
27745
|
-
errLog('vxe.error.reqModule', ['Export']);
|
|
27746
|
-
}
|
|
27744
|
+
if (this.editConfig && !this._insert) {
|
|
27745
|
+
errLog('vxe.error.reqModule', ['Edit']);
|
|
27746
|
+
}
|
|
27747
|
+
if (this.editRules && !this._validate) {
|
|
27748
|
+
errLog('vxe.error.reqModule', ['Validator']);
|
|
27749
|
+
}
|
|
27750
|
+
if ((this.checkboxOpts.range || this.keyboardConfig || this.mouseConfig) && !this.handleCellMousedownEvent) {
|
|
27751
|
+
errLog('vxe.error.reqModule', ['Keyboard']);
|
|
27752
|
+
}
|
|
27753
|
+
if ((this.printConfig || this.importConfig || this.exportConfig) && !this._exportData) {
|
|
27754
|
+
errLog('vxe.error.reqModule', ['Export']);
|
|
27747
27755
|
}
|
|
27748
27756
|
Object.assign(scrollYStore, {
|
|
27749
27757
|
startIndex: 0,
|
|
@@ -28169,7 +28177,7 @@ const {
|
|
|
28169
28177
|
globalMixins: toolbar_globalMixins,
|
|
28170
28178
|
renderEmptyElement: toolbar_renderEmptyElement
|
|
28171
28179
|
} = core_.VxeUI;
|
|
28172
|
-
/* harmony default export */ var src_toolbar = (defineVxeComponent({
|
|
28180
|
+
/* harmony default export */ var src_toolbar = (/* define-vxe-component start */defineVxeComponent({
|
|
28173
28181
|
name: 'VxeToolbar',
|
|
28174
28182
|
mixins: [toolbar_globalMixins.sizeMixin],
|
|
28175
28183
|
props: {
|
|
@@ -28952,7 +28960,7 @@ const {
|
|
|
28952
28960
|
render(h) {
|
|
28953
28961
|
return this.renderVN(h);
|
|
28954
28962
|
}
|
|
28955
|
-
}));
|
|
28963
|
+
})); /* define-vxe-component end */
|
|
28956
28964
|
;// ./packages/grid/src/grid.ts
|
|
28957
28965
|
|
|
28958
28966
|
|
|
@@ -31848,6 +31856,7 @@ const Toolbar = VxeToolbar;
|
|
|
31848
31856
|
groupTag: '分组列头应该使用 "{0}" 而不是 "{1}",这可能会出现错误',
|
|
31849
31857
|
scrollErrProp: '启用虚拟滚动后不支持该参数 "{0}"',
|
|
31850
31858
|
errConflicts: '参数 "{0}" 与 "{1}" 有冲突',
|
|
31859
|
+
notSupportProp: '当启用参数 "{0}" 时不支持 "{1}",应该为 "{2}",否则将会出现错误',
|
|
31851
31860
|
unableInsert: '无法插入到指定位置,请检查参数是否正确',
|
|
31852
31861
|
useErr: '安装 "{0}" 模块时发生错误,可能顺序不正确,依赖的模块需要在 Table 之前安装',
|
|
31853
31862
|
barUnableLink: '工具栏无法关联表格',
|