vxe-table 4.7.23 → 4.7.24

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.
@@ -1240,7 +1240,11 @@ hooks.add('tableExportModule', {
1240
1240
  const { treeConfig, importConfig } = props;
1241
1241
  const { initStore, importStore, importParams } = reactData;
1242
1242
  const importOpts = computeImportOpts.value;
1243
- const defOpts = Object.assign({ mode: 'insert', message: true, types: XEUtils.keys(importOpts._typeMaps) }, options, importOpts);
1243
+ const defOpts = Object.assign({
1244
+ mode: 'insert',
1245
+ message: true,
1246
+ types: XEUtils.keys(importOpts._typeMaps)
1247
+ }, importOpts, options);
1244
1248
  const { types } = defOpts;
1245
1249
  const isTree = !!treeConfig;
1246
1250
  if (isTree) {
@@ -1280,21 +1284,29 @@ hooks.add('tableExportModule', {
1280
1284
  },
1281
1285
  openExport(options) {
1282
1286
  const exportOpts = computeExportOpts.value;
1287
+ const defOpts = Object.assign({
1288
+ mode: 'insert',
1289
+ message: true,
1290
+ types: XEUtils.keys(exportOpts._typeMaps)
1291
+ }, exportOpts, options);
1283
1292
  if (process.env.NODE_ENV === 'development') {
1284
1293
  if (!props.exportConfig) {
1285
1294
  errLog('vxe.error.reqProp', ['export-config']);
1286
1295
  }
1287
1296
  }
1288
- handleExportAndPrint(Object.assign({}, exportOpts, options));
1297
+ handleExportAndPrint(defOpts);
1289
1298
  },
1290
1299
  openPrint(options) {
1291
1300
  const printOpts = computePrintOpts.value;
1301
+ const defOpts = Object.assign({
1302
+ message: true
1303
+ }, printOpts, options);
1292
1304
  if (process.env.NODE_ENV === 'development') {
1293
1305
  if (!props.printConfig) {
1294
1306
  errLog('vxe.error.reqProp', ['print-config']);
1295
1307
  }
1296
1308
  }
1297
- handleExportAndPrint(Object.assign({}, printOpts, options), true);
1309
+ handleExportAndPrint(defOpts, true);
1298
1310
  }
1299
1311
  };
1300
1312
  return exportMethods;
@@ -743,7 +743,7 @@ export default defineComponent({
743
743
  }
744
744
  else {
745
745
  const compConf = emptyOpts.name ? renderer.get(emptyOpts.name) : null;
746
- const rtEmptyView = compConf ? compConf.renderTableEmptyView || compConf.renderEmpty : null;
746
+ const rtEmptyView = compConf ? (compConf.renderTableEmpty || compConf.renderTableEmptyView || compConf.renderEmpty) : null;
747
747
  if (rtEmptyView) {
748
748
  emptyContent = getSlotVNs(rtEmptyView(emptyOpts, { $table: $xeTable }));
749
749
  }
@@ -6379,7 +6379,7 @@ export default defineComponent({
6379
6379
  }
6380
6380
  else {
6381
6381
  const compConf = emptyOpts.name ? renderer.get(emptyOpts.name) : null;
6382
- const rtEmptyView = compConf ? compConf.renderTableEmptyView || compConf.renderEmpty : null;
6382
+ const rtEmptyView = compConf ? (compConf.renderTableEmpty || compConf.renderTableEmptyView || compConf.renderEmpty) : null;
6383
6383
  if (rtEmptyView) {
6384
6384
  return getSlotVNs(rtEmptyView(emptyOpts, params));
6385
6385
  }
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.23";
3
+ export const version = "4.7.24";
4
4
  VxeUI.version = version;
5
- VxeUI.tableVersion = "4.7.23";
5
+ VxeUI.tableVersion = "4.7.24";
6
6
  VxeUI.setConfig({
7
7
  emptyCell: ' ',
8
8
  table: {
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.23"}`;
3
+ const version = `table v${"4.7.24"}`;
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.22";
1954
+ const version = "4.7.24";
1955
1955
  core_.VxeUI.version = version;
1956
- core_.VxeUI.tableVersion = "4.7.22";
1956
+ core_.VxeUI.tableVersion = "4.7.24";
1957
1957
  core_.VxeUI.setConfig({
1958
1958
  emptyCell: ' ',
1959
1959
  table: {
@@ -2258,7 +2258,7 @@ var es_array_push = __webpack_require__(4114);
2258
2258
  const {
2259
2259
  log: log_log
2260
2260
  } = core_.VxeUI;
2261
- const log_version = `table v${"4.7.22"}`;
2261
+ const log_version = `table v${"4.7.24"}`;
2262
2262
  const warnLog = log_log.create('warn', log_version);
2263
2263
  const errLog = log_log.create('error', log_version);
2264
2264
  ;// CONCATENATED MODULE: ./packages/table/src/columnInfo.ts
@@ -5364,7 +5364,7 @@ const lineOffsetSizes = {
5364
5364
  });
5365
5365
  } else {
5366
5366
  const compConf = emptyOpts.name ? body_renderer.get(emptyOpts.name) : null;
5367
- const rtEmptyView = compConf ? compConf.renderTableEmptyView || compConf.renderEmpty : null;
5367
+ const rtEmptyView = compConf ? compConf.renderTableEmpty || compConf.renderTableEmptyView || compConf.renderEmpty : null;
5368
5368
  if (rtEmptyView) {
5369
5369
  emptyContent = getSlotVNs(rtEmptyView(emptyOpts, {
5370
5370
  $table: $xeTable
@@ -15479,7 +15479,7 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
15479
15479
  return slots.empty(params);
15480
15480
  } else {
15481
15481
  const compConf = emptyOpts.name ? table_renderer.get(emptyOpts.name) : null;
15482
- const rtEmptyView = compConf ? compConf.renderTableEmptyView || compConf.renderEmpty : null;
15482
+ const rtEmptyView = compConf ? compConf.renderTableEmpty || compConf.renderTableEmptyView || compConf.renderEmpty : null;
15483
15483
  if (rtEmptyView) {
15484
15484
  return getSlotVNs(rtEmptyView(emptyOpts, params));
15485
15485
  }
@@ -19440,7 +19440,7 @@ export_hook_hooks.add('tableExportModule', {
19440
19440
  mode: 'insert',
19441
19441
  message: true,
19442
19442
  types: external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().keys(importOpts._typeMaps)
19443
- }, options, importOpts);
19443
+ }, importOpts, options);
19444
19444
  const {
19445
19445
  types
19446
19446
  } = defOpts;
@@ -19485,21 +19485,29 @@ export_hook_hooks.add('tableExportModule', {
19485
19485
  },
19486
19486
  openExport(options) {
19487
19487
  const exportOpts = computeExportOpts.value;
19488
+ const defOpts = Object.assign({
19489
+ mode: 'insert',
19490
+ message: true,
19491
+ types: external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().keys(exportOpts._typeMaps)
19492
+ }, exportOpts, options);
19488
19493
  if (true) {
19489
19494
  if (!props.exportConfig) {
19490
19495
  errLog('vxe.error.reqProp', ['export-config']);
19491
19496
  }
19492
19497
  }
19493
- handleExportAndPrint(Object.assign({}, exportOpts, options));
19498
+ handleExportAndPrint(defOpts);
19494
19499
  },
19495
19500
  openPrint(options) {
19496
19501
  const printOpts = computePrintOpts.value;
19502
+ const defOpts = Object.assign({
19503
+ message: true
19504
+ }, printOpts, options);
19497
19505
  if (true) {
19498
19506
  if (!props.printConfig) {
19499
19507
  errLog('vxe.error.reqProp', ['print-config']);
19500
19508
  }
19501
19509
  }
19502
- handleExportAndPrint(Object.assign({}, printOpts, options), true);
19510
+ handleExportAndPrint(defOpts, true);
19503
19511
  }
19504
19512
  };
19505
19513
  return exportMethods;