vxe-table 4.7.65 → 4.7.66
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 +21 -11
- package/es/locale/lang/en-US.js +4 -1
- package/es/locale/lang/es-ES.js +4 -1
- package/es/locale/lang/hu-HU.js +4 -1
- package/es/locale/lang/ja-JP.js +4 -1
- package/es/locale/lang/ko-KR.js +4 -1
- package/es/locale/lang/pt-BR.js +4 -1
- package/es/locale/lang/ru-RU.js +4 -1
- package/es/locale/lang/vi-VN.js +4 -1
- package/es/locale/lang/zh-CN.js +4 -1
- package/es/locale/lang/zh-TC.js +4 -1
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/table/module/custom/panel.js +12 -11
- package/es/table/module/edit/hook.js +11 -10
- package/es/table/module/export/hook.js +10 -6
- package/es/table/render/index.js +95 -84
- package/es/table/src/table.js +22 -2
- package/es/table/style.css +8 -4
- package/es/table/style.min.css +1 -1
- package/es/toolbar/src/toolbar.js +7 -7
- package/es/ui/index.js +2 -2
- package/es/ui/src/log.js +1 -1
- package/es/vxe-table/style.css +8 -4
- package/es/vxe-table/style.min.css +1 -1
- package/lib/grid/src/grid.js +25 -14
- package/lib/grid/src/grid.min.js +1 -1
- package/lib/index.umd.js +210 -141
- package/lib/index.umd.min.js +1 -1
- package/lib/locale/lang/en-US.js +4 -1
- package/lib/locale/lang/en-US.min.js +1 -1
- package/lib/locale/lang/en-US.umd.js +4 -1
- package/lib/locale/lang/es-ES.js +4 -1
- package/lib/locale/lang/es-ES.min.js +1 -1
- package/lib/locale/lang/es-ES.umd.js +4 -1
- package/lib/locale/lang/hu-HU.js +4 -1
- package/lib/locale/lang/hu-HU.min.js +1 -1
- package/lib/locale/lang/ja-JP.js +4 -1
- package/lib/locale/lang/ja-JP.min.js +1 -1
- package/lib/locale/lang/ja-JP.umd.js +4 -1
- package/lib/locale/lang/ko-KR.js +4 -1
- package/lib/locale/lang/ko-KR.min.js +1 -1
- package/lib/locale/lang/pt-BR.js +4 -1
- package/lib/locale/lang/pt-BR.min.js +1 -1
- package/lib/locale/lang/pt-BR.umd.js +4 -1
- package/lib/locale/lang/ru-RU.js +4 -1
- package/lib/locale/lang/ru-RU.min.js +1 -1
- package/lib/locale/lang/vi-VN.js +4 -1
- package/lib/locale/lang/vi-VN.min.js +1 -1
- package/lib/locale/lang/zh-CN.js +4 -1
- package/lib/locale/lang/zh-CN.min.js +1 -1
- package/lib/locale/lang/zh-CN.umd.js +4 -1
- package/lib/locale/lang/zh-HK.min.js +1 -1
- package/lib/locale/lang/zh-HK.umd.js +4 -1
- package/lib/locale/lang/zh-MO.min.js +1 -1
- package/lib/locale/lang/zh-MO.umd.js +4 -1
- package/lib/locale/lang/zh-TC.js +4 -1
- package/lib/locale/lang/zh-TC.min.js +1 -1
- package/lib/locale/lang/zh-TC.umd.js +4 -1
- package/lib/locale/lang/zh-TW.min.js +1 -1
- package/lib/locale/lang/zh-TW.umd.js +4 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/table/module/custom/panel.js +18 -11
- package/lib/table/module/custom/panel.min.js +1 -1
- package/lib/table/module/edit/hook.js +11 -13
- package/lib/table/module/edit/hook.min.js +1 -1
- package/lib/table/module/export/hook.js +12 -6
- package/lib/table/module/export/hook.min.js +1 -1
- package/lib/table/render/index.js +98 -84
- package/lib/table/render/index.min.js +1 -1
- package/lib/table/src/table.js +22 -2
- package/lib/table/src/table.min.js +1 -1
- package/lib/table/style/style.css +8 -4
- package/lib/table/style/style.min.css +1 -1
- package/lib/toolbar/src/toolbar.js +17 -7
- package/lib/toolbar/src/toolbar.min.js +1 -1
- package/lib/ui/index.js +2 -2
- 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/lib/vxe-table/style/style.css +8 -4
- package/lib/vxe-table/style/style.min.css +1 -1
- package/package.json +2 -2
- package/packages/grid/src/grid.ts +22 -11
- package/packages/locale/lang/en-US.ts +4 -1
- package/packages/locale/lang/es-ES.ts +4 -1
- package/packages/locale/lang/hu-HU.ts +4 -1
- package/packages/locale/lang/ja-JP.ts +4 -1
- package/packages/locale/lang/ko-KR.ts +4 -1
- package/packages/locale/lang/pt-BR.ts +4 -1
- package/packages/locale/lang/ru-RU.ts +4 -1
- package/packages/locale/lang/vi-VN.ts +4 -1
- package/packages/locale/lang/zh-CN.ts +4 -1
- package/packages/locale/lang/zh-TC.ts +4 -1
- package/packages/table/module/custom/panel.ts +13 -12
- package/packages/table/module/edit/hook.ts +11 -10
- package/packages/table/module/export/hook.ts +10 -6
- package/packages/table/render/index.ts +95 -84
- package/packages/table/src/table.ts +25 -3
- package/packages/toolbar/src/toolbar.ts +8 -8
- package/styles/components/table.scss +6 -3
- /package/es/{iconfont.1723521776225.ttf → iconfont.1724145396059.ttf} +0 -0
- /package/es/{iconfont.1723521776225.woff → iconfont.1724145396059.woff} +0 -0
- /package/es/{iconfont.1723521776225.woff2 → iconfont.1724145396059.woff2} +0 -0
- /package/lib/{iconfont.1723521776225.ttf → iconfont.1724145396059.ttf} +0 -0
- /package/lib/{iconfont.1723521776225.woff → iconfont.1724145396059.woff} +0 -0
- /package/lib/{iconfont.1723521776225.woff2 → iconfont.1724145396059.woff2} +0 -0
package/lib/index.umd.js
CHANGED
|
@@ -1951,9 +1951,9 @@ function eqEmptyValue(cellValue) {
|
|
|
1951
1951
|
;// CONCATENATED MODULE: ./packages/ui/index.ts
|
|
1952
1952
|
|
|
1953
1953
|
|
|
1954
|
-
const version = "4.7.
|
|
1954
|
+
const version = "4.7.66";
|
|
1955
1955
|
core_.VxeUI.version = version;
|
|
1956
|
-
core_.VxeUI.tableVersion = "4.7.
|
|
1956
|
+
core_.VxeUI.tableVersion = "4.7.66";
|
|
1957
1957
|
core_.VxeUI.setConfig({
|
|
1958
1958
|
emptyCell: ' ',
|
|
1959
1959
|
table: {
|
|
@@ -2334,7 +2334,7 @@ var es_array_push = __webpack_require__(4114);
|
|
|
2334
2334
|
const {
|
|
2335
2335
|
log: log_log
|
|
2336
2336
|
} = core_.VxeUI;
|
|
2337
|
-
const log_version = `table v${"4.7.
|
|
2337
|
+
const log_version = `table v${"4.7.66"}`;
|
|
2338
2338
|
const warnLog = log_log.create('warn', log_version);
|
|
2339
2339
|
const errLog = log_log.create('error', log_version);
|
|
2340
2340
|
;// CONCATENATED MODULE: ./packages/table/src/columnInfo.ts
|
|
@@ -6603,7 +6603,9 @@ const {
|
|
|
6603
6603
|
}
|
|
6604
6604
|
}, 300);
|
|
6605
6605
|
};
|
|
6606
|
-
const confirmCustomEvent =
|
|
6606
|
+
const confirmCustomEvent = ({
|
|
6607
|
+
$event
|
|
6608
|
+
}) => {
|
|
6607
6609
|
const {
|
|
6608
6610
|
customColumnList
|
|
6609
6611
|
} = reactData;
|
|
@@ -6637,10 +6639,12 @@ const {
|
|
|
6637
6639
|
}
|
|
6638
6640
|
});
|
|
6639
6641
|
$xeTable.closeCustom();
|
|
6640
|
-
$xeTable.emitCustomEvent('confirm',
|
|
6642
|
+
$xeTable.emitCustomEvent('confirm', $event);
|
|
6641
6643
|
$xeTable.saveCustomStore('confirm');
|
|
6642
6644
|
};
|
|
6643
|
-
const cancelCustomEvent =
|
|
6645
|
+
const cancelCustomEvent = ({
|
|
6646
|
+
$event
|
|
6647
|
+
}) => {
|
|
6644
6648
|
const {
|
|
6645
6649
|
customStore
|
|
6646
6650
|
} = props;
|
|
@@ -6681,14 +6685,16 @@ const {
|
|
|
6681
6685
|
children: 'children'
|
|
6682
6686
|
});
|
|
6683
6687
|
$xeTable.closeCustom();
|
|
6684
|
-
$xeTable.emitCustomEvent('cancel',
|
|
6688
|
+
$xeTable.emitCustomEvent('cancel', $event);
|
|
6685
6689
|
};
|
|
6686
6690
|
const handleResetCustomEvent = evnt => {
|
|
6687
6691
|
$xeTable.resetColumn(true);
|
|
6688
6692
|
$xeTable.closeCustom();
|
|
6689
6693
|
$xeTable.emitCustomEvent('reset', evnt);
|
|
6690
6694
|
};
|
|
6691
|
-
const resetCustomEvent =
|
|
6695
|
+
const resetCustomEvent = ({
|
|
6696
|
+
$event
|
|
6697
|
+
}) => {
|
|
6692
6698
|
if (core_.VxeUI.modal) {
|
|
6693
6699
|
core_.VxeUI.modal.confirm({
|
|
6694
6700
|
content: panel_getI18n('vxe.custom.cstmConfirmRestore'),
|
|
@@ -6696,11 +6702,11 @@ const {
|
|
|
6696
6702
|
escClosable: true
|
|
6697
6703
|
}).then(type => {
|
|
6698
6704
|
if (type === 'confirm') {
|
|
6699
|
-
handleResetCustomEvent(
|
|
6705
|
+
handleResetCustomEvent($event);
|
|
6700
6706
|
}
|
|
6701
6707
|
});
|
|
6702
6708
|
} else {
|
|
6703
|
-
handleResetCustomEvent(
|
|
6709
|
+
handleResetCustomEvent($event);
|
|
6704
6710
|
}
|
|
6705
6711
|
};
|
|
6706
6712
|
const handleOptionCheck = column => {
|
|
@@ -6751,7 +6757,7 @@ const {
|
|
|
6751
6757
|
// // $xeTable.setColumnFixed(column, column.fixed)
|
|
6752
6758
|
// }
|
|
6753
6759
|
// }
|
|
6754
|
-
const
|
|
6760
|
+
const allOptionEvent = () => {
|
|
6755
6761
|
const {
|
|
6756
6762
|
customStore
|
|
6757
6763
|
} = props;
|
|
@@ -6993,7 +6999,7 @@ const {
|
|
|
6993
6999
|
'is--indeterminate': isAllIndeterminate
|
|
6994
7000
|
}],
|
|
6995
7001
|
title: panel_getI18n('vxe.table.allTitle'),
|
|
6996
|
-
onClick:
|
|
7002
|
+
onClick: allOptionEvent
|
|
6997
7003
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
6998
7004
|
class: ['vxe-checkbox--icon', isAllIndeterminate ? panel_getIcon().TABLE_CHECKBOX_INDETERMINATE : isAllChecked ? panel_getIcon().TABLE_CHECKBOX_CHECKED : panel_getIcon().TABLE_CHECKBOX_UNCHECKED]
|
|
6999
7005
|
}), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
@@ -7176,7 +7182,7 @@ const {
|
|
|
7176
7182
|
'is--indeterminate': isAllIndeterminate
|
|
7177
7183
|
}],
|
|
7178
7184
|
title: panel_getI18n('vxe.table.allTitle'),
|
|
7179
|
-
onClick:
|
|
7185
|
+
onClick: allOptionEvent
|
|
7180
7186
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
7181
7187
|
class: ['vxe-checkbox--icon', isAllIndeterminate ? panel_getIcon().TABLE_CHECKBOX_INDETERMINATE : isAllChecked ? panel_getIcon().TABLE_CHECKBOX_CHECKED : panel_getIcon().TABLE_CHECKBOX_UNCHECKED]
|
|
7182
7188
|
}), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
@@ -7185,7 +7191,8 @@ const {
|
|
|
7185
7191
|
class: 'vxe-table-custom-popup--table-sort-help-title'
|
|
7186
7192
|
}, panel_getI18n('vxe.custom.setting.colSort')), VxeUITooltipComponent ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(VxeUITooltipComponent, {
|
|
7187
7193
|
enterable: true,
|
|
7188
|
-
content: panel_getI18n('vxe.custom.setting.sortHelpTip')
|
|
7194
|
+
content: panel_getI18n('vxe.custom.setting.sortHelpTip'),
|
|
7195
|
+
popupClassName: 'vxe-table--ignore-clear'
|
|
7189
7196
|
}, {
|
|
7190
7197
|
default: () => {
|
|
7191
7198
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('i', {
|
|
@@ -8232,6 +8239,7 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
8232
8239
|
// 使用已安装的组件,如果未安装则不渲染
|
|
8233
8240
|
const VxeUILoadingComponent = core_.VxeUI.getComponent('VxeLoading');
|
|
8234
8241
|
const VxeUITooltipComponent = core_.VxeUI.getComponent('VxeTooltip');
|
|
8242
|
+
const $xeTabs = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('$xeTabs', null);
|
|
8235
8243
|
const {
|
|
8236
8244
|
computeSize
|
|
8237
8245
|
} = useFns.useSize(props);
|
|
@@ -11938,6 +11946,11 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
11938
11946
|
const fullColumnFieldData = internalData.fullColumnFieldData;
|
|
11939
11947
|
return field && fullColumnFieldData[field] ? fullColumnFieldData[field].column : null;
|
|
11940
11948
|
},
|
|
11949
|
+
getParentColumn(fieldOrColumn) {
|
|
11950
|
+
const fullColumnIdData = internalData.fullColumnIdData;
|
|
11951
|
+
const column = handleFieldOrColumn($xeTable, fieldOrColumn);
|
|
11952
|
+
return column && column.parentId && fullColumnIdData[column.parentId] ? fullColumnIdData[column.parentId].column : null;
|
|
11953
|
+
},
|
|
11941
11954
|
/**
|
|
11942
11955
|
* 获取当前表格的列
|
|
11943
11956
|
* 收集到的全量列、全量表头列、处理条件之后的全量表头列、当前渲染中的表头列
|
|
@@ -12256,10 +12269,14 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
12256
12269
|
* 计算单元格列宽,动态分配可用剩余空间
|
|
12257
12270
|
* 支持 width=? width=?px width=?% min-width=? min-width=?px min-width=?%
|
|
12258
12271
|
*/
|
|
12259
|
-
recalculate(
|
|
12272
|
+
recalculate(reFull) {
|
|
12273
|
+
const el = refElem.value;
|
|
12274
|
+
if (!el || !el.clientWidth) {
|
|
12275
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)();
|
|
12276
|
+
}
|
|
12260
12277
|
calcCellWidth();
|
|
12261
12278
|
autoCellWidth();
|
|
12262
|
-
if (
|
|
12279
|
+
if (reFull === true) {
|
|
12263
12280
|
// 初始化时需要在列计算之后再执行优化运算,达到最优显示效果
|
|
12264
12281
|
return computeScrollLoad().then(() => {
|
|
12265
12282
|
autoCellWidth();
|
|
@@ -14231,6 +14248,10 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
14231
14248
|
if ($xeTable.closeMenu) {
|
|
14232
14249
|
$xeTable.closeMenu();
|
|
14233
14250
|
}
|
|
14251
|
+
const el = refElem.value;
|
|
14252
|
+
if (!el || !el.clientWidth) {
|
|
14253
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)();
|
|
14254
|
+
}
|
|
14234
14255
|
tableMethods.updateCellAreas();
|
|
14235
14256
|
tableMethods.recalculate(true);
|
|
14236
14257
|
};
|
|
@@ -15943,6 +15964,11 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
15943
15964
|
}
|
|
15944
15965
|
});
|
|
15945
15966
|
});
|
|
15967
|
+
if ($xeTabs) {
|
|
15968
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => $xeTabs ? $xeTabs.reactData.resizeFlag : null, () => {
|
|
15969
|
+
handleGlobalResizeEvent();
|
|
15970
|
+
});
|
|
15971
|
+
}
|
|
15946
15972
|
table_hooks.forEach(options => {
|
|
15947
15973
|
const {
|
|
15948
15974
|
setupTable
|
|
@@ -16274,6 +16300,7 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
16274
16300
|
'is--virtual-x': scrollXLoad,
|
|
16275
16301
|
'is--virtual-y': scrollYLoad
|
|
16276
16302
|
}],
|
|
16303
|
+
spellcheck: false,
|
|
16277
16304
|
onKeydown: keydownEvent
|
|
16278
16305
|
}, [
|
|
16279
16306
|
/**
|
|
@@ -18223,28 +18250,26 @@ edit_hook_hooks.add('tableEditModule', {
|
|
|
18223
18250
|
} = column;
|
|
18224
18251
|
if (isEnableConf(editRender)) {
|
|
18225
18252
|
const compRender = edit_hook_renderer.get(editRender.name);
|
|
18226
|
-
let
|
|
18227
|
-
|
|
18228
|
-
autoselect
|
|
18229
|
-
} = editRender;
|
|
18253
|
+
let autoFocus = editRender.autofocus || editRender.autoFocus;
|
|
18254
|
+
let autoSelect = editRender.autoSelect || editRender.autoselect;
|
|
18230
18255
|
let inputElem;
|
|
18231
|
-
if (!
|
|
18232
|
-
|
|
18256
|
+
if (!autoFocus && compRender) {
|
|
18257
|
+
autoFocus = compRender.tableAutoFocus || compRender.tableAutofocus || compRender.autofocus;
|
|
18233
18258
|
}
|
|
18234
|
-
if (!
|
|
18235
|
-
|
|
18259
|
+
if (!autoSelect && compRender) {
|
|
18260
|
+
autoSelect = compRender.tableAutoSelect || compRender.autoselect;
|
|
18236
18261
|
}
|
|
18237
18262
|
// 如果指定了聚焦 class
|
|
18238
|
-
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(
|
|
18239
|
-
inputElem =
|
|
18240
|
-
} else if (
|
|
18241
|
-
inputElem = cell.querySelector(
|
|
18263
|
+
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(autoFocus)) {
|
|
18264
|
+
inputElem = autoFocus(params);
|
|
18265
|
+
} else if (autoFocus) {
|
|
18266
|
+
inputElem = cell.querySelector(autoFocus);
|
|
18242
18267
|
if (inputElem) {
|
|
18243
18268
|
inputElem.focus();
|
|
18244
18269
|
}
|
|
18245
18270
|
}
|
|
18246
18271
|
if (inputElem) {
|
|
18247
|
-
if (
|
|
18272
|
+
if (autoSelect) {
|
|
18248
18273
|
inputElem.select();
|
|
18249
18274
|
} else {
|
|
18250
18275
|
// 保持一致行为,光标移到末端
|
|
@@ -18647,7 +18672,7 @@ export_hook_hooks.add('tableExportModule', {
|
|
|
18647
18672
|
const childrenField = treeOpts.children || treeOpts.childrenField;
|
|
18648
18673
|
return row[childrenField] && row[childrenField].length;
|
|
18649
18674
|
};
|
|
18650
|
-
const getSeq = (row, $rowIndex, column, $columnIndex) => {
|
|
18675
|
+
const getSeq = (cellValue, row, $rowIndex, column, $columnIndex) => {
|
|
18651
18676
|
const seqOpts = computeSeqOpts.value;
|
|
18652
18677
|
const seqMethod = seqOpts.seqMethod || column.seqMethod;
|
|
18653
18678
|
if (seqMethod) {
|
|
@@ -18660,7 +18685,7 @@ export_hook_hooks.add('tableExportModule', {
|
|
|
18660
18685
|
$columnIndex
|
|
18661
18686
|
});
|
|
18662
18687
|
}
|
|
18663
|
-
return
|
|
18688
|
+
return cellValue;
|
|
18664
18689
|
};
|
|
18665
18690
|
function getHeaderTitle(opts, column) {
|
|
18666
18691
|
const columnOpts = computeColumnOpts.value;
|
|
@@ -18728,8 +18753,11 @@ export_hook_hooks.add('tableExportModule', {
|
|
|
18728
18753
|
} else {
|
|
18729
18754
|
switch (column.type) {
|
|
18730
18755
|
case 'seq':
|
|
18731
|
-
|
|
18732
|
-
|
|
18756
|
+
{
|
|
18757
|
+
const seqVal = path.map((num, i) => i % 2 === 0 ? Number(num) + 1 : '.').join('');
|
|
18758
|
+
cellValue = mode === 'all' ? seqVal : getSeq(seqVal, row, $rowIndex, column, $columnIndex);
|
|
18759
|
+
break;
|
|
18760
|
+
}
|
|
18733
18761
|
case 'checkbox':
|
|
18734
18762
|
cellValue = toBooleanValue($xeTable.isCheckedByCheckboxRow(row));
|
|
18735
18763
|
item._checkboxLabel = checkboxOpts.labelField ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(row, checkboxOpts.labelField) : '';
|
|
@@ -18795,8 +18823,11 @@ export_hook_hooks.add('tableExportModule', {
|
|
|
18795
18823
|
} else {
|
|
18796
18824
|
switch (column.type) {
|
|
18797
18825
|
case 'seq':
|
|
18798
|
-
|
|
18799
|
-
|
|
18826
|
+
{
|
|
18827
|
+
const seqValue = $rowIndex + 1;
|
|
18828
|
+
cellValue = mode === 'all' ? seqValue : getSeq(seqValue, row, $rowIndex, column, $columnIndex);
|
|
18829
|
+
break;
|
|
18830
|
+
}
|
|
18800
18831
|
case 'checkbox':
|
|
18801
18832
|
cellValue = toBooleanValue($xeTable.isCheckedByCheckboxRow(row));
|
|
18802
18833
|
item._checkboxLabel = checkboxOpts.labelField ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(row, checkboxOpts.labelField) : '';
|
|
@@ -21654,7 +21685,7 @@ function handleFilterMethod({
|
|
|
21654
21685
|
const {
|
|
21655
21686
|
data
|
|
21656
21687
|
} = option;
|
|
21657
|
-
const cellValue = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(row, column.
|
|
21688
|
+
const cellValue = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(row, column.field);
|
|
21658
21689
|
/* eslint-disable eqeqeq */
|
|
21659
21690
|
return cellValue == data;
|
|
21660
21691
|
}
|
|
@@ -21666,7 +21697,7 @@ function handleInputFilterMethod({
|
|
|
21666
21697
|
const {
|
|
21667
21698
|
data
|
|
21668
21699
|
} = option;
|
|
21669
|
-
const cellValue = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(row, column.
|
|
21700
|
+
const cellValue = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(row, column.field);
|
|
21670
21701
|
/* eslint-disable eqeqeq */
|
|
21671
21702
|
return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toValueString(cellValue).indexOf(data) > -1;
|
|
21672
21703
|
}
|
|
@@ -21753,7 +21784,7 @@ function getSelectCellValue(renderOpts, {
|
|
|
21753
21784
|
optionProps = {},
|
|
21754
21785
|
optionGroupProps = {}
|
|
21755
21786
|
} = renderOpts;
|
|
21756
|
-
const cellValue = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(row, column.
|
|
21787
|
+
const cellValue = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(row, column.field);
|
|
21757
21788
|
let selectItem;
|
|
21758
21789
|
const labelProp = optionProps.label || 'label';
|
|
21759
21790
|
const valueProp = optionProps.value || 'value';
|
|
@@ -21792,7 +21823,7 @@ function getTreeSelectCellValue(renderOpts, {
|
|
|
21792
21823
|
options,
|
|
21793
21824
|
optionProps = {}
|
|
21794
21825
|
} = renderOpts;
|
|
21795
|
-
const cellValue = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(row, column.
|
|
21826
|
+
const cellValue = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(row, column.field);
|
|
21796
21827
|
const labelProp = optionProps.label || 'label';
|
|
21797
21828
|
const valueProp = optionProps.value || 'value';
|
|
21798
21829
|
const childrenProp = optionProps.children || 'children';
|
|
@@ -21823,23 +21854,23 @@ function handleExportTreeSelectMethod(params) {
|
|
|
21823
21854
|
*/
|
|
21824
21855
|
render_renderer.mixin({
|
|
21825
21856
|
input: {
|
|
21826
|
-
|
|
21827
|
-
|
|
21828
|
-
|
|
21829
|
-
|
|
21830
|
-
|
|
21857
|
+
tableAutoFocus: 'input',
|
|
21858
|
+
renderTableEdit: nativeEditRender,
|
|
21859
|
+
renderTableDefault: nativeEditRender,
|
|
21860
|
+
renderTableFilter: nativeFilterRender,
|
|
21861
|
+
tableFilterDefaultMethod: handleInputFilterMethod
|
|
21831
21862
|
},
|
|
21832
21863
|
textarea: {
|
|
21833
|
-
|
|
21834
|
-
|
|
21864
|
+
tableAutoFocus: 'textarea',
|
|
21865
|
+
renderTableEdit: nativeEditRender
|
|
21835
21866
|
},
|
|
21836
21867
|
select: {
|
|
21837
|
-
|
|
21838
|
-
|
|
21839
|
-
|
|
21868
|
+
renderTableEdit: nativeSelectEditRender,
|
|
21869
|
+
renderTableDefault: nativeSelectEditRender,
|
|
21870
|
+
renderTableCell(renderOpts, params) {
|
|
21840
21871
|
return getCellLabelVNs(renderOpts, params, getSelectCellValue(renderOpts, params));
|
|
21841
21872
|
},
|
|
21842
|
-
|
|
21873
|
+
renderTableFilter(renderOpts, params) {
|
|
21843
21874
|
const {
|
|
21844
21875
|
column
|
|
21845
21876
|
} = params;
|
|
@@ -21852,13 +21883,13 @@ render_renderer.mixin({
|
|
|
21852
21883
|
}, renderOpts.optionGroups ? renderNativeOptgroups(renderOpts, params, renderNativeOptions) : renderNativeOptions(renderOpts.options, renderOpts, params));
|
|
21853
21884
|
});
|
|
21854
21885
|
},
|
|
21855
|
-
|
|
21856
|
-
|
|
21886
|
+
tableFilterDefaultMethod: handleFilterMethod,
|
|
21887
|
+
tableExportMethod: handleExportSelectMethod
|
|
21857
21888
|
},
|
|
21858
21889
|
VxeInput: {
|
|
21859
|
-
|
|
21860
|
-
|
|
21861
|
-
|
|
21890
|
+
tableAutoFocus: 'input',
|
|
21891
|
+
renderTableEdit: defaultEditRender,
|
|
21892
|
+
renderTableCell(renderOpts, params) {
|
|
21862
21893
|
const {
|
|
21863
21894
|
props = {}
|
|
21864
21895
|
} = renderOpts;
|
|
@@ -21867,7 +21898,7 @@ render_renderer.mixin({
|
|
|
21867
21898
|
column
|
|
21868
21899
|
} = params;
|
|
21869
21900
|
const digits = props.digits || render_getConfig().input?.digits || 2;
|
|
21870
|
-
let cellValue = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(row, column.
|
|
21901
|
+
let cellValue = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(row, column.field);
|
|
21871
21902
|
if (cellValue) {
|
|
21872
21903
|
switch (props.type) {
|
|
21873
21904
|
case 'date':
|
|
@@ -21884,14 +21915,14 @@ render_renderer.mixin({
|
|
|
21884
21915
|
}
|
|
21885
21916
|
return getCellLabelVNs(renderOpts, params, cellValue);
|
|
21886
21917
|
},
|
|
21887
|
-
|
|
21888
|
-
|
|
21889
|
-
|
|
21918
|
+
renderTableDefault: defaultEditRender,
|
|
21919
|
+
renderTableFilter: defaultFilterRender,
|
|
21920
|
+
tableFilterDefaultMethod: handleInputFilterMethod
|
|
21890
21921
|
},
|
|
21891
21922
|
VxeNumberInput: {
|
|
21892
|
-
|
|
21893
|
-
|
|
21894
|
-
|
|
21923
|
+
tableAutoFocus: 'input',
|
|
21924
|
+
renderTableEdit: defaultEditRender,
|
|
21925
|
+
renderTableCell(renderOpts, params) {
|
|
21895
21926
|
const {
|
|
21896
21927
|
props = {}
|
|
21897
21928
|
} = renderOpts;
|
|
@@ -21900,7 +21931,7 @@ render_renderer.mixin({
|
|
|
21900
21931
|
column
|
|
21901
21932
|
} = params;
|
|
21902
21933
|
const digits = props.digits || render_getConfig().numberInput?.digits || 2;
|
|
21903
|
-
let cellValue = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(row, column.
|
|
21934
|
+
let cellValue = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(row, column.field);
|
|
21904
21935
|
if (cellValue) {
|
|
21905
21936
|
switch (props.type) {
|
|
21906
21937
|
case 'float':
|
|
@@ -21910,14 +21941,14 @@ render_renderer.mixin({
|
|
|
21910
21941
|
}
|
|
21911
21942
|
return getCellLabelVNs(renderOpts, params, cellValue);
|
|
21912
21943
|
},
|
|
21913
|
-
|
|
21914
|
-
|
|
21915
|
-
|
|
21944
|
+
renderTableDefault: defaultEditRender,
|
|
21945
|
+
renderTableFilter: defaultFilterRender,
|
|
21946
|
+
tableFilterDefaultMethod: handleInputFilterMethod
|
|
21916
21947
|
},
|
|
21917
21948
|
VxeDatePicker: {
|
|
21918
|
-
|
|
21919
|
-
|
|
21920
|
-
|
|
21949
|
+
tableAutoFocus: 'input',
|
|
21950
|
+
renderTableEdit: defaultEditRender,
|
|
21951
|
+
renderTableCell(renderOpts, params) {
|
|
21921
21952
|
const {
|
|
21922
21953
|
props = {}
|
|
21923
21954
|
} = renderOpts;
|
|
@@ -21925,7 +21956,7 @@ render_renderer.mixin({
|
|
|
21925
21956
|
row,
|
|
21926
21957
|
column
|
|
21927
21958
|
} = params;
|
|
21928
|
-
let cellValue = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(row, column.
|
|
21959
|
+
let cellValue = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(row, column.field);
|
|
21929
21960
|
if (cellValue) {
|
|
21930
21961
|
switch (props.type) {
|
|
21931
21962
|
case 'date':
|
|
@@ -21939,18 +21970,18 @@ render_renderer.mixin({
|
|
|
21939
21970
|
}
|
|
21940
21971
|
return getCellLabelVNs(renderOpts, params, cellValue);
|
|
21941
21972
|
},
|
|
21942
|
-
|
|
21943
|
-
|
|
21944
|
-
|
|
21973
|
+
renderTableDefault: defaultEditRender,
|
|
21974
|
+
renderTableFilter: defaultFilterRender,
|
|
21975
|
+
tableFilterDefaultMethod: handleFilterMethod
|
|
21945
21976
|
},
|
|
21946
21977
|
VxeTextarea: {
|
|
21947
|
-
|
|
21978
|
+
tableAutoFocus: 'VxeTextarea'
|
|
21948
21979
|
},
|
|
21949
21980
|
VxeButton: {
|
|
21950
|
-
|
|
21981
|
+
renderTableDefault: buttonCellRender
|
|
21951
21982
|
},
|
|
21952
21983
|
VxeButtonGroup: {
|
|
21953
|
-
|
|
21984
|
+
renderTableDefault(renderOpts, params) {
|
|
21954
21985
|
const {
|
|
21955
21986
|
options
|
|
21956
21987
|
} = renderOpts;
|
|
@@ -21962,13 +21993,13 @@ render_renderer.mixin({
|
|
|
21962
21993
|
}
|
|
21963
21994
|
},
|
|
21964
21995
|
VxeSelect: {
|
|
21965
|
-
|
|
21966
|
-
|
|
21967
|
-
|
|
21968
|
-
|
|
21996
|
+
tableAutoFocus: 'input',
|
|
21997
|
+
renderTableEdit: defaultSelectEditRender,
|
|
21998
|
+
renderTableDefault: defaultSelectEditRender,
|
|
21999
|
+
renderTableCell(renderOpts, params) {
|
|
21969
22000
|
return getCellLabelVNs(renderOpts, params, getSelectCellValue(renderOpts, params));
|
|
21970
22001
|
},
|
|
21971
|
-
|
|
22002
|
+
renderTableFilter(renderOpts, params) {
|
|
21972
22003
|
const {
|
|
21973
22004
|
column
|
|
21974
22005
|
} = params;
|
|
@@ -21992,35 +22023,49 @@ render_renderer.mixin({
|
|
|
21992
22023
|
});
|
|
21993
22024
|
});
|
|
21994
22025
|
},
|
|
21995
|
-
|
|
21996
|
-
|
|
22026
|
+
tableFilterDefaultMethod: handleFilterMethod,
|
|
22027
|
+
tableExportMethod: handleExportSelectMethod
|
|
21997
22028
|
},
|
|
21998
22029
|
VxeTreeSelect: {
|
|
21999
|
-
|
|
22000
|
-
|
|
22001
|
-
|
|
22030
|
+
tableAutoFocus: 'input',
|
|
22031
|
+
renderTableEdit: defaultTreeSelectEditRender,
|
|
22032
|
+
renderTableCell(renderOpts, params) {
|
|
22002
22033
|
return getCellLabelVNs(renderOpts, params, getTreeSelectCellValue(renderOpts, params));
|
|
22003
22034
|
},
|
|
22004
|
-
|
|
22035
|
+
tableExportMethod: handleExportTreeSelectMethod
|
|
22036
|
+
},
|
|
22037
|
+
VxeIconPicker: {
|
|
22038
|
+
tableAutoFocus: 'input',
|
|
22039
|
+
renderTableEdit: defaultEditRender,
|
|
22040
|
+
renderTableCell(renderOpts, params) {
|
|
22041
|
+
const {
|
|
22042
|
+
row,
|
|
22043
|
+
column
|
|
22044
|
+
} = params;
|
|
22045
|
+
const cellValue = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(row, column.field);
|
|
22046
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('i', {
|
|
22047
|
+
class: cellValue
|
|
22048
|
+
});
|
|
22049
|
+
}
|
|
22005
22050
|
},
|
|
22006
22051
|
VxeRadioGroup: {
|
|
22007
|
-
|
|
22052
|
+
renderTableDefault: radioAndCheckboxEditRender
|
|
22008
22053
|
},
|
|
22009
22054
|
VxeCheckboxGroup: {
|
|
22010
|
-
|
|
22055
|
+
renderTableDefault: radioAndCheckboxEditRender
|
|
22011
22056
|
},
|
|
22012
22057
|
VxeSwitch: {
|
|
22013
|
-
|
|
22014
|
-
|
|
22015
|
-
|
|
22058
|
+
tableAutoFocus: 'button',
|
|
22059
|
+
renderTableEdit: defaultEditRender,
|
|
22060
|
+
renderTableDefault: defaultEditRender
|
|
22016
22061
|
},
|
|
22017
22062
|
VxeUpload: {
|
|
22018
|
-
|
|
22019
|
-
|
|
22020
|
-
|
|
22063
|
+
renderTableEdit: defaultEditRender,
|
|
22064
|
+
renderTableCell: defaultEditRender,
|
|
22065
|
+
renderTableDefault: defaultEditRender
|
|
22021
22066
|
},
|
|
22022
22067
|
VxeImage: {
|
|
22023
|
-
|
|
22068
|
+
renderTableDefault(renderOpts, params) {
|
|
22024
22069
|
const {
|
|
22025
22070
|
row,
|
|
22026
22071
|
column
|
|
@@ -22037,7 +22082,7 @@ render_renderer.mixin({
|
|
|
22037
22082
|
}
|
|
22038
22083
|
},
|
|
22039
22084
|
VxeImageGroup: {
|
|
22040
|
-
|
|
22085
|
+
renderTableDefault(renderOpts, params) {
|
|
22041
22086
|
const {
|
|
22042
22087
|
row,
|
|
22043
22088
|
column
|
|
@@ -22055,9 +22100,9 @@ render_renderer.mixin({
|
|
|
22055
22100
|
},
|
|
22056
22101
|
// 以下已废弃
|
|
22057
22102
|
$input: {
|
|
22058
|
-
|
|
22059
|
-
|
|
22060
|
-
|
|
22103
|
+
tableAutoFocus: '.vxe-input--inner',
|
|
22104
|
+
renderTableEdit: oldEditRender,
|
|
22105
|
+
renderTableCell(renderOpts, params) {
|
|
22061
22106
|
const {
|
|
22062
22107
|
props = {}
|
|
22063
22108
|
} = renderOpts;
|
|
@@ -22066,7 +22111,7 @@ render_renderer.mixin({
|
|
|
22066
22111
|
column
|
|
22067
22112
|
} = params;
|
|
22068
22113
|
const digits = props.digits || render_getConfig().input?.digits || 2;
|
|
22069
|
-
let cellValue = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(row, column.
|
|
22114
|
+
let cellValue = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(row, column.field);
|
|
22070
22115
|
if (cellValue) {
|
|
22071
22116
|
switch (props.type) {
|
|
22072
22117
|
case 'date':
|
|
@@ -22082,27 +22127,27 @@ render_renderer.mixin({
|
|
|
22082
22127
|
}
|
|
22083
22128
|
return getCellLabelVNs(renderOpts, params, cellValue);
|
|
22084
22129
|
},
|
|
22085
|
-
|
|
22086
|
-
|
|
22087
|
-
|
|
22130
|
+
renderTableDefault: oldEditRender,
|
|
22131
|
+
renderTableFilter: oldFilterRender,
|
|
22132
|
+
tableFilterDefaultMethod: handleInputFilterMethod
|
|
22088
22133
|
},
|
|
22089
22134
|
$textarea: {
|
|
22090
|
-
|
|
22135
|
+
tableAutoFocus: '.vxe-textarea--inner'
|
|
22091
22136
|
},
|
|
22092
22137
|
$button: {
|
|
22093
|
-
|
|
22138
|
+
renderTableDefault: oldButtonEditRender
|
|
22094
22139
|
},
|
|
22095
22140
|
$buttons: {
|
|
22096
|
-
|
|
22141
|
+
renderTableDefault: oldButtonsEditRender
|
|
22097
22142
|
},
|
|
22098
22143
|
$select: {
|
|
22099
|
-
|
|
22100
|
-
|
|
22101
|
-
|
|
22102
|
-
|
|
22144
|
+
tableAutoFocus: '.vxe-input--inner',
|
|
22145
|
+
renderTableEdit: oldSelectEditRender,
|
|
22146
|
+
renderTableDefault: oldSelectEditRender,
|
|
22147
|
+
renderTableCell(renderOpts, params) {
|
|
22103
22148
|
return getCellLabelVNs(renderOpts, params, getSelectCellValue(renderOpts, params));
|
|
22104
22149
|
},
|
|
22105
|
-
|
|
22150
|
+
renderTableFilter(renderOpts, params) {
|
|
22106
22151
|
const {
|
|
22107
22152
|
column
|
|
22108
22153
|
} = params;
|
|
@@ -22126,19 +22171,19 @@ render_renderer.mixin({
|
|
|
22126
22171
|
});
|
|
22127
22172
|
});
|
|
22128
22173
|
},
|
|
22129
|
-
|
|
22130
|
-
|
|
22174
|
+
tableFilterDefaultMethod: handleFilterMethod,
|
|
22175
|
+
tableExportMethod: handleExportSelectMethod
|
|
22131
22176
|
},
|
|
22132
22177
|
$radio: {
|
|
22133
|
-
|
|
22178
|
+
tableAutoFocus: '.vxe-radio--input'
|
|
22134
22179
|
},
|
|
22135
22180
|
$checkbox: {
|
|
22136
|
-
|
|
22181
|
+
tableAutoFocus: '.vxe-checkbox--input'
|
|
22137
22182
|
},
|
|
22138
22183
|
$switch: {
|
|
22139
|
-
|
|
22140
|
-
|
|
22141
|
-
|
|
22184
|
+
tableAutoFocus: '.vxe-switch--button',
|
|
22185
|
+
renderTableEdit: oldEditRender,
|
|
22186
|
+
renderTableDefault: oldEditRender
|
|
22142
22187
|
}
|
|
22143
22188
|
// 以上已废弃
|
|
22144
22189
|
});
|
|
@@ -22320,7 +22365,9 @@ const {
|
|
|
22320
22365
|
}, 350);
|
|
22321
22366
|
}
|
|
22322
22367
|
};
|
|
22323
|
-
const refreshEvent =
|
|
22368
|
+
const refreshEvent = ({
|
|
22369
|
+
$event
|
|
22370
|
+
}) => {
|
|
22324
22371
|
const {
|
|
22325
22372
|
isRefresh
|
|
22326
22373
|
} = reactData;
|
|
@@ -22340,15 +22387,17 @@ const {
|
|
|
22340
22387
|
reactData.isRefresh = true;
|
|
22341
22388
|
$xeGrid.triggerToolbarCommitEvent({
|
|
22342
22389
|
code: refreshOpts.code || 'reload'
|
|
22343
|
-
},
|
|
22390
|
+
}, $event).catch(e => e).then(() => {
|
|
22344
22391
|
reactData.isRefresh = false;
|
|
22345
22392
|
});
|
|
22346
22393
|
}
|
|
22347
22394
|
}
|
|
22348
22395
|
};
|
|
22349
|
-
const zoomEvent =
|
|
22396
|
+
const zoomEvent = ({
|
|
22397
|
+
$event
|
|
22398
|
+
}) => {
|
|
22350
22399
|
if ($xeGrid) {
|
|
22351
|
-
$xeGrid.triggerZoomEvent(
|
|
22400
|
+
$xeGrid.triggerZoomEvent($event);
|
|
22352
22401
|
}
|
|
22353
22402
|
};
|
|
22354
22403
|
const btnEvent = (evnt, item) => {
|
|
@@ -22458,7 +22507,9 @@ const {
|
|
|
22458
22507
|
round: child.round,
|
|
22459
22508
|
status: child.status,
|
|
22460
22509
|
content: child.name,
|
|
22461
|
-
onClick:
|
|
22510
|
+
onClick: ({
|
|
22511
|
+
$event
|
|
22512
|
+
}) => isBtn ? btnEvent($event, child) : tolEvent($event, child)
|
|
22462
22513
|
}) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)();
|
|
22463
22514
|
});
|
|
22464
22515
|
}
|
|
@@ -22514,7 +22565,9 @@ const {
|
|
|
22514
22565
|
destroyOnClose: item.destroyOnClose,
|
|
22515
22566
|
placement: item.placement,
|
|
22516
22567
|
transfer: item.transfer,
|
|
22517
|
-
onClick:
|
|
22568
|
+
onClick: ({
|
|
22569
|
+
$event
|
|
22570
|
+
}) => btnEvent($event, item)
|
|
22518
22571
|
}, dropdowns && dropdowns.length ? {
|
|
22519
22572
|
dropdowns: () => renderDropdowns(item, true)
|
|
22520
22573
|
} : {}));
|
|
@@ -22577,7 +22630,9 @@ const {
|
|
|
22577
22630
|
destroyOnClose: item.destroyOnClose,
|
|
22578
22631
|
placement: item.placement,
|
|
22579
22632
|
transfer: item.transfer,
|
|
22580
|
-
onClick:
|
|
22633
|
+
onClick: ({
|
|
22634
|
+
$event
|
|
22635
|
+
}) => tolEvent($event, item)
|
|
22581
22636
|
}, dropdowns && dropdowns.length ? {
|
|
22582
22637
|
dropdowns: () => renderDropdowns(item, false)
|
|
22583
22638
|
} : {}));
|
|
@@ -22969,6 +23024,17 @@ const gridComponentEmits = [...emits, 'page-change', 'form-submit', 'form-submit
|
|
|
22969
23024
|
});
|
|
22970
23025
|
}
|
|
22971
23026
|
};
|
|
23027
|
+
const getFormData = () => {
|
|
23028
|
+
const {
|
|
23029
|
+
proxyConfig
|
|
23030
|
+
} = props;
|
|
23031
|
+
const {
|
|
23032
|
+
formData
|
|
23033
|
+
} = reactData;
|
|
23034
|
+
const proxyOpts = computeProxyOpts.value;
|
|
23035
|
+
const formOpts = computeFormOpts.value;
|
|
23036
|
+
return proxyConfig && isEnableConf(proxyOpts) && proxyOpts.form ? formData : formOpts.data;
|
|
23037
|
+
};
|
|
22972
23038
|
const initPages = () => {
|
|
22973
23039
|
const {
|
|
22974
23040
|
tablePage
|
|
@@ -23496,7 +23562,7 @@ const gridComponentEmits = [...emits, 'page-change', 'form-submit', 'form-submit
|
|
|
23496
23562
|
const formOpts = computeFormOpts.value;
|
|
23497
23563
|
if (proxyConfig && isEnableConf(proxyOpts)) {
|
|
23498
23564
|
if (formConfig && isEnableConf(formOpts) && proxyOpts.form && formOpts.items) {
|
|
23499
|
-
const
|
|
23565
|
+
const fData = {};
|
|
23500
23566
|
formOpts.items.forEach(item => {
|
|
23501
23567
|
const {
|
|
23502
23568
|
field,
|
|
@@ -23516,10 +23582,10 @@ const gridComponentEmits = [...emits, 'page-change', 'form-submit', 'form-submit
|
|
|
23516
23582
|
itemValue = defaultValue;
|
|
23517
23583
|
}
|
|
23518
23584
|
}
|
|
23519
|
-
|
|
23585
|
+
fData[field] = itemValue;
|
|
23520
23586
|
}
|
|
23521
23587
|
});
|
|
23522
|
-
reactData.formData =
|
|
23588
|
+
reactData.formData = fData;
|
|
23523
23589
|
}
|
|
23524
23590
|
if (!proxyInited) {
|
|
23525
23591
|
reactData.proxyInited = true;
|
|
@@ -23552,8 +23618,7 @@ const gridComponentEmits = [...emits, 'page-change', 'form-submit', 'form-submit
|
|
|
23552
23618
|
validConfig
|
|
23553
23619
|
} = props;
|
|
23554
23620
|
const {
|
|
23555
|
-
tablePage
|
|
23556
|
-
formData
|
|
23621
|
+
tablePage
|
|
23557
23622
|
} = reactData;
|
|
23558
23623
|
const isActiveMsg = computeIsActiveMsg.value;
|
|
23559
23624
|
const isRespMsg = computeIsRespMsg.value;
|
|
@@ -23571,6 +23636,7 @@ const gridComponentEmits = [...emits, 'page-change', 'form-submit', 'form-submit
|
|
|
23571
23636
|
} = proxyOpts;
|
|
23572
23637
|
const resConfigs = proxyOpts.response || proxyOpts.props || {};
|
|
23573
23638
|
const $xeTable = refTable.value;
|
|
23639
|
+
const formData = getFormData();
|
|
23574
23640
|
let button = null;
|
|
23575
23641
|
let code = null;
|
|
23576
23642
|
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isString(proxyTarget)) {
|
|
@@ -23980,6 +24046,7 @@ const gridComponentEmits = [...emits, 'page-change', 'form-submit', 'form-submit
|
|
|
23980
24046
|
revert() {
|
|
23981
24047
|
return handleZoom();
|
|
23982
24048
|
},
|
|
24049
|
+
getFormData,
|
|
23983
24050
|
getFormItems(itemIndex) {
|
|
23984
24051
|
const formOpts = computeFormOpts.value;
|
|
23985
24052
|
const {
|
|
@@ -24005,7 +24072,7 @@ const gridComponentEmits = [...emits, 'page-change', 'form-submit', 'form-submit
|
|
|
24005
24072
|
return {
|
|
24006
24073
|
data: reactData.tableData,
|
|
24007
24074
|
filter: reactData.filterData,
|
|
24008
|
-
form:
|
|
24075
|
+
form: getFormData(),
|
|
24009
24076
|
sort: sortData.length ? sortData[0] : {},
|
|
24010
24077
|
sorts: sortData,
|
|
24011
24078
|
pager: reactData.tablePage,
|
|
@@ -24173,15 +24240,14 @@ const gridComponentEmits = [...emits, 'page-change', 'form-submit', 'form-submit
|
|
|
24173
24240
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.onMounted)(() => {
|
|
24174
24241
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(() => {
|
|
24175
24242
|
const {
|
|
24176
|
-
|
|
24177
|
-
columns,
|
|
24178
|
-
proxyConfig
|
|
24243
|
+
columns
|
|
24179
24244
|
} = props;
|
|
24180
|
-
const
|
|
24181
|
-
const
|
|
24182
|
-
|
|
24183
|
-
|
|
24184
|
-
|
|
24245
|
+
// const { data, columns, proxyConfig } = props
|
|
24246
|
+
// const proxyOpts = computeProxyOpts.value
|
|
24247
|
+
// const formOpts = computeFormOpts.value
|
|
24248
|
+
// if (isEnableConf(proxyConfig) && (data || (proxyOpts.form && formOpts.data))) {
|
|
24249
|
+
// errLog('vxe.error.errConflicts', ['grid.data', 'grid.proxy-config'])
|
|
24250
|
+
// }
|
|
24185
24251
|
// if (process.env.VUE_APP_VXE_ENV === 'development') {
|
|
24186
24252
|
// if (proxyOpts.props) {
|
|
24187
24253
|
// warnLog('vxe.error.delProp', ['proxy-config.props', 'proxy-config.response'])
|
|
@@ -24558,7 +24624,9 @@ const Grid = VxeGrid;
|
|
|
24558
24624
|
reUpload: '重新上传',
|
|
24559
24625
|
uploadProgress: '上传中 {0}%',
|
|
24560
24626
|
uploadErr: '上传失败',
|
|
24561
|
-
uploadSuccess: '上传成功'
|
|
24627
|
+
uploadSuccess: '上传成功',
|
|
24628
|
+
moreBtnText: '更多({0})',
|
|
24629
|
+
viewItemTitle: '点击查看'
|
|
24562
24630
|
},
|
|
24563
24631
|
formDesign: {
|
|
24564
24632
|
formName: '表单名称',
|
|
@@ -24589,6 +24657,7 @@ const Grid = VxeGrid;
|
|
|
24589
24657
|
group: {
|
|
24590
24658
|
base: '基础控件',
|
|
24591
24659
|
layout: '布局控件',
|
|
24660
|
+
system: '系统控件',
|
|
24592
24661
|
advanced: '高级控件'
|
|
24593
24662
|
},
|
|
24594
24663
|
copyTitle: '副本_{0}',
|