vxe-table 4.11.0-beta.0 → 4.11.0-beta.10

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 (72) hide show
  1. package/README.md +18 -13
  2. package/es/index.css +1 -1
  3. package/es/index.min.css +1 -1
  4. package/es/locale/lang/id-ID.js +695 -0
  5. package/es/style.css +1 -1
  6. package/es/style.min.css +1 -1
  7. package/es/table/module/edit/hook.js +1 -7
  8. package/es/table/module/export/export-panel.js +8 -0
  9. package/es/table/module/export/hook.js +30 -11
  10. package/es/table/render/index.js +10 -0
  11. package/es/table/src/body.js +4 -2
  12. package/es/table/src/cell.js +3 -0
  13. package/es/table/src/footer.js +4 -2
  14. package/es/table/src/header.js +6 -4
  15. package/es/table/src/table.js +46 -21
  16. package/es/table/style.css +1 -1
  17. package/es/table/style.min.css +1 -1
  18. package/es/ui/index.js +1 -1
  19. package/es/ui/src/log.js +1 -1
  20. package/es/vxe-table/style.css +1 -1
  21. package/es/vxe-table/style.min.css +1 -1
  22. package/lib/index.css +1 -1
  23. package/lib/index.min.css +1 -1
  24. package/lib/index.umd.js +119 -47
  25. package/lib/index.umd.min.js +1 -1
  26. package/lib/locale/lang/id-ID.js +701 -0
  27. package/lib/locale/lang/id-ID.min.js +1 -0
  28. package/lib/style.css +1 -1
  29. package/lib/style.min.css +1 -1
  30. package/lib/table/module/edit/hook.js +1 -9
  31. package/lib/table/module/edit/hook.min.js +1 -1
  32. package/lib/table/module/export/export-panel.js +8 -0
  33. package/lib/table/module/export/hook.js +33 -10
  34. package/lib/table/module/export/hook.min.js +1 -1
  35. package/lib/table/render/index.js +10 -0
  36. package/lib/table/render/index.min.js +1 -1
  37. package/lib/table/src/body.js +4 -1
  38. package/lib/table/src/body.min.js +1 -1
  39. package/lib/table/src/cell.js +3 -0
  40. package/lib/table/src/cell.min.js +1 -1
  41. package/lib/table/src/footer.js +4 -1
  42. package/lib/table/src/footer.min.js +1 -1
  43. package/lib/table/src/header.js +6 -3
  44. package/lib/table/src/header.min.js +1 -1
  45. package/lib/table/src/table.js +48 -21
  46. package/lib/table/src/table.min.js +1 -1
  47. package/lib/table/style/style.css +1 -1
  48. package/lib/table/style/style.min.css +1 -1
  49. package/lib/ui/index.js +1 -1
  50. package/lib/ui/index.min.js +1 -1
  51. package/lib/ui/src/log.js +1 -1
  52. package/lib/ui/src/log.min.js +1 -1
  53. package/lib/vxe-table/style/style.css +1 -1
  54. package/lib/vxe-table/style/style.min.css +1 -1
  55. package/package.json +2 -2
  56. package/packages/locale/lang/id-ID.ts +695 -0
  57. package/packages/table/module/edit/hook.ts +1 -7
  58. package/packages/table/module/export/export-panel.ts +9 -0
  59. package/packages/table/module/export/hook.ts +37 -20
  60. package/packages/table/render/index.ts +10 -0
  61. package/packages/table/src/body.ts +5 -2
  62. package/packages/table/src/cell.ts +3 -0
  63. package/packages/table/src/footer.ts +5 -2
  64. package/packages/table/src/header.ts +7 -4
  65. package/packages/table/src/table.ts +50 -22
  66. package/styles/components/table.scss +1 -1
  67. /package/es/{iconfont.1739430864081.ttf → iconfont.1739790215610.ttf} +0 -0
  68. /package/es/{iconfont.1739430864081.woff → iconfont.1739790215610.woff} +0 -0
  69. /package/es/{iconfont.1739430864081.woff2 → iconfont.1739790215610.woff2} +0 -0
  70. /package/lib/{iconfont.1739430864081.ttf → iconfont.1739790215610.ttf} +0 -0
  71. /package/lib/{iconfont.1739430864081.woff → iconfont.1739790215610.woff} +0 -0
  72. /package/lib/{iconfont.1739430864081.woff2 → iconfont.1739790215610.woff2} +0 -0
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.11.0-beta.0";
3141
+ const version = "4.11.0-beta.10";
3142
3142
  core_.VxeUI.version = version;
3143
3143
  core_.VxeUI.tableVersion = version;
3144
3144
  core_.VxeUI.setConfig({
@@ -3586,7 +3586,7 @@ var esnext_iterator_some = __webpack_require__(7550);
3586
3586
  const {
3587
3587
  log: log_log
3588
3588
  } = core_.VxeUI;
3589
- const log_version = `table v${"4.11.0-beta.0"}`;
3589
+ const log_version = `table v${"4.11.0-beta.10"}`;
3590
3590
  const warnLog = log_log.create('warn', log_version);
3591
3591
  const errLog = log_log.create('error', log_version);
3592
3592
  ;// ./packages/table/src/columnInfo.ts
@@ -5612,6 +5612,9 @@ const Cell = {
5612
5612
  class: ['vxe-table--expanded', {
5613
5613
  'is--active': isActive
5614
5614
  }],
5615
+ onMousedown(evnt) {
5616
+ evnt.stopPropagation();
5617
+ },
5615
5618
  onClick(evnt) {
5616
5619
  $table.triggerRowExpandEvent(evnt, params);
5617
5620
  }
@@ -6882,6 +6885,7 @@ const renderType = 'body';
6882
6885
  tableData,
6883
6886
  isRowLoading,
6884
6887
  isColLoading,
6888
+ overflowX,
6885
6889
  scrollXLoad,
6886
6890
  scrollYLoad,
6887
6891
  isAllOverflow,
@@ -6911,8 +6915,10 @@ const renderType = 'body';
6911
6915
  isOptimizeMode = true;
6912
6916
  }
6913
6917
  }
6914
- if (fixedType) {
6918
+ if (fixedType || !overflowX) {
6915
6919
  renderColumnList = visibleColumn;
6920
+ }
6921
+ if (fixedType) {
6916
6922
  if (isOptimizeMode) {
6917
6923
  renderColumnList = fixedColumn || [];
6918
6924
  }
@@ -7262,8 +7268,8 @@ const header_renderType = 'header';
7262
7268
  'is--sortable': column.sortable,
7263
7269
  'col--filter': !!filters,
7264
7270
  'is--filter-active': hasFilter,
7265
- 'is--drag-active': !column.fixed && !isDisabledDrag && (isCrossDrag || isPeerDrag || !column.parentId),
7266
- 'is--drag-disabled': isDisabledDrag,
7271
+ 'is--drag-active': columnOpts.drag && !column.fixed && !isDisabledDrag && (isCrossDrag || isPeerDrag || !column.parentId),
7272
+ 'is--drag-disabled': columnOpts.drag && isDisabledDrag,
7267
7273
  'col--current': currentColumn === column
7268
7274
  }, headerClassName ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(headerClassName) ? headerClassName(cellParams) : headerClassName : '', headerCellClassName ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(headerCellClassName) ? headerCellClassName(cellParams) : headerCellClassName : ''],
7269
7275
  style: headerCellStyle ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(headerCellStyle) ? headerCellStyle(cellParams) : headerCellStyle : null,
@@ -7346,6 +7352,7 @@ const header_renderType = 'header';
7346
7352
  } = tableProps;
7347
7353
  const {
7348
7354
  isGroup,
7355
+ overflowX,
7349
7356
  scrollXLoad,
7350
7357
  scrollYLoad,
7351
7358
  dragCol
@@ -7369,8 +7376,10 @@ const header_renderType = 'header';
7369
7376
  isOptimizeMode = true;
7370
7377
  }
7371
7378
  }
7372
- if (fixedType) {
7379
+ if (fixedType || !overflowX) {
7373
7380
  renderColumnList = visibleColumn;
7381
+ }
7382
+ if (fixedType) {
7374
7383
  // 如果是使用优化模式
7375
7384
  if (isOptimizeMode) {
7376
7385
  renderColumnList = fixedColumn || [];
@@ -7838,6 +7847,7 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
7838
7847
  } = tableInternalData;
7839
7848
  const {
7840
7849
  isGroup,
7850
+ overflowX,
7841
7851
  scrollXLoad,
7842
7852
  scrollYLoad,
7843
7853
  dragCol
@@ -7852,8 +7862,10 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
7852
7862
  isOptimizeMode = true;
7853
7863
  }
7854
7864
  }
7855
- if (fixedType) {
7865
+ if (fixedType || !overflowX) {
7856
7866
  renderColumnList = visibleColumn;
7867
+ }
7868
+ if (fixedType) {
7857
7869
  if (isOptimizeMode) {
7858
7870
  renderColumnList = fixedColumn || [];
7859
7871
  }
@@ -9762,6 +9774,10 @@ const {
9762
9774
  } = props;
9763
9775
  return !defaultOptions.original && defaultOptions.mode === 'current' && (storeData.isPrint || ['html', 'xlsx'].indexOf(defaultOptions.type) > -1);
9764
9776
  });
9777
+ // const computeSupportGroup = computed(() => {
9778
+ // const { defaultOptions } = props
9779
+ // return ['html', 'xlsx', 'csv', 'txt'].indexOf(defaultOptions.type) > -1
9780
+ // })
9765
9781
  const computeSupportStyle = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
9766
9782
  const {
9767
9783
  defaultOptions
@@ -9909,6 +9925,7 @@ const {
9909
9925
  const showSheet = computeShowSheet.value;
9910
9926
  const supportMerge = computeSupportMerge.value;
9911
9927
  const supportStyle = computeSupportStyle.value;
9928
+ // const supportGroup = computeSupportGroup.value
9912
9929
  const slots = defaultOptions.slots || {};
9913
9930
  const topSlot = slots.top;
9914
9931
  const bottomSlot = slots.bottom;
@@ -10067,6 +10084,9 @@ const {
10067
10084
  }) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)()]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
10068
10085
  class: 'vxe-table-export--panel-option-row'
10069
10086
  }, [VxeUICheckboxComponent ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(VxeUICheckboxComponent, {
10087
+ // modelValue: supportGroup || (isHeader && hasColgroup && supportMerge) ? defaultOptions.isColgroup : false,
10088
+ // title: getI18n('vxe.export.expColgroupTitle'),
10089
+ // disabled: !supportGroup && (!isHeader || !hasColgroup || !supportMerge),
10070
10090
  modelValue: isHeader && hasColgroup && supportMerge ? defaultOptions.isColgroup : false,
10071
10091
  title: export_panel_getI18n('vxe.export.expColgroupTitle'),
10072
10092
  disabled: !isHeader || !hasColgroup || !supportMerge,
@@ -11581,6 +11601,7 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
11581
11601
  const fullColumnIdData = internalData.fullColumnIdData = {};
11582
11602
  const fullColumnFieldData = internalData.fullColumnFieldData = {};
11583
11603
  const mouseOpts = computeMouseOpts.value;
11604
+ const expandOpts = computeExpandOpts.value;
11584
11605
  const columnOpts = computeColumnOpts.value;
11585
11606
  const columnDragOpts = computeColumnDragOpts.value;
11586
11607
  const {
@@ -11686,10 +11707,8 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
11686
11707
  } else {
11687
11708
  tableFullColumn.forEach(handleFunc);
11688
11709
  }
11689
- if (true) {
11690
- if (expandColumn && mouseOpts.area) {
11691
- errLog('vxe.error.errConflicts', ['mouse-config.area', 'column.type=expand']);
11692
- }
11710
+ if (expandColumn && expandOpts.mode !== 'fixed' && mouseOpts.area) {
11711
+ errLog('vxe.error.errConflicts', ['mouse-config.area', 'column.type=expand']);
11693
11712
  }
11694
11713
  if (true) {
11695
11714
  if (htmlColumn) {
@@ -13206,7 +13225,7 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
13206
13225
  delete rExpandLazyLoadedMaps[rowid];
13207
13226
  }
13208
13227
  reactData.rowExpandLazyLoadedMaps = rExpandLazyLoadedMaps;
13209
- (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)().then(() => tableMethods.recalculate()).then(() => resolve());
13228
+ (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)().then(() => $xeTable.recalculate()).then(() => $xeTable.updateCellAreas()).then(() => resolve());
13210
13229
  });
13211
13230
  } else {
13212
13231
  resolve();
@@ -13737,6 +13756,7 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
13737
13756
  });
13738
13757
  };
13739
13758
  const handleColumn = collectColumn => {
13759
+ const expandOpts = computeExpandOpts.value;
13740
13760
  internalData.collectColumn = collectColumn;
13741
13761
  const tableFullColumn = getColumnList(collectColumn);
13742
13762
  internalData.tableFullColumn = tableFullColumn;
@@ -13744,6 +13764,11 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
13744
13764
  reactData.isDragColMove = false;
13745
13765
  initColumnSort();
13746
13766
  return Promise.resolve(restoreCustomStorage()).then(() => {
13767
+ const {
13768
+ scrollXLoad,
13769
+ scrollYLoad,
13770
+ expandColumn
13771
+ } = reactData;
13747
13772
  cacheColumnMap();
13748
13773
  parseColumns(true).then(() => {
13749
13774
  if (reactData.scrollXLoad) {
@@ -13753,10 +13778,8 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
13753
13778
  $xeTable.clearMergeCells();
13754
13779
  $xeTable.clearMergeFooterItems();
13755
13780
  $xeTable.handleTableData(true);
13756
- if (true) {
13757
- if ((reactData.scrollXLoad || reactData.scrollYLoad) && reactData.expandColumn) {
13758
- warnLog('vxe.error.scrollErrProp', ['column.type=expand']);
13759
- }
13781
+ if ((scrollXLoad || scrollYLoad) && expandColumn && expandOpts.mode !== 'fixed') {
13782
+ warnLog('vxe.error.scrollErrProp', ['column.type=expand']);
13760
13783
  }
13761
13784
  return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)().then(() => {
13762
13785
  if ($xeToolbar) {
@@ -14200,6 +14223,16 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
14200
14223
  }
14201
14224
  }
14202
14225
  };
14226
+ const handleRowExpandScroll = () => {
14227
+ const {
14228
+ elemStore
14229
+ } = internalData;
14230
+ const rowExpandEl = refRowExpandElem.value;
14231
+ const bodyScrollElem = getRefElem(elemStore['main-body-scroll']);
14232
+ if (rowExpandEl && bodyScrollElem) {
14233
+ rowExpandEl.scrollTop = bodyScrollElem.scrollTop;
14234
+ }
14235
+ };
14203
14236
  tableMethods = {
14204
14237
  dispatchEvent,
14205
14238
  /**
@@ -16187,7 +16220,7 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
16187
16220
  const {
16188
16221
  rowExpandedMaps,
16189
16222
  rowExpandLazyLoadedMaps,
16190
- expandColumn: column
16223
+ expandColumn
16191
16224
  } = reactData;
16192
16225
  const {
16193
16226
  fullAllDataRowIdData
@@ -16203,8 +16236,8 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
16203
16236
  toggleMethod
16204
16237
  } = expandOpts;
16205
16238
  const lazyRests = [];
16206
- const columnIndex = tableMethods.getColumnIndex(column);
16207
- const $columnIndex = tableMethods.getVMColumnIndex(column);
16239
+ const columnIndex = tableMethods.getColumnIndex(expandColumn);
16240
+ const $columnIndex = tableMethods.getVMColumnIndex(expandColumn);
16208
16241
  if (rows) {
16209
16242
  if (!external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(rows)) {
16210
16243
  rows = [rows];
@@ -16217,7 +16250,7 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
16217
16250
  const validRows = toggleMethod ? rows.filter(row => toggleMethod({
16218
16251
  $table: $xeTable,
16219
16252
  expanded,
16220
- column,
16253
+ column: expandColumn,
16221
16254
  columnIndex,
16222
16255
  $columnIndex,
16223
16256
  row,
@@ -16250,7 +16283,13 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
16250
16283
  }
16251
16284
  }
16252
16285
  reactData.rowExpandedMaps = rExpandedMaps;
16253
- return Promise.all(lazyRests).then(() => tableMethods.recalculate());
16286
+ return Promise.all(lazyRests).then(() => $xeTable.recalculate()).then(() => {
16287
+ if (expandColumn) {
16288
+ updateRowExpandStyle();
16289
+ handleRowExpandScroll();
16290
+ }
16291
+ return $xeTable.updateCellAreas();
16292
+ });
16254
16293
  },
16255
16294
  /**
16256
16295
  * 判断行是否为展开状态
@@ -16290,7 +16329,7 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
16290
16329
  if (expList.length) {
16291
16330
  tableMethods.recalculate();
16292
16331
  }
16293
- });
16332
+ }).then(() => $xeTable.updateCellAreas());
16294
16333
  },
16295
16334
  clearRowExpandReserve() {
16296
16335
  internalData.rowExpandedReserveRowMap = {};
@@ -16771,8 +16810,8 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
16771
16810
  mouseConfig
16772
16811
  } = props;
16773
16812
  const mouseOpts = computeMouseOpts.value;
16774
- if (mouseConfig && mouseOpts.area && $xeTable.handleRecalculateCellAreas) {
16775
- return $xeTable.handleRecalculateCellAreas();
16813
+ if (mouseConfig && mouseOpts.area && $xeTable.handleRecalculateCellAreaEvent) {
16814
+ return $xeTable.handleRecalculateCellAreaEvent();
16776
16815
  }
16777
16816
  return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)();
16778
16817
  },
@@ -18678,7 +18717,7 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
18678
18717
  }
18679
18718
  vLen++;
18680
18719
  });
18681
- const isSelected = vLen > 0 ? sLen >= vLen : sLen >= rootList.length;
18720
+ const isSelected = rootList.length > 0 ? vLen > 0 ? sLen >= vLen : sLen >= rootList.length : false;
18682
18721
  const halfSelect = !isSelected && (sLen >= 1 || hLen >= 1);
18683
18722
  reactData.isAllSelected = isSelected;
18684
18723
  reactData.isIndeterminate = halfSelect;
@@ -20680,7 +20719,8 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
20680
20719
  updateScrollXSpace() {
20681
20720
  const {
20682
20721
  isGroup,
20683
- scrollXLoad
20722
+ scrollXLoad,
20723
+ overflowX
20684
20724
  } = reactData;
20685
20725
  const {
20686
20726
  visibleColumn,
@@ -20700,7 +20740,7 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
20700
20740
  const footerElem = tableFooterElem ? tableFooterElem.querySelector('.vxe-table--footer') : null;
20701
20741
  const leftSpaceWidth = visibleColumn.slice(0, scrollXStore.startIndex).reduce((previous, column) => previous + column.renderWidth, 0);
20702
20742
  let marginLeft = '';
20703
- if (scrollXLoad) {
20743
+ if (scrollXLoad && overflowX) {
20704
20744
  marginLeft = `${leftSpaceWidth}px`;
20705
20745
  }
20706
20746
  if (headerElem) {
@@ -21522,6 +21562,7 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
21522
21562
  scrollYLoad,
21523
21563
  expandColumn
21524
21564
  } = reactData;
21565
+ const expandOpts = computeExpandOpts.value;
21525
21566
  internalData.inited = true;
21526
21567
  internalData.initStatus = true;
21527
21568
  if (!initStatus) {
@@ -21532,7 +21573,7 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
21532
21573
  // if (checkboxColumn && internalData.tableFullData.length > 300 && !checkboxOpts.checkField) {
21533
21574
  // warnLog('vxe.error.checkProp', ['checkbox-config.checkField'])
21534
21575
  // }
21535
- if ((scrollXLoad || scrollYLoad) && expandColumn) {
21576
+ if ((scrollXLoad || scrollYLoad) && expandColumn && expandOpts.mode !== 'fixed') {
21536
21577
  warnLog('vxe.error.scrollErrProp', ['column.type=expand']);
21537
21578
  }
21538
21579
  return tableMethods.recalculate();
@@ -21578,6 +21619,12 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
21578
21619
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => props.showFooter, () => {
21579
21620
  reScrollFlag.value++;
21580
21621
  });
21622
+ (0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => reactData.overflowX, () => {
21623
+ reScrollFlag.value++;
21624
+ });
21625
+ (0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => reactData.overflowY, () => {
21626
+ reScrollFlag.value++;
21627
+ });
21581
21628
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(reScrollFlag, () => {
21582
21629
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(() => {
21583
21630
  tableMethods.recalculate(true).then(() => tableMethods.refreshScroll());
@@ -23258,9 +23305,6 @@ edit_hook_hooks.add('tableEditModule', {
23258
23305
  });
23259
23306
  };
23260
23307
  const handleClearEdit = (evnt, targetRow) => {
23261
- const {
23262
- mouseConfig
23263
- } = props;
23264
23308
  const {
23265
23309
  editStore
23266
23310
  } = reactData;
@@ -23273,7 +23317,6 @@ edit_hook_hooks.add('tableEditModule', {
23273
23317
  column
23274
23318
  } = actived;
23275
23319
  const validOpts = computeValidOpts.value;
23276
- const mouseOpts = computeMouseOpts.value;
23277
23320
  if (row || column) {
23278
23321
  if (targetRow && getRowid($xeTable, targetRow) !== getRowid($xeTable, row)) {
23279
23322
  return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)();
@@ -23301,11 +23344,7 @@ edit_hook_hooks.add('tableEditModule', {
23301
23344
  }
23302
23345
  }
23303
23346
  }
23304
- return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)().then(() => {
23305
- if (mouseConfig && mouseOpts.area && $xeTable.handleRecalculateCellAreas) {
23306
- return $xeTable.handleRecalculateCellAreas();
23307
- }
23308
- });
23347
+ return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)().then(() => $xeTable.updateCellAreas());
23309
23348
  };
23310
23349
  const handleEditActive = (params, evnt, isFocus) => {
23311
23350
  const {
@@ -25351,9 +25390,13 @@ export_hook_hooks.add('tableExportModule', {
25351
25390
  */
25352
25391
  exportData(options) {
25353
25392
  const {
25354
- treeConfig
25393
+ treeConfig,
25394
+ showHeader,
25395
+ showFooter
25355
25396
  } = props;
25356
25397
  const {
25398
+ mergeList,
25399
+ mergeFooterList,
25357
25400
  isGroup,
25358
25401
  tableGroupColumn
25359
25402
  } = reactData;
@@ -25363,19 +25406,23 @@ export_hook_hooks.add('tableExportModule', {
25363
25406
  } = internalData;
25364
25407
  const exportOpts = computeExportOpts.value;
25365
25408
  const treeOpts = computeTreeOpts.value;
25409
+ const proxyOpts = $xeGrid ? $xeGrid.getComputeMaps().computeProxyOpts.value : {};
25410
+ const hasMerge = !!(mergeList.length || mergeFooterList.length);
25366
25411
  const opts = Object.assign({
25412
+ message: true,
25413
+ isHeader: showHeader,
25414
+ isFooter: showFooter,
25415
+ isColgroup: isGroup,
25416
+ isMerge: hasMerge,
25417
+ useStyle: true,
25418
+ current: 'current',
25419
+ modes: ['current', 'selected'].concat(proxyOpts.ajax && proxyOpts.ajax.queryAll ? ['all'] : []),
25420
+ download: true,
25421
+ type: 'csv'
25367
25422
  // filename: '',
25368
25423
  // sheetName: '',
25369
25424
  // original: false,
25370
- // message: false,
25371
- isHeader: true,
25372
- isFooter: true,
25373
- isColgroup: true,
25374
- // isMerge: false,
25375
25425
  // isAllExpand: false,
25376
- download: true,
25377
- type: 'csv',
25378
- mode: 'current'
25379
25426
  // data: null,
25380
25427
  // remote: false,
25381
25428
  // dataFilterMethod: null,
@@ -25398,7 +25445,22 @@ export_hook_hooks.add('tableExportModule', {
25398
25445
  excludeFields
25399
25446
  } = opts;
25400
25447
  let groups = [];
25401
- const customCols = columns && columns.length ? columns : null;
25448
+ const customCols = columns && columns.length ? columns : external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().searchTree(tableGroupColumn, column => {
25449
+ const isColGroup = column.children && column.children.length;
25450
+ let isChecked = false;
25451
+ if (columns && columns.length) {
25452
+ isChecked = handleFilterColumns(opts, column, columns);
25453
+ } else if (excludeFields || includeFields) {
25454
+ isChecked = handleFilterFields(opts, column, includeFields, excludeFields);
25455
+ } else {
25456
+ isChecked = column.visible && (isColGroup || defaultFilterExportColumn(column));
25457
+ }
25458
+ return isChecked;
25459
+ }, {
25460
+ children: 'children',
25461
+ mapChildren: 'childNodes',
25462
+ original: true
25463
+ });
25402
25464
  const handleOptions = Object.assign({}, opts, {
25403
25465
  filename: '',
25404
25466
  sheetName: ''
@@ -28248,6 +28310,11 @@ render_renderer.mixin({
28248
28310
  tableFilterDefaultMethod: handleFilterMethod,
28249
28311
  tableExportMethod: handleExportSelectMethod
28250
28312
  },
28313
+ formatOption: {
28314
+ renderTableDefault(renderOpts, params) {
28315
+ return getCellLabelVNs(renderOpts, params, getSelectCellValue(renderOpts, params));
28316
+ }
28317
+ },
28251
28318
  VxeTreeSelect: {
28252
28319
  tableAutoFocus: 'input',
28253
28320
  renderTableEdit: defaultTableOrTreeSelectEditRender,
@@ -28256,6 +28323,11 @@ render_renderer.mixin({
28256
28323
  },
28257
28324
  tableExportMethod: handleExportTreeSelectMethod
28258
28325
  },
28326
+ formatTree: {
28327
+ renderTableDefault(renderOpts, params) {
28328
+ return getCellLabelVNs(renderOpts, params, getTreeSelectCellValue(renderOpts, params));
28329
+ }
28330
+ },
28259
28331
  VxeTableSelect: {
28260
28332
  tableAutoFocus: 'input',
28261
28333
  renderTableEdit: defaultTableOrTreeSelectEditRender,