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.
- package/es/table/module/export/hook.js +15 -3
- package/es/table/src/body.js +1 -1
- package/es/table/src/table.js +1 -1
- package/es/ui/index.js +2 -2
- package/es/ui/src/log.js +1 -1
- package/lib/index.umd.js +16 -8
- package/lib/index.umd.min.js +1 -1
- package/lib/table/module/export/hook.js +11 -3
- package/lib/table/module/export/hook.min.js +1 -1
- package/lib/table/src/body.js +1 -1
- package/lib/table/src/body.min.js +1 -1
- package/lib/table/src/table.js +1 -1
- package/lib/table/src/table.min.js +1 -1
- package/lib/ui/index.js +2 -2
- package/lib/ui/index.min.js +1 -1
- package/lib/ui/src/log.js +1 -1
- package/lib/ui/src/log.min.js +1 -1
- package/package.json +2 -2
- package/packages/table/module/export/hook.ts +15 -3
- package/packages/table/src/body.ts +1 -1
- package/packages/table/src/table.ts +1 -1
|
@@ -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({
|
|
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(
|
|
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(
|
|
1309
|
+
handleExportAndPrint(defOpts, true);
|
|
1298
1310
|
}
|
|
1299
1311
|
};
|
|
1300
1312
|
return exportMethods;
|
package/es/table/src/body.js
CHANGED
|
@@ -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
|
}
|
package/es/table/src/table.js
CHANGED
|
@@ -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.
|
|
3
|
+
export const version = "4.7.24";
|
|
4
4
|
VxeUI.version = version;
|
|
5
|
-
VxeUI.tableVersion = "4.7.
|
|
5
|
+
VxeUI.tableVersion = "4.7.24";
|
|
6
6
|
VxeUI.setConfig({
|
|
7
7
|
emptyCell: ' ',
|
|
8
8
|
table: {
|
package/es/ui/src/log.js
CHANGED
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.
|
|
1954
|
+
const version = "4.7.24";
|
|
1955
1955
|
core_.VxeUI.version = version;
|
|
1956
|
-
core_.VxeUI.tableVersion = "4.7.
|
|
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.
|
|
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
|
-
},
|
|
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(
|
|
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(
|
|
19510
|
+
handleExportAndPrint(defOpts, true);
|
|
19503
19511
|
}
|
|
19504
19512
|
};
|
|
19505
19513
|
return exportMethods;
|