vxe-table 4.7.27 → 4.7.28-beta.0

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.
@@ -895,11 +895,17 @@ hooks.add('tableExportModule', {
895
895
  const hasTree = treeConfig;
896
896
  const customOpts = computeCustomOpts.value;
897
897
  const selectRecords = $xeTable.getCheckboxRecords();
898
+ const proxyOpts = $xeGrid ? $xeGrid.getComputeMaps().computeProxyOpts.value : {};
898
899
  const hasFooter = !!footerTableData.length;
899
900
  const hasMerge = !hasTree && mergeList.length;
900
- const defOpts = Object.assign({ message: true, isHeader: showHeader, isFooter: showFooter }, options);
901
+ const defOpts = Object.assign({
902
+ message: true,
903
+ isHeader: showHeader,
904
+ isFooter: showFooter,
905
+ modes: ['current', 'selected'].concat(proxyOpts.ajax && proxyOpts.ajax.queryAll ? ['all'] : [])
906
+ }, options);
901
907
  const types = defOpts.types || XEUtils.keys(exportOpts._typeMaps);
902
- const modes = defOpts.modes;
908
+ const modes = defOpts.modes || [];
903
909
  const checkMethod = customOpts.checkMethod;
904
910
  const exportColumns = collectColumn.slice(0);
905
911
  const { columns } = defOpts;
@@ -1257,9 +1263,11 @@ hooks.add('tableExportModule', {
1257
1263
  const defOpts = Object.assign({
1258
1264
  mode: 'insert',
1259
1265
  message: true,
1260
- types: XEUtils.keys(importOpts._typeMaps)
1266
+ types: XEUtils.keys(importOpts._typeMaps),
1267
+ modes: ['insert', 'covering']
1261
1268
  }, importOpts, options);
1262
- const { types } = defOpts;
1269
+ const types = defOpts.types || [];
1270
+ const modes = defOpts.modes || [];
1263
1271
  const isTree = !!treeConfig;
1264
1272
  if (isTree) {
1265
1273
  if (defOpts.message) {
@@ -1279,7 +1287,7 @@ hooks.add('tableExportModule', {
1279
1287
  label: `vxe.export.types.${value}`
1280
1288
  };
1281
1289
  });
1282
- const modeList = defOpts.modes.map((value) => {
1290
+ const modeList = modes.map((value) => {
1283
1291
  return {
1284
1292
  value,
1285
1293
  label: `vxe.import.modes.${value}`
package/es/ui/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { VxeUI } from '@vxe-ui/core';
2
2
  import { getFuncText } from './src/utils';
3
- export const version = "4.7.27";
3
+ export const version = "4.7.28-beta.0";
4
4
  VxeUI.version = version;
5
- VxeUI.tableVersion = "4.7.27";
5
+ VxeUI.tableVersion = "4.7.28-beta.0";
6
6
  VxeUI.setConfig({
7
7
  emptyCell: ' ',
8
8
  table: {
@@ -103,8 +103,7 @@ VxeUI.setConfig({
103
103
  html: 1,
104
104
  xml: 1,
105
105
  txt: 1
106
- },
107
- modes: ['insert', 'covering']
106
+ }
108
107
  },
109
108
  exportConfig: {
110
109
  _typeMaps: {
@@ -112,12 +111,9 @@ VxeUI.setConfig({
112
111
  html: 1,
113
112
  xml: 1,
114
113
  txt: 1
115
- },
116
- modes: ['current', 'selected']
117
- },
118
- printConfig: {
119
- modes: ['current', 'selected']
114
+ }
120
115
  },
116
+ printConfig: {},
121
117
  mouseConfig: {
122
118
  extension: true
123
119
  },
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.7.27"}`;
3
+ const version = `table v${"4.7.28-beta.0"}`;
4
4
  export const warnLog = log.create('warn', version);
5
5
  export const errLog = log.create('error', version);
package/lib/index.umd.js CHANGED
@@ -1951,9 +1951,9 @@ function eqEmptyValue(cellValue) {
1951
1951
  ;// CONCATENATED MODULE: ./packages/ui/index.ts
1952
1952
 
1953
1953
 
1954
- const version = "4.7.27";
1954
+ const version = "4.7.28-beta.0";
1955
1955
  core_.VxeUI.version = version;
1956
- core_.VxeUI.tableVersion = "4.7.27";
1956
+ core_.VxeUI.tableVersion = "4.7.28-beta.0";
1957
1957
  core_.VxeUI.setConfig({
1958
1958
  emptyCell: ' ',
1959
1959
  table: {
@@ -2054,8 +2054,7 @@ core_.VxeUI.setConfig({
2054
2054
  html: 1,
2055
2055
  xml: 1,
2056
2056
  txt: 1
2057
- },
2058
- modes: ['insert', 'covering']
2057
+ }
2059
2058
  },
2060
2059
  exportConfig: {
2061
2060
  _typeMaps: {
@@ -2063,12 +2062,9 @@ core_.VxeUI.setConfig({
2063
2062
  html: 1,
2064
2063
  xml: 1,
2065
2064
  txt: 1
2066
- },
2067
- modes: ['current', 'selected']
2068
- },
2069
- printConfig: {
2070
- modes: ['current', 'selected']
2065
+ }
2071
2066
  },
2067
+ printConfig: {},
2072
2068
  mouseConfig: {
2073
2069
  extension: true
2074
2070
  },
@@ -2258,7 +2254,7 @@ var es_array_push = __webpack_require__(4114);
2258
2254
  const {
2259
2255
  log: log_log
2260
2256
  } = core_.VxeUI;
2261
- const log_version = `table v${"4.7.27"}`;
2257
+ const log_version = `table v${"4.7.28-beta.0"}`;
2262
2258
  const warnLog = log_log.create('warn', log_version);
2263
2259
  const errLog = log_log.create('error', log_version);
2264
2260
  ;// CONCATENATED MODULE: ./packages/table/src/columnInfo.ts
@@ -19047,15 +19043,17 @@ export_hook_hooks.add('tableExportModule', {
19047
19043
  const hasTree = treeConfig;
19048
19044
  const customOpts = computeCustomOpts.value;
19049
19045
  const selectRecords = $xeTable.getCheckboxRecords();
19046
+ const proxyOpts = $xeGrid ? $xeGrid.getComputeMaps().computeProxyOpts.value : {};
19050
19047
  const hasFooter = !!footerTableData.length;
19051
19048
  const hasMerge = !hasTree && mergeList.length;
19052
19049
  const defOpts = Object.assign({
19053
19050
  message: true,
19054
19051
  isHeader: showHeader,
19055
- isFooter: showFooter
19052
+ isFooter: showFooter,
19053
+ modes: ['current', 'selected'].concat(proxyOpts.ajax && proxyOpts.ajax.queryAll ? ['all'] : [])
19056
19054
  }, options);
19057
19055
  const types = defOpts.types || external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().keys(exportOpts._typeMaps);
19058
- const modes = defOpts.modes;
19056
+ const modes = defOpts.modes || [];
19059
19057
  const checkMethod = customOpts.checkMethod;
19060
19058
  const exportColumns = collectColumn.slice(0);
19061
19059
  const {
@@ -19485,11 +19483,11 @@ export_hook_hooks.add('tableExportModule', {
19485
19483
  const defOpts = Object.assign({
19486
19484
  mode: 'insert',
19487
19485
  message: true,
19488
- types: external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().keys(importOpts._typeMaps)
19486
+ types: external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().keys(importOpts._typeMaps),
19487
+ modes: ['insert', 'covering']
19489
19488
  }, importOpts, options);
19490
- const {
19491
- types
19492
- } = defOpts;
19489
+ const types = defOpts.types || [];
19490
+ const modes = defOpts.modes || [];
19493
19491
  const isTree = !!treeConfig;
19494
19492
  if (isTree) {
19495
19493
  if (defOpts.message) {
@@ -19512,7 +19510,7 @@ export_hook_hooks.add('tableExportModule', {
19512
19510
  label: `vxe.export.types.${value}`
19513
19511
  };
19514
19512
  });
19515
- const modeList = defOpts.modes.map(value => {
19513
+ const modeList = modes.map(value => {
19516
19514
  return {
19517
19515
  value,
19518
19516
  label: `vxe.import.modes.${value}`