vxe-table 4.12.0-beta.27 → 4.12.0-beta.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. package/es/style.css +1 -1
  2. package/es/table/module/custom/hook.js +1 -1
  3. package/es/table/module/custom/panel.js +4 -2
  4. package/es/table/module/edit/hook.js +3 -2
  5. package/es/table/module/export/export-panel.js +3 -2
  6. package/es/table/module/export/import-panel.js +3 -2
  7. package/es/table/module/menu/hook.js +2 -1
  8. package/es/table/module/validator/hook.js +2 -1
  9. package/es/table/src/body.js +4 -2
  10. package/es/table/src/columnInfo.js +2 -2
  11. package/es/table/src/footer.js +2 -1
  12. package/es/table/src/header.js +2 -1
  13. package/es/ui/index.js +1 -1
  14. package/es/ui/src/log.js +1 -1
  15. package/lib/index.umd.js +30 -21
  16. package/lib/index.umd.min.js +1 -1
  17. package/lib/style.css +1 -1
  18. package/lib/table/module/custom/hook.js +1 -1
  19. package/lib/table/module/custom/hook.min.js +1 -1
  20. package/lib/table/module/custom/panel.js +4 -2
  21. package/lib/table/module/custom/panel.min.js +1 -1
  22. package/lib/table/module/edit/hook.js +3 -2
  23. package/lib/table/module/edit/hook.min.js +1 -1
  24. package/lib/table/module/export/export-panel.js +3 -2
  25. package/lib/table/module/export/export-panel.min.js +1 -1
  26. package/lib/table/module/export/import-panel.js +3 -2
  27. package/lib/table/module/export/import-panel.min.js +1 -1
  28. package/lib/table/module/menu/hook.js +2 -1
  29. package/lib/table/module/menu/hook.min.js +1 -1
  30. package/lib/table/module/validator/hook.js +2 -1
  31. package/lib/table/module/validator/hook.min.js +1 -1
  32. package/lib/table/src/body.js +4 -2
  33. package/lib/table/src/body.min.js +1 -1
  34. package/lib/table/src/columnInfo.js +2 -4
  35. package/lib/table/src/columnInfo.min.js +1 -1
  36. package/lib/table/src/footer.js +2 -1
  37. package/lib/table/src/footer.min.js +1 -1
  38. package/lib/table/src/header.js +2 -1
  39. package/lib/table/src/header.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 +1 -1
  45. package/packages/table/module/custom/hook.ts +1 -1
  46. package/packages/table/module/custom/panel.ts +6 -2
  47. package/packages/table/module/edit/hook.ts +4 -2
  48. package/packages/table/module/export/export-panel.ts +4 -2
  49. package/packages/table/module/export/import-panel.ts +4 -2
  50. package/packages/table/module/menu/hook.ts +3 -1
  51. package/packages/table/module/validator/hook.ts +3 -1
  52. package/packages/table/src/body.ts +5 -2
  53. package/packages/table/src/columnInfo.ts +3 -2
  54. package/packages/table/src/footer.ts +3 -1
  55. package/packages/table/src/header.ts +3 -1
  56. package/packages/table/src/util.ts +1 -0
  57. /package/es/{iconfont.1742803078098.ttf → iconfont.1742873611926.ttf} +0 -0
  58. /package/es/{iconfont.1742803078098.woff → iconfont.1742873611926.woff} +0 -0
  59. /package/es/{iconfont.1742803078098.woff2 → iconfont.1742873611926.woff2} +0 -0
  60. /package/lib/{iconfont.1742803078098.ttf → iconfont.1742873611926.ttf} +0 -0
  61. /package/lib/{iconfont.1742803078098.woff → iconfont.1742873611926.woff} +0 -0
  62. /package/lib/{iconfont.1742803078098.woff2 → iconfont.1742873611926.woff2} +0 -0
@@ -320,6 +320,7 @@ hooks.add('tableEditModule', {
320
320
  return nextTick().then(() => $xeTable.updateCellAreas());
321
321
  };
322
322
  const handleEditActive = (params, evnt, isFocus, isPos) => {
323
+ const $xeGrid = $xeTable.xeGrid;
323
324
  const { editConfig, mouseConfig } = props;
324
325
  const { editStore, tableColumn } = reactData;
325
326
  const editOpts = computeEditOpts.value;
@@ -336,7 +337,7 @@ hooks.add('tableEditModule', {
336
337
  if (actived.row !== row || (mode === 'cell' ? actived.column !== column : false)) {
337
338
  // 判断是否禁用编辑
338
339
  let type = 'edit-disabled';
339
- if (!beforeEditMethod || beforeEditMethod(Object.assign(Object.assign({}, params), { $table: $xeTable, $grid: $xeTable.xegrid }))) {
340
+ if (!beforeEditMethod || beforeEditMethod(Object.assign(Object.assign({}, params), { $table: $xeTable, $grid: $xeGrid }))) {
340
341
  if (mouseConfig) {
341
342
  $xeTable.clearSelected();
342
343
  if ($xeTable.clearCellAreas) {
@@ -365,7 +366,7 @@ hooks.add('tableEditModule', {
365
366
  $xeTable.handleFocus(params, evnt);
366
367
  }
367
368
  if (afterEditMethod) {
368
- afterEditMethod(Object.assign(Object.assign({}, params), { $table: $xeTable, $grid: $xeTable.xegrid }));
369
+ afterEditMethod(Object.assign(Object.assign({}, params), { $table: $xeTable, $grid: $xeGrid }));
369
370
  }
370
371
  });
371
372
  }
@@ -139,6 +139,7 @@ export default defineComponent({
139
139
  }
140
140
  };
141
141
  const renderVN = () => {
142
+ const $xeGrid = $xeTable.xeGrid;
142
143
  const { defaultOptions, storeData } = props;
143
144
  const { isAll: isAllChecked, isIndeterminate: isAllIndeterminate } = reactData;
144
145
  const { hasTree, hasMerge, isPrint, hasColgroup, columns } = storeData;
@@ -216,7 +217,7 @@ export default defineComponent({
216
217
  default: () => {
217
218
  const params = {
218
219
  $table: $xeTable,
219
- $grid: $xeTable.xegrid,
220
+ $grid: $xeGrid,
220
221
  options: defaultOptions,
221
222
  columns,
222
223
  params: defaultOptions.params
@@ -460,7 +461,7 @@ export default defineComponent({
460
461
  footer() {
461
462
  const params = {
462
463
  $table: $xeTable,
463
- $grid: $xeTable.xegrid,
464
+ $grid: $xeGrid,
464
465
  options: defaultOptions,
465
466
  columns,
466
467
  params: defaultOptions.params
@@ -76,6 +76,7 @@ export default defineComponent({
76
76
  });
77
77
  };
78
78
  const renderVN = () => {
79
+ const $xeGrid = $xeTable.xeGrid;
79
80
  const { defaultOptions, storeData } = props;
80
81
  const selectName = computeSelectName.value;
81
82
  const hasFile = computeHasFile.value;
@@ -110,7 +111,7 @@ export default defineComponent({
110
111
  default: () => {
111
112
  const params = {
112
113
  $table: $xeTable,
113
- $grid: $xeTable.xegrid,
114
+ $grid: $xeGrid,
114
115
  options: defaultOptions,
115
116
  params: defaultOptions.params
116
117
  };
@@ -186,7 +187,7 @@ export default defineComponent({
186
187
  footer() {
187
188
  const params = {
188
189
  $table: $xeTable,
189
- $grid: $xeTable.xegrid,
190
+ $grid: $xeGrid,
190
191
  options: defaultOptions,
191
192
  params: defaultOptions.params
192
193
  };
@@ -280,10 +280,11 @@ hooks.add('tableMenuModule', {
280
280
  * 快捷菜单点击事件
281
281
  */
282
282
  ctxMenuLinkEvent(evnt, menu) {
283
+ const $xeGrid = $xeTable.xeGrid;
283
284
  // 如果一级菜单有配置 code 则允许点击,否则不能点击
284
285
  if (!menu.disabled && (menu.code || !menu.children || !menu.children.length)) {
285
286
  const gMenuOpts = menus.get(menu.code);
286
- const params = Object.assign({}, internalData._currMenuParams, { menu, $table: $xeTable, $grid: $xeTable.xegrid, $event: evnt });
287
+ const params = Object.assign({}, internalData._currMenuParams, { menu, $table: $xeTable, $grid: $xeGrid, $event: evnt });
287
288
  const tmMethod = gMenuOpts ? (gMenuOpts.tableMenuMethod || gMenuOpts.menuMethod) : null;
288
289
  if (tmMethod) {
289
290
  tmMethod(params, evnt);
@@ -353,6 +353,7 @@ hooks.add('tableValidatorModule', {
353
353
  * trigger=blur|change 触发方式(除非特殊场景,否则默认为空就行)
354
354
  */
355
355
  validCellRules(validType, row, column, val) {
356
+ const $xeGrid = $xeTable.xeGrid;
356
357
  const { editRules } = props;
357
358
  const { field } = column;
358
359
  const errorRules = [];
@@ -375,7 +376,7 @@ hooks.add('tableValidatorModule', {
375
376
  columnIndex: $xeTable.getColumnIndex(column),
376
377
  field: column.field,
377
378
  $table: $xeTable,
378
- $grid: $xeTable.xegrid
379
+ $grid: $xeGrid
379
380
  };
380
381
  let customValid;
381
382
  if (XEUtils.isString(validator)) {
@@ -77,6 +77,7 @@ export default defineComponent({
77
77
  * 渲染列
78
78
  */
79
79
  const renderTdColumn = (seq, rowid, fixedType, isOptimizeMode, rowLevel, row, rowIndex, $rowIndex, _rowIndex, column, $columnIndex, columns, items) => {
80
+ const $xeGrid = $xeTable.xeGrid;
80
81
  const { fullAllDataRowIdData, visibleColumn } = tableInternalData;
81
82
  const { columnKey, resizable: allResizable, showOverflow: allShowOverflow, border, height, cellClassName: allCellClassName, cellStyle, align: allAlign, spanMethod, mouseConfig, editConfig, editRules, tooltipConfig, padding: allPadding } = tableProps;
82
83
  const { tableData, dragRow, overflowX, currentColumn, scrollXLoad, scrollYLoad, calcCellHeightFlag, resizeHeightFlag, resizeWidthFlag, mergeList, editStore, isAllOverflow, validErrorMaps } = tableReactData;
@@ -131,7 +132,7 @@ export default defineComponent({
131
132
  const tdAttrs = { colid };
132
133
  const cellParams = {
133
134
  $table: $xeTable,
134
- $grid: $xeTable.xegrid,
135
+ $grid: $xeGrid,
135
136
  isEdit: false,
136
137
  seq,
137
138
  rowid,
@@ -581,6 +582,7 @@ export default defineComponent({
581
582
  });
582
583
  const renderVN = () => {
583
584
  const { slots } = tableContext;
585
+ const $xeGrid = $xeTable.xeGrid;
584
586
  const { fixedColumn, fixedType, tableColumn } = props;
585
587
  const { spanMethod, footerSpanMethod, mouseConfig } = tableProps;
586
588
  const { isGroup, tableData, isRowLoading, isColLoading, overflowX, scrollXLoad, scrollYLoad, isAllOverflow, isDragRowMove, expandColumn, dragRow, dragCol } = tableReactData;
@@ -661,7 +663,7 @@ export default defineComponent({
661
663
  let emptyContent;
662
664
  const emptySlot = slots ? slots.empty : null;
663
665
  if (emptySlot) {
664
- emptyContent = $xeTable.callSlot(emptySlot, { $table: $xeTable, $grid: $xeTable.xegrid });
666
+ emptyContent = $xeTable.callSlot(emptySlot, { $table: $xeTable, $grid: $xeGrid });
665
667
  }
666
668
  else {
667
669
  const compConf = emptyOpts.name ? renderer.get(emptyOpts.name) : null;
@@ -7,10 +7,10 @@ const { getI18n, formats } = VxeUI;
7
7
  export class ColumnInfo {
8
8
  /* eslint-disable @typescript-eslint/no-use-before-define */
9
9
  constructor($xeTable, _vm, { renderHeader, renderCell, renderFooter, renderData } = {}) {
10
- const $xeGrid = $xeTable.xegrid;
10
+ const tableProps = $xeTable.props;
11
+ const $xeGrid = $xeTable.xeGrid;
11
12
  const formatter = _vm.formatter;
12
13
  const visible = XEUtils.isBoolean(_vm.visible) ? _vm.visible : true;
13
- const { props: tableProps } = $xeTable;
14
14
  const types = ['seq', 'checkbox', 'radio', 'expand', 'html'];
15
15
  if (_vm.type && types.indexOf(_vm.type) === -1) {
16
16
  warnLog('vxe.error.errProp', [`type=${_vm.type}`, types.join(', ')]);
@@ -49,6 +49,7 @@ export default defineComponent({
49
49
  const refFooterTFoot = ref();
50
50
  const refFooterXSpace = ref();
51
51
  const renderRows = (tableColumn, footerTableData, row, $rowIndex, _rowIndex) => {
52
+ const $xeGrid = $xeTable.xeGrid;
52
53
  const { fixedType } = props;
53
54
  const { resizable: allResizable, border, footerCellClassName, footerCellStyle, footerAlign: allFooterAlign, footerSpanMethod, align: allAlign, columnKey, showFooterOverflow: allColumnFooterOverflow } = tableProps;
54
55
  const { scrollXLoad, scrollYLoad, overflowX, currentColumn, mergeFooterList } = tableReactData;
@@ -84,7 +85,7 @@ export default defineComponent({
84
85
  const itemIndex = _columnIndex;
85
86
  const cellParams = {
86
87
  $table: $xeTable,
87
- $grid: $xeTable.xegrid,
88
+ $grid: $xeGrid,
88
89
  row,
89
90
  rowIndex: _rowIndex,
90
91
  _rowIndex,
@@ -33,6 +33,7 @@ export default defineComponent({
33
33
  headerColumn.value = isGroup ? convertHeaderColumnToRows(props.tableGroupColumn) : [];
34
34
  };
35
35
  const renderRows = (isGroup, isOptimizeMode, cols, $rowIndex) => {
36
+ const $xeGrid = $xeTable.xeGrid;
36
37
  const { fixedType } = props;
37
38
  const { resizable: allResizable, columnKey, headerCellClassName, headerCellStyle, showHeaderOverflow: allColumnHeaderOverflow, headerAlign: allHeaderAlign, align: allAlign, mouseConfig } = tableProps;
38
39
  const { currentColumn, dragCol, scrollXLoad, scrollYLoad, overflowX } = tableReactData;
@@ -66,7 +67,7 @@ export default defineComponent({
66
67
  }
67
68
  const columnIndex = $xeTable.getColumnIndex(column);
68
69
  const _columnIndex = $xeTable.getVTColumnIndex(column);
69
- const cellParams = { $table: $xeTable, $grid: $xeTable.xegrid, $rowIndex, column, columnIndex, $columnIndex, _columnIndex, firstFilterOption, fixed: fixedType, type: renderType, isHidden: fixedHiddenColumn, hasFilter };
70
+ const cellParams = { $table: $xeTable, $grid: $xeGrid, $rowIndex, column, columnIndex, $columnIndex, _columnIndex, firstFilterOption, fixed: fixedType, type: renderType, isHidden: fixedHiddenColumn, hasFilter };
70
71
  const thAttrs = {
71
72
  colid,
72
73
  colspan: column.colSpan > 1 ? column.colSpan : null,
package/es/ui/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { VxeUI } from '@vxe-ui/core';
2
2
  import { getFuncText } from './src/utils';
3
- export const version = "4.12.0-beta.27";
3
+ export const version = "4.12.0-beta.28";
4
4
  VxeUI.version = version;
5
5
  VxeUI.tableVersion = version;
6
6
  VxeUI.setConfig({
package/es/ui/src/log.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { VxeUI } from '@vxe-ui/core';
2
2
  const { log } = VxeUI;
3
- const version = `table v${"4.12.0-beta.27"}`;
3
+ const version = `table v${"4.12.0-beta.28"}`;
4
4
  export const warnLog = log.create('warn', version);
5
5
  export const errLog = log.create('error', version);
package/lib/index.umd.js CHANGED
@@ -3138,7 +3138,7 @@ function eqEmptyValue(cellValue) {
3138
3138
  ;// ./packages/ui/index.ts
3139
3139
 
3140
3140
 
3141
- const version = "4.12.0-beta.27";
3141
+ const version = "4.12.0-beta.28";
3142
3142
  core_.VxeUI.version = version;
3143
3143
  core_.VxeUI.tableVersion = version;
3144
3144
  core_.VxeUI.setConfig({
@@ -3587,7 +3587,7 @@ var esnext_iterator_some = __webpack_require__(7550);
3587
3587
  const {
3588
3588
  log: log_log
3589
3589
  } = core_.VxeUI;
3590
- const log_version = `table v${"4.12.0-beta.27"}`;
3590
+ const log_version = `table v${"4.12.0-beta.28"}`;
3591
3591
  const warnLog = log_log.create('warn', log_version);
3592
3592
  const errLog = log_log.create('error', log_version);
3593
3593
  ;// ./packages/table/src/columnInfo.ts
@@ -3608,12 +3608,10 @@ class ColumnInfo {
3608
3608
  renderFooter,
3609
3609
  renderData
3610
3610
  } = {}) {
3611
- const $xeGrid = $xeTable.xegrid;
3611
+ const tableProps = $xeTable.props;
3612
+ const $xeGrid = $xeTable.xeGrid;
3612
3613
  const formatter = _vm.formatter;
3613
3614
  const visible = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isBoolean(_vm.visible) ? _vm.visible : true;
3614
- const {
3615
- props: tableProps
3616
- } = $xeTable;
3617
3615
  const types = ['seq', 'checkbox', 'radio', 'expand', 'html'];
3618
3616
  if (_vm.type && types.indexOf(_vm.type) === -1) {
3619
3617
  warnLog('vxe.error.errProp', [`type=${_vm.type}`, types.join(', ')]);
@@ -6347,6 +6345,7 @@ const renderType = 'body';
6347
6345
  * 渲染列
6348
6346
  */
6349
6347
  const renderTdColumn = (seq, rowid, fixedType, isOptimizeMode, rowLevel, row, rowIndex, $rowIndex, _rowIndex, column, $columnIndex, columns, items) => {
6348
+ const $xeGrid = $xeTable.xeGrid;
6350
6349
  const {
6351
6350
  fullAllDataRowIdData,
6352
6351
  visibleColumn
@@ -6464,7 +6463,7 @@ const renderType = 'body';
6464
6463
  };
6465
6464
  const cellParams = {
6466
6465
  $table: $xeTable,
6467
- $grid: $xeTable.xegrid,
6466
+ $grid: $xeGrid,
6468
6467
  isEdit: false,
6469
6468
  seq,
6470
6469
  rowid,
@@ -6973,6 +6972,7 @@ const renderType = 'body';
6973
6972
  const {
6974
6973
  slots
6975
6974
  } = tableContext;
6975
+ const $xeGrid = $xeTable.xeGrid;
6976
6976
  const {
6977
6977
  fixedColumn,
6978
6978
  fixedType,
@@ -7077,7 +7077,7 @@ const renderType = 'body';
7077
7077
  if (emptySlot) {
7078
7078
  emptyContent = $xeTable.callSlot(emptySlot, {
7079
7079
  $table: $xeTable,
7080
- $grid: $xeTable.xegrid
7080
+ $grid: $xeGrid
7081
7081
  });
7082
7082
  } else {
7083
7083
  const compConf = emptyOpts.name ? body_renderer.get(emptyOpts.name) : null;
@@ -7235,6 +7235,7 @@ const header_renderType = 'header';
7235
7235
  headerColumn.value = isGroup ? convertHeaderColumnToRows(props.tableGroupColumn) : [];
7236
7236
  };
7237
7237
  const renderRows = (isGroup, isOptimizeMode, cols, $rowIndex) => {
7238
+ const $xeGrid = $xeTable.xeGrid;
7238
7239
  const {
7239
7240
  fixedType
7240
7241
  } = props;
@@ -7302,7 +7303,7 @@ const header_renderType = 'header';
7302
7303
  const _columnIndex = $xeTable.getVTColumnIndex(column);
7303
7304
  const cellParams = {
7304
7305
  $table: $xeTable,
7305
- $grid: $xeTable.xegrid,
7306
+ $grid: $xeGrid,
7306
7307
  $rowIndex,
7307
7308
  column,
7308
7309
  columnIndex,
@@ -7701,6 +7702,7 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
7701
7702
  const refFooterTFoot = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
7702
7703
  const refFooterXSpace = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
7703
7704
  const renderRows = (tableColumn, footerTableData, row, $rowIndex, _rowIndex) => {
7705
+ const $xeGrid = $xeTable.xeGrid;
7704
7706
  const {
7705
7707
  fixedType
7706
7708
  } = props;
@@ -7768,7 +7770,7 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
7768
7770
  const itemIndex = _columnIndex;
7769
7771
  const cellParams = {
7770
7772
  $table: $xeTable,
7771
- $grid: $xeTable.xegrid,
7773
+ $grid: $xeGrid,
7772
7774
  row,
7773
7775
  rowIndex: _rowIndex,
7774
7776
  _rowIndex,
@@ -8871,6 +8873,7 @@ const {
8871
8873
  }, panel_getI18n('vxe.custom.cstmDragTarget', [dragCol && dragCol.type !== 'html' ? dragCol.getTitle() : '']))])])]);
8872
8874
  };
8873
8875
  const renderSimplePanel = () => {
8876
+ const $xeGrid = $xeTable.xeGrid;
8874
8877
  const {
8875
8878
  customStore
8876
8879
  } = props;
@@ -8916,7 +8919,7 @@ const {
8916
8919
  }
8917
8920
  const params = {
8918
8921
  $table: $xeTable,
8919
- $grid: $xeTable.xegrid,
8922
+ $grid: $xeGrid,
8920
8923
  columns: customColumnList,
8921
8924
  isAllChecked,
8922
8925
  isAllIndeterminate,
@@ -9073,6 +9076,7 @@ const {
9073
9076
  }) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)()])]) : null] : []);
9074
9077
  };
9075
9078
  const renderPopupPanel = () => {
9079
+ const $xeGrid = $xeTable.xeGrid;
9076
9080
  const {
9077
9081
  customStore
9078
9082
  } = props;
@@ -9125,7 +9129,7 @@ const {
9125
9129
  const isAllIndeterminate = customStore.isIndeterminate;
9126
9130
  const params = {
9127
9131
  $table: $xeTable,
9128
- $grid: $xeTable.xegrid,
9132
+ $grid: $xeGrid,
9129
9133
  columns: customColumnList,
9130
9134
  isAllChecked,
9131
9135
  isAllIndeterminate,
@@ -9736,6 +9740,7 @@ const {
9736
9740
  });
9737
9741
  };
9738
9742
  const renderVN = () => {
9743
+ const $xeGrid = $xeTable.xeGrid;
9739
9744
  const {
9740
9745
  defaultOptions,
9741
9746
  storeData
@@ -9772,7 +9777,7 @@ const {
9772
9777
  default: () => {
9773
9778
  const params = {
9774
9779
  $table: $xeTable,
9775
- $grid: $xeTable.xegrid,
9780
+ $grid: $xeGrid,
9776
9781
  options: defaultOptions,
9777
9782
  params: defaultOptions.params
9778
9783
  };
@@ -9810,7 +9815,7 @@ const {
9810
9815
  footer() {
9811
9816
  const params = {
9812
9817
  $table: $xeTable,
9813
- $grid: $xeTable.xegrid,
9818
+ $grid: $xeGrid,
9814
9819
  options: defaultOptions,
9815
9820
  params: defaultOptions.params
9816
9821
  };
@@ -10031,6 +10036,7 @@ const {
10031
10036
  }
10032
10037
  };
10033
10038
  const renderVN = () => {
10039
+ const $xeGrid = $xeTable.xeGrid;
10034
10040
  const {
10035
10041
  defaultOptions,
10036
10042
  storeData
@@ -10116,7 +10122,7 @@ const {
10116
10122
  default: () => {
10117
10123
  const params = {
10118
10124
  $table: $xeTable,
10119
- $grid: $xeTable.xegrid,
10125
+ $grid: $xeGrid,
10120
10126
  options: defaultOptions,
10121
10127
  columns,
10122
10128
  params: defaultOptions.params
@@ -10257,7 +10263,7 @@ const {
10257
10263
  footer() {
10258
10264
  const params = {
10259
10265
  $table: $xeTable,
10260
- $grid: $xeTable.xegrid,
10266
+ $grid: $xeGrid,
10261
10267
  options: defaultOptions,
10262
10268
  columns,
10263
10269
  params: defaultOptions.params
@@ -12118,13 +12124,14 @@ menu_hook_hooks.add('tableMenuModule', {
12118
12124
  * 快捷菜单点击事件
12119
12125
  */
12120
12126
  ctxMenuLinkEvent(evnt, menu) {
12127
+ const $xeGrid = $xeTable.xeGrid;
12121
12128
  // 如果一级菜单有配置 code 则允许点击,否则不能点击
12122
12129
  if (!menu.disabled && (menu.code || !menu.children || !menu.children.length)) {
12123
12130
  const gMenuOpts = hook_menus.get(menu.code);
12124
12131
  const params = Object.assign({}, internalData._currMenuParams, {
12125
12132
  menu,
12126
12133
  $table: $xeTable,
12127
- $grid: $xeTable.xegrid,
12134
+ $grid: $xeGrid,
12128
12135
  $event: evnt
12129
12136
  });
12130
12137
  const tmMethod = gMenuOpts ? gMenuOpts.tableMenuMethod || gMenuOpts.menuMethod : null;
@@ -12635,6 +12642,7 @@ edit_hook_hooks.add('tableEditModule', {
12635
12642
  return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)().then(() => $xeTable.updateCellAreas());
12636
12643
  };
12637
12644
  const handleEditActive = (params, evnt, isFocus, isPos) => {
12645
+ const $xeGrid = $xeTable.xeGrid;
12638
12646
  const {
12639
12647
  editConfig,
12640
12648
  mouseConfig
@@ -12670,7 +12678,7 @@ edit_hook_hooks.add('tableEditModule', {
12670
12678
  if (!beforeEditMethod || beforeEditMethod({
12671
12679
  ...params,
12672
12680
  $table: $xeTable,
12673
- $grid: $xeTable.xegrid
12681
+ $grid: $xeGrid
12674
12682
  })) {
12675
12683
  if (mouseConfig) {
12676
12684
  $xeTable.clearSelected();
@@ -12702,7 +12710,7 @@ edit_hook_hooks.add('tableEditModule', {
12702
12710
  afterEditMethod({
12703
12711
  ...params,
12704
12712
  $table: $xeTable,
12705
- $grid: $xeTable.xegrid
12713
+ $grid: $xeGrid
12706
12714
  });
12707
12715
  }
12708
12716
  });
@@ -16166,6 +16174,7 @@ validator_hook_hooks.add('tableValidatorModule', {
16166
16174
  * trigger=blur|change 触发方式(除非特殊场景,否则默认为空就行)
16167
16175
  */
16168
16176
  validCellRules(validType, row, column, val) {
16177
+ const $xeGrid = $xeTable.xeGrid;
16169
16178
  const {
16170
16179
  editRules
16171
16180
  } = props;
@@ -16197,7 +16206,7 @@ validator_hook_hooks.add('tableValidatorModule', {
16197
16206
  columnIndex: $xeTable.getColumnIndex(column),
16198
16207
  field: column.field,
16199
16208
  $table: $xeTable,
16200
- $grid: $xeTable.xegrid
16209
+ $grid: $xeGrid
16201
16210
  };
16202
16211
  let customValid;
16203
16212
  if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isString(validator)) {
@@ -16413,7 +16422,7 @@ core_.VxeUI.hooks.add('tableCustomModule', {
16413
16422
  const {
16414
16423
  refElem
16415
16424
  } = $xeTable.getRefMaps();
16416
- const $xeGrid = $xeTable.xegrid;
16425
+ const $xeGrid = $xeTable.xeGrid;
16417
16426
  const calcMaxHeight = () => {
16418
16427
  const {
16419
16428
  customStore