vxe-table 4.11.16 → 4.11.18

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.
Files changed (61) hide show
  1. package/es/grid/src/grid.js +15 -29
  2. package/es/style.css +1 -1
  3. package/es/table/module/custom/panel.js +19 -21
  4. package/es/table/module/edit/hook.js +3 -5
  5. package/es/table/module/export/export-panel.js +17 -19
  6. package/es/table/module/export/hook.js +5 -11
  7. package/es/table/module/export/import-panel.js +11 -13
  8. package/es/table/module/validator/hook.js +1 -3
  9. package/es/table/render/index.js +90 -61
  10. package/es/table/src/columnInfo.js +26 -28
  11. package/es/table/src/table.js +132 -89
  12. package/es/toolbar/src/toolbar.js +16 -24
  13. package/es/ui/index.js +1 -1
  14. package/es/ui/src/log.js +1 -1
  15. package/lib/grid/src/grid.js +15 -29
  16. package/lib/grid/src/grid.min.js +1 -1
  17. package/lib/index.umd.js +361 -312
  18. package/lib/index.umd.min.js +1 -1
  19. package/lib/style.css +1 -1
  20. package/lib/table/module/custom/panel.js +21 -23
  21. package/lib/table/module/custom/panel.min.js +1 -1
  22. package/lib/table/module/edit/hook.js +3 -5
  23. package/lib/table/module/edit/hook.min.js +1 -1
  24. package/lib/table/module/export/export-panel.js +17 -19
  25. package/lib/table/module/export/export-panel.min.js +1 -1
  26. package/lib/table/module/export/hook.js +5 -11
  27. package/lib/table/module/export/hook.min.js +1 -1
  28. package/lib/table/module/export/import-panel.js +11 -13
  29. package/lib/table/module/export/import-panel.min.js +1 -1
  30. package/lib/table/module/validator/hook.js +1 -3
  31. package/lib/table/module/validator/hook.min.js +1 -1
  32. package/lib/table/render/index.js +98 -66
  33. package/lib/table/render/index.min.js +1 -1
  34. package/lib/table/src/columnInfo.js +30 -32
  35. package/lib/table/src/columnInfo.min.js +1 -1
  36. package/lib/table/src/table.js +138 -85
  37. package/lib/table/src/table.min.js +1 -1
  38. package/lib/toolbar/src/toolbar.js +16 -24
  39. package/lib/toolbar/src/toolbar.min.js +1 -1
  40. package/lib/ui/index.js +1 -1
  41. package/lib/ui/index.min.js +1 -1
  42. package/lib/ui/src/log.js +1 -1
  43. package/lib/ui/src/log.min.js +1 -1
  44. package/package.json +2 -2
  45. package/packages/grid/src/grid.ts +16 -29
  46. package/packages/table/module/custom/panel.ts +19 -21
  47. package/packages/table/module/edit/hook.ts +3 -5
  48. package/packages/table/module/export/export-panel.ts +17 -19
  49. package/packages/table/module/export/hook.ts +5 -11
  50. package/packages/table/module/export/import-panel.ts +11 -13
  51. package/packages/table/module/validator/hook.ts +1 -3
  52. package/packages/table/render/index.ts +89 -59
  53. package/packages/table/src/columnInfo.ts +26 -28
  54. package/packages/table/src/table.ts +128 -85
  55. package/packages/toolbar/src/toolbar.ts +16 -24
  56. /package/es/{iconfont.1741051544689.ttf → iconfont.1741224125327.ttf} +0 -0
  57. /package/es/{iconfont.1741051544689.woff → iconfont.1741224125327.woff} +0 -0
  58. /package/es/{iconfont.1741051544689.woff2 → iconfont.1741224125327.woff2} +0 -0
  59. /package/lib/{iconfont.1741051544689.ttf → iconfont.1741224125327.ttf} +0 -0
  60. /package/lib/{iconfont.1741051544689.woff → iconfont.1741224125327.woff} +0 -0
  61. /package/lib/{iconfont.1741051544689.woff2 → iconfont.1741224125327.woff2} +0 -0
package/lib/index.umd.js CHANGED
@@ -3051,7 +3051,7 @@ function eqEmptyValue(cellValue) {
3051
3051
  ;// ./packages/ui/index.ts
3052
3052
 
3053
3053
 
3054
- const version = "4.11.15";
3054
+ const version = "4.11.18";
3055
3055
  core_.VxeUI.version = version;
3056
3056
  core_.VxeUI.tableVersion = version;
3057
3057
  core_.VxeUI.setConfig({
@@ -3499,7 +3499,7 @@ var es_iterator_some = __webpack_require__(3579);
3499
3499
  const {
3500
3500
  log: log_log
3501
3501
  } = core_.VxeUI;
3502
- const log_version = `table v${"4.11.15"}`;
3502
+ const log_version = `table v${"4.11.18"}`;
3503
3503
  const warnLog = log_log.create('warn', log_version);
3504
3504
  const errLog = log_log.create('error', log_version);
3505
3505
  ;// ./packages/table/src/columnInfo.ts
@@ -3526,40 +3526,38 @@ class ColumnInfo {
3526
3526
  const {
3527
3527
  props: tableProps
3528
3528
  } = $xeTable;
3529
- if (true) {
3530
- const types = ['seq', 'checkbox', 'radio', 'expand', 'html'];
3531
- if (_vm.type && types.indexOf(_vm.type) === -1) {
3532
- warnLog('vxe.error.errProp', [`type=${_vm.type}`, types.join(', ')]);
3533
- }
3534
- if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isBoolean(_vm.cellRender) || _vm.cellRender && !external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isObject(_vm.cellRender)) {
3535
- warnLog('vxe.error.errProp', [`column.cell-render=${_vm.cellRender}`, 'column.cell-render={}']);
3536
- }
3537
- if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isBoolean(_vm.editRender) || _vm.editRender && !external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isObject(_vm.editRender)) {
3538
- warnLog('vxe.error.errProp', [`column.edit-render=${_vm.editRender}`, 'column.edit-render={}']);
3529
+ const types = ['seq', 'checkbox', 'radio', 'expand', 'html'];
3530
+ if (_vm.type && types.indexOf(_vm.type) === -1) {
3531
+ warnLog('vxe.error.errProp', [`type=${_vm.type}`, types.join(', ')]);
3532
+ }
3533
+ if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isBoolean(_vm.cellRender) || _vm.cellRender && !external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isObject(_vm.cellRender)) {
3534
+ warnLog('vxe.error.errProp', [`column.cell-render=${_vm.cellRender}`, 'column.cell-render={}']);
3535
+ }
3536
+ if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isBoolean(_vm.editRender) || _vm.editRender && !external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isObject(_vm.editRender)) {
3537
+ warnLog('vxe.error.errProp', [`column.edit-render=${_vm.editRender}`, 'column.edit-render={}']);
3538
+ }
3539
+ if (_vm.type === 'expand') {
3540
+ const {
3541
+ treeConfig
3542
+ } = tableProps;
3543
+ const {
3544
+ computeTreeOpts
3545
+ } = $xeTable.getComputeMaps();
3546
+ const treeOpts = computeTreeOpts.value;
3547
+ if (treeConfig && (treeOpts.showLine || treeOpts.line)) {
3548
+ errLog('vxe.error.errConflicts', ['tree-config.showLine', 'column.type=expand']);
3539
3549
  }
3540
- if (_vm.type === 'expand') {
3541
- const {
3542
- treeConfig
3543
- } = tableProps;
3544
- const {
3545
- computeTreeOpts
3546
- } = $xeTable.getComputeMaps();
3547
- const treeOpts = computeTreeOpts.value;
3548
- if (treeConfig && (treeOpts.showLine || treeOpts.line)) {
3549
- errLog('vxe.error.errConflicts', ['tree-config.showLine', 'column.type=expand']);
3550
+ }
3551
+ if (formatter) {
3552
+ if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isString(formatter)) {
3553
+ const gFormatOpts = columnInfo_formats.get(formatter) || (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default())[formatter];
3554
+ if (!gFormatOpts || !external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(gFormatOpts.tableCellFormatMethod || gFormatOpts.cellFormatMethod)) {
3555
+ errLog('vxe.error.notFormats', [formatter]);
3550
3556
  }
3551
- }
3552
- if (formatter) {
3553
- if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isString(formatter)) {
3554
- const gFormatOpts = columnInfo_formats.get(formatter) || (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default())[formatter];
3555
- if (!gFormatOpts || !external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(gFormatOpts.tableCellFormatMethod || gFormatOpts.cellFormatMethod)) {
3556
- errLog('vxe.error.notFormats', [formatter]);
3557
- }
3558
- } else if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(formatter)) {
3559
- const gFormatOpts = columnInfo_formats.get(formatter[0]) || (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default())[formatter[0]];
3560
- if (!gFormatOpts || !external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(gFormatOpts.tableCellFormatMethod || gFormatOpts.cellFormatMethod)) {
3561
- errLog('vxe.error.notFormats', [formatter[0]]);
3562
- }
3557
+ } else if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(formatter)) {
3558
+ const gFormatOpts = columnInfo_formats.get(formatter[0]) || (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default())[formatter[0]];
3559
+ if (!gFormatOpts || !external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(gFormatOpts.tableCellFormatMethod || gFormatOpts.cellFormatMethod)) {
3560
+ errLog('vxe.error.notFormats', [formatter[0]]);
3563
3561
  }
3564
3562
  }
3565
3563
  }
@@ -9164,29 +9162,27 @@ const {
9164
9162
  }
9165
9163
  return renderSimplePanel();
9166
9164
  };
9167
- if (true) {
9168
- (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(() => {
9169
- const customOpts = computeCustomOpts.value;
9170
- const {
9171
- mode
9172
- } = customOpts;
9173
- if (!VxeUIModalComponent) {
9174
- errLog('vxe.error.reqComp', ['vxe-modal']);
9175
- }
9176
- if (!VxeUIDrawerComponent && mode === 'drawer') {
9177
- errLog('vxe.error.reqComp', ['vxe-drawer']);
9178
- }
9179
- if (!VxeUIButtonComponent) {
9180
- errLog('vxe.error.reqComp', ['vxe-button']);
9181
- }
9182
- if (!VxeUINumberInputComponent) {
9183
- errLog('vxe.error.reqComp', ['vxe-number-input']);
9184
- }
9185
- if (!VxeUIRadioGroupComponent) {
9186
- errLog('vxe.error.reqComp', ['vxe-radio-group']);
9187
- }
9188
- });
9189
- }
9165
+ (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(() => {
9166
+ const customOpts = computeCustomOpts.value;
9167
+ const {
9168
+ mode
9169
+ } = customOpts;
9170
+ if (!VxeUIModalComponent) {
9171
+ errLog('vxe.error.reqComp', ['vxe-modal']);
9172
+ }
9173
+ if (!VxeUIDrawerComponent && mode === 'drawer') {
9174
+ errLog('vxe.error.reqComp', ['vxe-drawer']);
9175
+ }
9176
+ if (!VxeUIButtonComponent) {
9177
+ errLog('vxe.error.reqComp', ['vxe-button']);
9178
+ }
9179
+ if (!VxeUINumberInputComponent) {
9180
+ errLog('vxe.error.reqComp', ['vxe-number-input']);
9181
+ }
9182
+ if (!VxeUIRadioGroupComponent) {
9183
+ errLog('vxe.error.reqComp', ['vxe-radio-group']);
9184
+ }
9185
+ });
9190
9186
  return renderVN;
9191
9187
  }
9192
9188
  }));
@@ -9618,19 +9614,17 @@ const {
9618
9614
  }
9619
9615
  }) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)();
9620
9616
  };
9621
- if (true) {
9622
- (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(() => {
9623
- if (!VxeUIModalComponent) {
9624
- errLog('vxe.error.reqComp', ['vxe-modal']);
9625
- }
9626
- if (!VxeUIButtonComponent) {
9627
- errLog('vxe.error.reqComp', ['vxe-button']);
9628
- }
9629
- if (!VxeUISelectComponent) {
9630
- errLog('vxe.error.reqComp', ['vxe-select']);
9631
- }
9632
- });
9633
- }
9617
+ (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(() => {
9618
+ if (!VxeUIModalComponent) {
9619
+ errLog('vxe.error.reqComp', ['vxe-modal']);
9620
+ }
9621
+ if (!VxeUIButtonComponent) {
9622
+ errLog('vxe.error.reqComp', ['vxe-button']);
9623
+ }
9624
+ if (!VxeUISelectComponent) {
9625
+ errLog('vxe.error.reqComp', ['vxe-select']);
9626
+ }
9627
+ });
9634
9628
  return renderVN;
9635
9629
  }
9636
9630
  }));
@@ -10068,25 +10062,23 @@ const {
10068
10062
  }
10069
10063
  }) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)();
10070
10064
  };
10071
- if (true) {
10072
- (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(() => {
10073
- if (!VxeUIModalComponent) {
10074
- errLog('vxe.error.reqComp', ['vxe-modal']);
10075
- }
10076
- if (!VxeUIButtonComponent) {
10077
- errLog('vxe.error.reqComp', ['vxe-button']);
10078
- }
10079
- if (!VxeUISelectComponent) {
10080
- errLog('vxe.error.reqComp', ['vxe-select']);
10081
- }
10082
- if (!VxeUIInputComponent) {
10083
- errLog('vxe.error.reqComp', ['vxe-input']);
10084
- }
10085
- if (!VxeUICheckboxComponent) {
10086
- errLog('vxe.error.reqComp', ['vxe-checkbox']);
10087
- }
10088
- });
10089
- }
10065
+ (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(() => {
10066
+ if (!VxeUIModalComponent) {
10067
+ errLog('vxe.error.reqComp', ['vxe-modal']);
10068
+ }
10069
+ if (!VxeUIButtonComponent) {
10070
+ errLog('vxe.error.reqComp', ['vxe-button']);
10071
+ }
10072
+ if (!VxeUISelectComponent) {
10073
+ errLog('vxe.error.reqComp', ['vxe-select']);
10074
+ }
10075
+ if (!VxeUIInputComponent) {
10076
+ errLog('vxe.error.reqComp', ['vxe-input']);
10077
+ }
10078
+ if (!VxeUICheckboxComponent) {
10079
+ errLog('vxe.error.reqComp', ['vxe-checkbox']);
10080
+ }
10081
+ });
10090
10082
  return renderVN;
10091
10083
  }
10092
10084
  }));
@@ -11639,14 +11631,12 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
11639
11631
  if (expandColumn && expandOpts.mode !== 'fixed' && mouseOpts.area) {
11640
11632
  errLog('vxe.error.errConflicts', ['mouse-config.area', 'column.type=expand']);
11641
11633
  }
11642
- if (true) {
11643
- if (htmlColumn) {
11644
- if (!columnOpts.useKey) {
11645
- errLog('vxe.error.reqProp', ['column-config.useKey & column.type=html']);
11646
- }
11647
- if (!rowOpts.useKey) {
11648
- errLog('vxe.error.reqProp', ['row-config.useKey & column.type=html']);
11649
- }
11634
+ if (htmlColumn) {
11635
+ if (!columnOpts.useKey) {
11636
+ errLog('vxe.error.reqProp', ['column-config.useKey & column.type=html']);
11637
+ }
11638
+ if (!rowOpts.useKey) {
11639
+ errLog('vxe.error.reqProp', ['row-config.useKey & column.type=html']);
11650
11640
  }
11651
11641
  }
11652
11642
  reactData.isGroup = isGroup;
@@ -13325,28 +13315,26 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
13325
13315
  if (treeConfig) {
13326
13316
  if (transform) {
13327
13317
  // 树结构自动转换
13328
- if (true) {
13329
- if (!treeOpts.rowField) {
13330
- errLog('vxe.error.reqProp', ['tree-config.rowField']);
13331
- }
13332
- if (!treeOpts.parentField) {
13333
- errLog('vxe.error.reqProp', ['tree-config.parentField']);
13334
- }
13335
- if (!childrenField) {
13336
- errLog('vxe.error.reqProp', ['tree-config.childrenField']);
13337
- }
13338
- if (!treeOpts.mapChildrenField) {
13339
- errLog('vxe.error.reqProp', ['tree-config.mapChildrenField']);
13340
- }
13341
- if (childrenField === treeOpts.mapChildrenField) {
13342
- errLog('vxe.error.errConflicts', ['tree-config.childrenField', 'tree-config.mapChildrenField']);
13343
- }
13344
- // fullData.forEach(row => {
13345
- // if (row[treeOpts.children] && row[treeOpts.children].length) {
13346
- // warnLog('vxe.error.errConflicts', ['tree-config.transform', `row.${treeOpts.children}`])
13347
- // }
13348
- // })
13318
+ if (!treeOpts.rowField) {
13319
+ errLog('vxe.error.reqProp', ['tree-config.rowField']);
13320
+ }
13321
+ if (!treeOpts.parentField) {
13322
+ errLog('vxe.error.reqProp', ['tree-config.parentField']);
13323
+ }
13324
+ if (!childrenField) {
13325
+ errLog('vxe.error.reqProp', ['tree-config.childrenField']);
13349
13326
  }
13327
+ if (!treeOpts.mapChildrenField) {
13328
+ errLog('vxe.error.reqProp', ['tree-config.mapChildrenField']);
13329
+ }
13330
+ if (childrenField === treeOpts.mapChildrenField) {
13331
+ errLog('vxe.error.errConflicts', ['tree-config.childrenField', 'tree-config.mapChildrenField']);
13332
+ }
13333
+ // fullData.forEach(row => {
13334
+ // if (row[treeOpts.children] && row[treeOpts.children].length) {
13335
+ // warnLog('vxe.error.errConflicts', ['tree-config.transform', `row.${treeOpts.children}`])
13336
+ // }
13337
+ // })
13350
13338
  treeData = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toArrayTree(fullData, {
13351
13339
  key: treeOpts.rowField,
13352
13340
  parentKey: treeOpts.parentField,
@@ -13410,16 +13398,14 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
13410
13398
  // }
13411
13399
  // }
13412
13400
  // }
13413
- if (true) {
13414
- if (!(props.height || props.maxHeight)) {
13415
- errLog('vxe.error.reqProp', ['table.height | table.max-height | table.scroll-y={enabled: false}']);
13416
- }
13417
- // if (!props.showOverflow) {
13418
- // warnLog('vxe.error.reqProp', ['table.show-overflow'])
13419
- // }
13420
- if (props.spanMethod) {
13421
- warnLog('vxe.error.scrollErrProp', ['table.span-method']);
13422
- }
13401
+ if (!(props.height || props.maxHeight)) {
13402
+ errLog('vxe.error.reqProp', ['table.height | table.max-height | table.scroll-y={enabled: false}']);
13403
+ }
13404
+ // if (!props.showOverflow) {
13405
+ // warnLog('vxe.error.reqProp', ['table.show-overflow'])
13406
+ // }
13407
+ if (props.spanMethod) {
13408
+ errLog('vxe.error.scrollErrProp', ['table.span-method']);
13423
13409
  }
13424
13410
  }
13425
13411
  handleReserveStatus();
@@ -14542,15 +14528,24 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
14542
14528
  */
14543
14529
  revertData(rows, field) {
14544
14530
  const {
14545
- keepSource
14531
+ keepSource,
14532
+ treeConfig
14546
14533
  } = props;
14547
14534
  const {
14535
+ fullAllDataRowIdData,
14536
+ fullDataRowIdData,
14548
14537
  tableSourceData,
14549
- sourceDataRowIdData
14538
+ sourceDataRowIdData,
14539
+ tableFullData,
14540
+ afterFullData
14550
14541
  } = internalData;
14542
+ const treeOpts = computeTreeOpts.value;
14543
+ const {
14544
+ transform
14545
+ } = treeOpts;
14551
14546
  if (!keepSource) {
14552
14547
  if (true) {
14553
- warnLog('vxe.error.reqProp', ['keep-source']);
14548
+ errLog('vxe.error.reqProp', ['keep-source']);
14554
14549
  }
14555
14550
  return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)();
14556
14551
  }
@@ -14562,25 +14557,50 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
14562
14557
  } else {
14563
14558
  targetRows = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toArray($xeTable.getUpdateRecords());
14564
14559
  }
14560
+ let reDelFlag = false;
14565
14561
  if (targetRows.length) {
14566
- targetRows.forEach(row => {
14567
- if (!tableMethods.isInsertByRow(row)) {
14568
- const rowid = getRowid($xeTable, row);
14569
- const oRow = sourceDataRowIdData[rowid];
14570
- if (oRow && row) {
14571
- if (field) {
14572
- external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().set(row, field, external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().clone(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(oRow, field), true));
14573
- } else {
14574
- external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().destructuring(row, external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().clone(oRow, true));
14562
+ targetRows.forEach(item => {
14563
+ const rowid = getRowid($xeTable, item);
14564
+ const rowRest = fullAllDataRowIdData[rowid];
14565
+ if (rowRest) {
14566
+ const row = rowRest.row;
14567
+ if (!$xeTable.isInsertByRow(row)) {
14568
+ const oRow = sourceDataRowIdData[rowid];
14569
+ if (oRow && row) {
14570
+ if (field) {
14571
+ external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().set(row, field, external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().clone(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(oRow, field), true));
14572
+ } else {
14573
+ external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().destructuring(row, external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().clone(oRow, true));
14574
+ }
14575
+ if (!fullDataRowIdData[rowid] && $xeTable.isRemoveByRow(row)) {
14576
+ tableFullData.unshift(row);
14577
+ afterFullData.unshift(row);
14578
+ reDelFlag = true;
14579
+ }
14575
14580
  }
14576
14581
  }
14577
14582
  }
14578
14583
  });
14579
14584
  }
14580
14585
  if (rows) {
14581
- return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)();
14586
+ if (reDelFlag) {
14587
+ $xeTable.updateFooter();
14588
+ $xeTable.cacheRowMap(false);
14589
+ $xeTable.handleTableData(treeConfig && transform);
14590
+ if (!(treeConfig && transform)) {
14591
+ $xeTable.updateAfterDataIndex();
14592
+ }
14593
+ $xeTable.checkSelectionStatus();
14594
+ if (reactData.scrollYLoad) {
14595
+ $xeTable.updateScrollYSpace();
14596
+ }
14597
+ }
14598
+ return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)().then(() => {
14599
+ $xeTable.updateCellAreas();
14600
+ return $xeTable.recalculate();
14601
+ });
14582
14602
  }
14583
- return tableMethods.reloadData(tableSourceData);
14603
+ return $xeTable.reloadData(tableSourceData);
14584
14604
  },
14585
14605
  /**
14586
14606
  * 清空单元格内容
@@ -14713,6 +14733,13 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
14713
14733
  const rowid = getRowid($xeTable, row);
14714
14734
  return !!editStore.insertMaps[rowid];
14715
14735
  },
14736
+ isRemoveByRow(row) {
14737
+ const {
14738
+ editStore
14739
+ } = reactData;
14740
+ const rowid = getRowid($xeTable, row);
14741
+ return !!editStore.removeMaps[rowid];
14742
+ },
14716
14743
  /**
14717
14744
  * 删除所有新增的临时数据
14718
14745
  * @returns
@@ -17792,7 +17819,15 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
17792
17819
  if (el) {
17793
17820
  const parentElem = el.parentNode;
17794
17821
  const parentPaddingSize = height === '100%' || height === 'auto' ? getPaddingTopBottomSize(parentElem) : 0;
17795
- return Math.floor($xeGrid ? $xeGrid.getParentHeight() : external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(getComputedStyle(parentElem).height) - parentPaddingSize);
17822
+ let parentWrapperHeight = 0;
17823
+ if (parentElem) {
17824
+ if ($xeGrid && hasClass(parentElem, 'vxe-grid--table-wrapper')) {
17825
+ parentWrapperHeight = $xeGrid.getParentHeight();
17826
+ } else {
17827
+ parentWrapperHeight = parentElem.clientHeight;
17828
+ }
17829
+ }
17830
+ return Math.floor(parentWrapperHeight - parentPaddingSize);
17796
17831
  }
17797
17832
  return 0;
17798
17833
  },
@@ -17894,18 +17929,25 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
17894
17929
  const {
17895
17930
  treeConfig
17896
17931
  } = props;
17897
- const treeOpts = computeTreeOpts.value;
17932
+ const {
17933
+ treeExpandedMaps
17934
+ } = reactData;
17898
17935
  const {
17899
17936
  fullAllDataRowIdData,
17900
17937
  tableFullData,
17901
17938
  tableFullTreeData
17902
17939
  } = internalData;
17940
+ const treeOpts = computeTreeOpts.value;
17903
17941
  const childrenField = treeOpts.children || treeOpts.childrenField;
17904
17942
  const hasChildField = treeOpts.hasChild || treeOpts.hasChildField;
17905
17943
  const rowkey = getRowkey($xeTable);
17906
- const isLazy = treeConfig && treeOpts.lazy;
17907
- const fullAllDataRowIdMaps = {};
17944
+ const fullAllDataRowIdMaps = {
17945
+ ...fullAllDataRowIdData
17946
+ }; // 存在已删除数据
17908
17947
  const fullDataRowIdMaps = {};
17948
+ const treeTempExpandedMaps = {
17949
+ ...treeExpandedMaps
17950
+ };
17909
17951
  const handleRow = (row, index, items, path, parentRow, nodes) => {
17910
17952
  let rowid = getRowid($xeTable, row);
17911
17953
  const seq = treeConfig && path ? toTreePathSeq(path) : index + 1;
@@ -17914,8 +17956,16 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
17914
17956
  rowid = getRowUniqueId();
17915
17957
  external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().set(row, rowkey, rowid);
17916
17958
  }
17917
- if (isLazy && row[hasChildField] && external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isUndefined(row[childrenField])) {
17918
- row[childrenField] = null;
17959
+ if (treeConfig && treeOpts.lazy) {
17960
+ const treeExpRest = treeExpandedMaps[rowid];
17961
+ if (row[hasChildField] && external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isUndefined(row[childrenField])) {
17962
+ row[childrenField] = null;
17963
+ }
17964
+ if (treeExpRest) {
17965
+ if (!row[childrenField] || !row[childrenField].length) {
17966
+ delete treeTempExpandedMaps[rowid];
17967
+ }
17968
+ }
17919
17969
  }
17920
17970
  let rowRest = fullAllDataRowIdData[rowid];
17921
17971
  if (!rowRest) {
@@ -17936,6 +17986,8 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
17936
17986
  expandHeight: 0
17937
17987
  };
17938
17988
  }
17989
+ rowRest.treeLoaded = false;
17990
+ rowRest.expandLoaded = false;
17939
17991
  rowRest.row = row;
17940
17992
  rowRest.items = items;
17941
17993
  rowRest.parent = parentRow;
@@ -17944,8 +17996,6 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
17944
17996
  fullDataRowIdMaps[rowid] = rowRest;
17945
17997
  fullAllDataRowIdMaps[rowid] = rowRest;
17946
17998
  };
17947
- internalData.fullDataRowIdData = fullDataRowIdMaps;
17948
- internalData.fullAllDataRowIdData = fullAllDataRowIdMaps;
17949
17999
  if (treeConfig) {
17950
18000
  external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree(tableFullTreeData, handleRow, {
17951
18001
  children: childrenField
@@ -17953,6 +18003,9 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
17953
18003
  } else {
17954
18004
  tableFullData.forEach(handleRow);
17955
18005
  }
18006
+ internalData.fullDataRowIdData = fullDataRowIdMaps;
18007
+ internalData.fullAllDataRowIdData = fullAllDataRowIdMaps;
18008
+ reactData.treeExpandedMaps = treeTempExpandedMaps;
17956
18009
  },
17957
18010
  cacheSourceMap(fullData) {
17958
18011
  const {
@@ -20935,18 +20988,16 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
20935
20988
  }
20936
20989
  };
20937
20990
  // 检测对应模块是否安装
20938
- if (true) {
20939
- 'openExport,openPrint,exportData,openImport,importData,saveFile,readFile,importByFile,print'.split(',').forEach(name => {
20940
- $xeTable[name] = function () {
20941
- errLog('vxe.error.reqModule', ['VxeTableExportModule']);
20942
- };
20943
- });
20944
- 'clearValidate,fullValidate,validate'.split(',').forEach(name => {
20945
- $xeTable[name] = function () {
20946
- errLog('vxe.error.reqModule', ['VxeTableValidatorModule']);
20947
- };
20948
- });
20949
- }
20991
+ 'openExport,openPrint,exportData,openImport,importData,saveFile,readFile,importByFile,print'.split(',').forEach(name => {
20992
+ $xeTable[name] = function () {
20993
+ errLog('vxe.error.reqModule', ['VxeTableExportModule']);
20994
+ };
20995
+ });
20996
+ 'clearValidate,fullValidate,validate'.split(',').forEach(name => {
20997
+ $xeTable[name] = function () {
20998
+ errLog('vxe.error.reqModule', ['VxeTableValidatorModule']);
20999
+ };
21000
+ });
20950
21001
  Object.assign($xeTable, tableMethods, tablePrivateMethods);
20951
21002
  /**
20952
21003
  * 渲染浮固定列
@@ -21925,20 +21976,18 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
21925
21976
  $table: $xeTable
21926
21977
  });
21927
21978
  });
21928
- if (true) {
21929
- (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(() => {
21930
- if (props.loading) {
21931
- if (!VxeUILoadingComponent && !slots.loading) {
21932
- errLog('vxe.error.reqComp', ['vxe-loading']);
21933
- }
21979
+ (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(() => {
21980
+ if (props.loading) {
21981
+ if (!VxeUILoadingComponent && !slots.loading) {
21982
+ errLog('vxe.error.reqComp', ['vxe-loading']);
21934
21983
  }
21935
- if (props.showOverflow === true || props.showOverflow === 'tooltip' || props.showHeaderOverflow === true || props.showHeaderOverflow === 'tooltip' || props.showFooterOverflow === true || props.showFooterOverflow === 'tooltip' || props.tooltipConfig || props.editRules) {
21936
- if (!VxeUITooltipComponent) {
21937
- errLog('vxe.error.reqComp', ['vxe-tooltip']);
21938
- }
21984
+ }
21985
+ if (props.showOverflow === true || props.showOverflow === 'tooltip' || props.showHeaderOverflow === true || props.showHeaderOverflow === 'tooltip' || props.showFooterOverflow === true || props.showFooterOverflow === 'tooltip' || props.tooltipConfig || props.editRules) {
21986
+ if (!VxeUITooltipComponent) {
21987
+ errLog('vxe.error.reqComp', ['vxe-tooltip']);
21939
21988
  }
21940
- });
21941
- }
21989
+ }
21990
+ });
21942
21991
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.provide)('$xeColgroup', null);
21943
21992
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.provide)('$xeTable', $xeTable);
21944
21993
  $xeTable.renderVN = renderVN;
@@ -23126,11 +23175,9 @@ edit_hook_hooks.add('tableEditModule', {
23126
23175
  const parentLevel = parentRest ? parentRest.level : 0;
23127
23176
  newRecords.forEach((item, i) => {
23128
23177
  const rowid = getRowid($xeTable, item);
23129
- if (true) {
23130
- if (item[treeOpts.parentField]) {
23131
- if (parentRow && item[treeOpts.parentField] !== parentRow[rowField]) {
23132
- errLog('vxe.error.errProp', [`${treeOpts.parentField}=${item[treeOpts.parentField]}`, `${treeOpts.parentField}=${parentRow[rowField]}`]);
23133
- }
23178
+ if (item[treeOpts.parentField]) {
23179
+ if (parentRow && item[treeOpts.parentField] !== parentRow[rowField]) {
23180
+ errLog('vxe.error.errProp', [`${treeOpts.parentField}=${item[treeOpts.parentField]}`, `${treeOpts.parentField}=${parentRow[rowField]}`]);
23134
23181
  }
23135
23182
  }
23136
23183
  if (parentRow) {
@@ -25153,9 +25200,7 @@ export_hook_hooks.add('tableExportModule', {
25153
25200
  }
25154
25201
  } else {
25155
25202
  // 不支持的浏览器
25156
- if (true) {
25157
- errLog('vxe.error.notExp');
25158
- }
25203
+ errLog('vxe.error.notExp');
25159
25204
  _importResolve({
25160
25205
  status: true
25161
25206
  });
@@ -25883,10 +25928,8 @@ export_hook_hooks.add('tableExportModule', {
25883
25928
  message: true,
25884
25929
  types: external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().keys(exportOpts._typeMaps)
25885
25930
  }, exportOpts, options);
25886
- if (true) {
25887
- if (!props.exportConfig) {
25888
- errLog('vxe.error.reqProp', ['export-config']);
25889
- }
25931
+ if (!props.exportConfig) {
25932
+ errLog('vxe.error.reqProp', ['export-config']);
25890
25933
  }
25891
25934
  handleExportAndPrint(defOpts);
25892
25935
  },
@@ -25896,10 +25939,8 @@ export_hook_hooks.add('tableExportModule', {
25896
25939
  const defOpts = Object.assign({
25897
25940
  message: true
25898
25941
  }, printOpts, options);
25899
- if (true) {
25900
- if (!props.printConfig) {
25901
- errLog('vxe.error.reqProp', ['print-config']);
25902
- }
25942
+ if (!props.printConfig) {
25943
+ errLog('vxe.error.reqProp', ['print-config']);
25903
25944
  }
25904
25945
  handleExportAndPrint(defOpts, true);
25905
25946
  }
@@ -26822,9 +26863,7 @@ validator_hook_hooks.add('tableValidatorModule', {
26822
26863
  }
26823
26864
  }
26824
26865
  } else {
26825
- if (true) {
26826
- errLog('vxe.error.notValidators', [validator]);
26827
- }
26866
+ errLog('vxe.error.notValidators', [validator]);
26828
26867
  }
26829
26868
  } else {
26830
26869
  customValid = validator(validParams);
@@ -27541,10 +27580,8 @@ function getComponentOns(renderOpts, params, eFns) {
27541
27580
  const ons = {};
27542
27581
  external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().objectEach(events, (func, key) => {
27543
27582
  ons[getOnName(key)] = function (...args) {
27544
- if (true) {
27545
- if (!external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(func)) {
27546
- errLog('vxe.error.errFunc', [func]);
27547
- }
27583
+ if (!external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(func)) {
27584
+ errLog('vxe.error.errFunc', [func]);
27548
27585
  }
27549
27586
  func(params, ...args);
27550
27587
  };
@@ -28031,6 +28068,69 @@ function handleExportTreeSelectMethod(params) {
28031
28068
  } = params;
28032
28069
  return options.original ? getCellValue(row, column) : getTreeSelectCellValue(column.editRender || column.cellRender, params);
28033
28070
  }
28071
+ function handleNumberCell(renderOpts, params) {
28072
+ const {
28073
+ props = {},
28074
+ showNegativeStatus
28075
+ } = renderOpts;
28076
+ const {
28077
+ row,
28078
+ column
28079
+ } = params;
28080
+ const {
28081
+ type
28082
+ } = props;
28083
+ let cellValue = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(row, column.field);
28084
+ let isNegative = false;
28085
+ if (!isEmptyValue(cellValue)) {
28086
+ const numberInputConfig = render_getConfig().numberInput || {};
28087
+ if (type === 'float') {
28088
+ const autoFill = handleDefaultValue(props.autoFill, numberInputConfig.autoFill, true);
28089
+ const digits = handleDefaultValue(props.digits, numberInputConfig.digits, 1);
28090
+ cellValue = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toFixed(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().floor(cellValue, digits), digits);
28091
+ if (!autoFill) {
28092
+ cellValue = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(cellValue);
28093
+ }
28094
+ if (showNegativeStatus) {
28095
+ if (cellValue < 0) {
28096
+ isNegative = true;
28097
+ }
28098
+ }
28099
+ } else if (type === 'amount') {
28100
+ const autoFill = handleDefaultValue(props.autoFill, numberInputConfig.autoFill, true);
28101
+ const digits = handleDefaultValue(props.digits, numberInputConfig.digits, 2);
28102
+ const showCurrency = handleDefaultValue(props.showCurrency, numberInputConfig.showCurrency, false);
28103
+ cellValue = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(cellValue);
28104
+ if (showNegativeStatus) {
28105
+ if (cellValue < 0) {
28106
+ isNegative = true;
28107
+ }
28108
+ }
28109
+ cellValue = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().commafy(cellValue, {
28110
+ digits
28111
+ });
28112
+ if (!autoFill) {
28113
+ const [iStr, dStr] = cellValue.split('.');
28114
+ if (dStr) {
28115
+ const dRest = dStr.replace(/0+$/, '');
28116
+ cellValue = dRest ? [iStr, '.', dRest].join('') : iStr;
28117
+ }
28118
+ }
28119
+ if (showCurrency) {
28120
+ cellValue = `${props.currencySymbol || numberInputConfig.currencySymbol || render_getI18n('vxe.numberInput.currencySymbol') || ''}${cellValue}`;
28121
+ }
28122
+ } else {
28123
+ if (showNegativeStatus) {
28124
+ if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(cellValue) < 0) {
28125
+ isNegative = true;
28126
+ }
28127
+ }
28128
+ }
28129
+ }
28130
+ return getCellLabelVNs(renderOpts, params, cellValue, isNegative ? {
28131
+ class: 'is--negative'
28132
+ } : {});
28133
+ }
28034
28134
  /**
28035
28135
  * 表格 - 渲染器
28036
28136
  */
@@ -28102,72 +28202,22 @@ render_renderer.mixin({
28102
28202
  renderTableFilter: defaultFilterRender,
28103
28203
  tableFilterDefaultMethod: handleInputFilterMethod
28104
28204
  },
28105
- VxeNumberInput: {
28106
- tableAutoFocus: 'input',
28107
- renderTableEdit: defaultEditRender,
28108
- renderTableCell(renderOpts, params) {
28109
- const {
28110
- props = {},
28111
- showNegativeStatus
28112
- } = renderOpts;
28205
+ FormatNumberInput: {
28206
+ renderTableDefault: handleNumberCell,
28207
+ tableFilterDefaultMethod: handleInputFilterMethod,
28208
+ tableExportMethod(params) {
28113
28209
  const {
28114
28210
  row,
28115
28211
  column
28116
28212
  } = params;
28117
- const {
28118
- type
28119
- } = props;
28120
- let cellValue = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(row, column.field);
28121
- let isNegative = false;
28122
- if (!isEmptyValue(cellValue)) {
28123
- const numberInputConfig = render_getConfig().numberInput || {};
28124
- if (type === 'float') {
28125
- const autoFill = handleDefaultValue(props.autoFill, numberInputConfig.autoFill, true);
28126
- const digits = handleDefaultValue(props.digits, numberInputConfig.digits, 1);
28127
- cellValue = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toFixed(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().floor(cellValue, digits), digits);
28128
- if (!autoFill) {
28129
- cellValue = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(cellValue);
28130
- }
28131
- if (showNegativeStatus) {
28132
- if (cellValue < 0) {
28133
- isNegative = true;
28134
- }
28135
- }
28136
- } else if (type === 'amount') {
28137
- const autoFill = handleDefaultValue(props.autoFill, numberInputConfig.autoFill, true);
28138
- const digits = handleDefaultValue(props.digits, numberInputConfig.digits, 2);
28139
- const showCurrency = handleDefaultValue(props.showCurrency, numberInputConfig.showCurrency, false);
28140
- cellValue = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(cellValue);
28141
- if (showNegativeStatus) {
28142
- if (cellValue < 0) {
28143
- isNegative = true;
28144
- }
28145
- }
28146
- cellValue = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().commafy(cellValue, {
28147
- digits
28148
- });
28149
- if (!autoFill) {
28150
- const [iStr, dStr] = cellValue.split('.');
28151
- if (dStr) {
28152
- const dRest = dStr.replace(/0+$/, '');
28153
- cellValue = dRest ? [iStr, '.', dRest].join('') : iStr;
28154
- }
28155
- }
28156
- if (showCurrency) {
28157
- cellValue = `${props.currencySymbol || numberInputConfig.currencySymbol || render_getI18n('vxe.numberInput.currencySymbol') || ''}${cellValue}`;
28158
- }
28159
- } else {
28160
- if (showNegativeStatus) {
28161
- if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(cellValue) < 0) {
28162
- isNegative = true;
28163
- }
28164
- }
28165
- }
28166
- }
28167
- return getCellLabelVNs(renderOpts, params, cellValue, isNegative ? {
28168
- class: 'is--negative'
28169
- } : {});
28170
- },
28213
+ const cellValue = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(row, column.field);
28214
+ return cellValue;
28215
+ }
28216
+ },
28217
+ VxeNumberInput: {
28218
+ tableAutoFocus: 'input',
28219
+ renderTableEdit: defaultEditRender,
28220
+ renderTableCell: handleNumberCell,
28171
28221
  renderTableFooter(renderOpts, params) {
28172
28222
  const {
28173
28223
  props = {}
@@ -28310,11 +28360,22 @@ render_renderer.mixin({
28310
28360
  tableFilterDefaultMethod: handleFilterMethod,
28311
28361
  tableExportMethod: handleExportSelectMethod
28312
28362
  },
28363
+ /**
28364
+ * 已废弃,被 FormatSelect 替换
28365
+ * @deprecated
28366
+ */
28313
28367
  formatOption: {
28314
28368
  renderTableDefault(renderOpts, params) {
28315
28369
  return getCellLabelVNs(renderOpts, params, getSelectCellValue(renderOpts, params));
28316
28370
  }
28317
28371
  },
28372
+ FormatSelect: {
28373
+ renderTableDefault(renderOpts, params) {
28374
+ return getCellLabelVNs(renderOpts, params, getSelectCellValue(renderOpts, params));
28375
+ },
28376
+ tableFilterDefaultMethod: handleFilterMethod,
28377
+ tableExportMethod: handleExportSelectMethod
28378
+ },
28318
28379
  VxeTreeSelect: {
28319
28380
  tableAutoFocus: 'input',
28320
28381
  renderTableEdit: defaultTableOrTreeSelectEditRender,
@@ -28323,11 +28384,21 @@ render_renderer.mixin({
28323
28384
  },
28324
28385
  tableExportMethod: handleExportTreeSelectMethod
28325
28386
  },
28387
+ /**
28388
+ * 已废弃,被 FormatTreeSelect 替换
28389
+ * @deprecated
28390
+ */
28326
28391
  formatTree: {
28327
28392
  renderTableDefault(renderOpts, params) {
28328
28393
  return getCellLabelVNs(renderOpts, params, getTreeSelectCellValue(renderOpts, params));
28329
28394
  }
28330
28395
  },
28396
+ FormatTreeSelect: {
28397
+ renderTableDefault(renderOpts, params) {
28398
+ return getCellLabelVNs(renderOpts, params, getTreeSelectCellValue(renderOpts, params));
28399
+ },
28400
+ tableExportMethod: handleExportTreeSelectMethod
28401
+ },
28331
28402
  VxeTableSelect: {
28332
28403
  tableAutoFocus: 'input',
28333
28404
  renderTableEdit: defaultTableOrTreeSelectEditRender,
@@ -28825,9 +28896,7 @@ const {
28825
28896
  if (tCommandMethod) {
28826
28897
  tCommandMethod(params);
28827
28898
  } else {
28828
- if (true) {
28829
- errLog('vxe.error.notCommands', [code]);
28830
- }
28899
+ errLog('vxe.error.notCommands', [code]);
28831
28900
  }
28832
28901
  }
28833
28902
  $xeToolbar.dispatchEvent('button-click', params, evnt);
@@ -28859,9 +28928,7 @@ const {
28859
28928
  if (tCommandMethod) {
28860
28929
  tCommandMethod(params);
28861
28930
  } else {
28862
- if (true) {
28863
- errLog('vxe.error.notCommands', [code]);
28864
- }
28931
+ errLog('vxe.error.notCommands', [code]);
28865
28932
  }
28866
28933
  }
28867
28934
  $xeToolbar.dispatchEvent('tool-click', params, evnt);
@@ -29235,25 +29302,21 @@ const {
29235
29302
  warnLog('vxe.error.notFunc', ['queryMethod']);
29236
29303
  }
29237
29304
  const customOpts = computeCustomOpts.value;
29238
- if (true) {
29239
- if (customOpts.isFooter) {
29240
- warnLog('vxe.error.delProp', ['toolbar.custom.isFooter', 'table.custom-config.showFooter']);
29241
- }
29242
- if (customOpts.showFooter) {
29243
- warnLog('vxe.error.delProp', ['toolbar.custom.showFooter', 'table.custom-config.showFooter']);
29244
- }
29245
- if (customOpts.immediate) {
29246
- warnLog('vxe.error.delProp', ['toolbar.custom.immediate', 'table.custom-config.immediate']);
29247
- }
29248
- if (customOpts.trigger) {
29249
- warnLog('vxe.error.delProp', ['toolbar.custom.trigger', 'table.custom-config.trigger']);
29250
- }
29305
+ if (customOpts.isFooter) {
29306
+ warnLog('vxe.error.delProp', ['toolbar.custom.isFooter', 'table.custom-config.showFooter']);
29251
29307
  }
29252
- if (true) {
29253
- if (props.refresh || props.import || props.export || props.print || props.zoom) {
29254
- if (!VxeUIButtonComponent) {
29255
- errLog('vxe.error.reqComp', ['vxe-button']);
29256
- }
29308
+ if (customOpts.showFooter) {
29309
+ warnLog('vxe.error.delProp', ['toolbar.custom.showFooter', 'table.custom-config.showFooter']);
29310
+ }
29311
+ if (customOpts.immediate) {
29312
+ warnLog('vxe.error.delProp', ['toolbar.custom.immediate', 'table.custom-config.immediate']);
29313
+ }
29314
+ if (customOpts.trigger) {
29315
+ warnLog('vxe.error.delProp', ['toolbar.custom.trigger', 'table.custom-config.trigger']);
29316
+ }
29317
+ if (props.refresh || props.import || props.export || props.print || props.zoom) {
29318
+ if (!VxeUIButtonComponent) {
29319
+ errLog('vxe.error.reqComp', ['vxe-button']);
29257
29320
  }
29258
29321
  }
29259
29322
  });
@@ -29772,9 +29835,7 @@ const gridComponentEmits = [...emits, 'page-change', 'form-submit', 'form-submit
29772
29835
  if (slots[funcSlot]) {
29773
29836
  return slots[funcSlot];
29774
29837
  } else {
29775
- if (true) {
29776
- errLog('vxe.error.notSlot', [funcSlot]);
29777
- }
29838
+ errLog('vxe.error.notSlot', [funcSlot]);
29778
29839
  }
29779
29840
  } else {
29780
29841
  return funcSlot;
@@ -30365,9 +30426,7 @@ const gridComponentEmits = [...emits, 'page-change', 'form-submit', 'form-submit
30365
30426
  };
30366
30427
  });
30367
30428
  } else {
30368
- if (true) {
30369
- errLog('vxe.error.notFunc', ['proxy-config.ajax.query']);
30370
- }
30429
+ errLog('vxe.error.notFunc', ['proxy-config.ajax.query']);
30371
30430
  }
30372
30431
  break;
30373
30432
  }
@@ -30455,9 +30514,7 @@ const gridComponentEmits = [...emits, 'page-change', 'form-submit', 'form-submit
30455
30514
  }
30456
30515
  }
30457
30516
  } else {
30458
- if (true) {
30459
- errLog('vxe.error.notFunc', ['proxy-config.ajax.delete']);
30460
- }
30517
+ errLog('vxe.error.notFunc', ['proxy-config.ajax.delete']);
30461
30518
  }
30462
30519
  break;
30463
30520
  }
@@ -30561,9 +30618,7 @@ const gridComponentEmits = [...emits, 'page-change', 'form-submit', 'form-submit
30561
30618
  }
30562
30619
  });
30563
30620
  } else {
30564
- if (true) {
30565
- errLog('vxe.error.notFunc', ['proxy-config.ajax.save']);
30566
- }
30621
+ errLog('vxe.error.notFunc', ['proxy-config.ajax.save']);
30567
30622
  }
30568
30623
  break;
30569
30624
  }
@@ -30580,9 +30635,7 @@ const gridComponentEmits = [...emits, 'page-change', 'form-submit', 'form-submit
30580
30635
  $table: $xeTable
30581
30636
  }, ...args);
30582
30637
  } else {
30583
- if (true) {
30584
- errLog('vxe.error.notCommands', [code]);
30585
- }
30638
+ errLog('vxe.error.notCommands', [code]);
30586
30639
  }
30587
30640
  }
30588
30641
  }
@@ -30786,24 +30839,20 @@ const gridComponentEmits = [...emits, 'page-change', 'form-submit', 'form-submit
30786
30839
  });
30787
30840
  initPages();
30788
30841
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.onMounted)(() => {
30789
- if (true) {
30790
- (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(() => {
30791
- if (props.formConfig) {
30792
- if (!VxeUIFormComponent) {
30793
- errLog('vxe.error.reqComp', ['vxe-form']);
30794
- }
30795
- }
30796
- if (props.pagerConfig) {
30797
- if (!VxeUIPagerComponent) {
30798
- errLog('vxe.error.reqComp', ['vxe-pager']);
30799
- }
30800
- }
30801
- });
30802
- }
30803
30842
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(() => {
30804
30843
  const {
30805
30844
  columns
30806
30845
  } = props;
30846
+ if (props.formConfig) {
30847
+ if (!VxeUIFormComponent) {
30848
+ errLog('vxe.error.reqComp', ['vxe-form']);
30849
+ }
30850
+ }
30851
+ if (props.pagerConfig) {
30852
+ if (!VxeUIPagerComponent) {
30853
+ errLog('vxe.error.reqComp', ['vxe-pager']);
30854
+ }
30855
+ }
30807
30856
  // const { data, columns, proxyConfig } = props
30808
30857
  // const proxyOpts = computeProxyOpts.value
30809
30858
  // const formOpts = computeFormOpts.value