vxe-table 4.7.22 → 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/edit/hook.js +1 -1
- 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 +3 -2
- package/es/ui/src/log.js +1 -1
- package/lib/index.umd.js +24 -13
- package/lib/index.umd.min.js +1 -1
- package/lib/table/module/edit/hook.js +1 -1
- package/lib/table/module/edit/hook.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 +4 -3
- 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/edit/hook.ts +1 -1
- 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
- package/packages/ui/index.ts +3 -1
|
@@ -760,7 +760,7 @@ hooks.add('tableEditModule', {
|
|
|
760
760
|
let { autofocus, autoselect } = editRender;
|
|
761
761
|
let inputElem;
|
|
762
762
|
if (!autofocus && compRender) {
|
|
763
|
-
autofocus = compRender.tableAutofocus || compRender.autofocus;
|
|
763
|
+
autofocus = compRender.tableAutoFocus || compRender.tableAutofocus || compRender.autofocus;
|
|
764
764
|
}
|
|
765
765
|
if (!autoselect && compRender) {
|
|
766
766
|
autoselect = compRender.tableAutoSelect || compRender.autoselect;
|
|
@@ -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,7 +1,8 @@
|
|
|
1
1
|
import { VxeUI } from '@vxe-ui/core';
|
|
2
2
|
import { getFuncText } from './src/utils';
|
|
3
|
-
|
|
4
|
-
VxeUI.
|
|
3
|
+
export const version = "4.7.24";
|
|
4
|
+
VxeUI.version = version;
|
|
5
|
+
VxeUI.tableVersion = "4.7.24";
|
|
5
6
|
VxeUI.setConfig({
|
|
6
7
|
emptyCell: ' ',
|
|
7
8
|
table: {
|
package/es/ui/src/log.js
CHANGED
package/lib/index.umd.js
CHANGED
|
@@ -1718,7 +1718,8 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
1718
1718
|
setup: function() { return /* reexport */ setup; },
|
|
1719
1719
|
t: function() { return /* reexport */ t; },
|
|
1720
1720
|
use: function() { return /* reexport */ use; },
|
|
1721
|
-
validators: function() { return /* reexport */ validators; }
|
|
1721
|
+
validators: function() { return /* reexport */ validators; },
|
|
1722
|
+
version: function() { return /* reexport */ version; }
|
|
1722
1723
|
});
|
|
1723
1724
|
|
|
1724
1725
|
// NAMESPACE OBJECT: ./packages/components.ts
|
|
@@ -1766,7 +1767,8 @@ __webpack_require__.d(components_namespaceObject, {
|
|
|
1766
1767
|
setup: function() { return setup; },
|
|
1767
1768
|
t: function() { return t; },
|
|
1768
1769
|
use: function() { return use; },
|
|
1769
|
-
validators: function() { return validators; }
|
|
1770
|
+
validators: function() { return validators; },
|
|
1771
|
+
version: function() { return version; }
|
|
1770
1772
|
});
|
|
1771
1773
|
|
|
1772
1774
|
;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js
|
|
@@ -1949,8 +1951,9 @@ function eqEmptyValue(cellValue) {
|
|
|
1949
1951
|
;// CONCATENATED MODULE: ./packages/ui/index.ts
|
|
1950
1952
|
|
|
1951
1953
|
|
|
1952
|
-
|
|
1953
|
-
core_.VxeUI.
|
|
1954
|
+
const version = "4.7.24";
|
|
1955
|
+
core_.VxeUI.version = version;
|
|
1956
|
+
core_.VxeUI.tableVersion = "4.7.24";
|
|
1954
1957
|
core_.VxeUI.setConfig({
|
|
1955
1958
|
emptyCell: ' ',
|
|
1956
1959
|
table: {
|
|
@@ -2255,9 +2258,9 @@ var es_array_push = __webpack_require__(4114);
|
|
|
2255
2258
|
const {
|
|
2256
2259
|
log: log_log
|
|
2257
2260
|
} = core_.VxeUI;
|
|
2258
|
-
const
|
|
2259
|
-
const warnLog = log_log.create('warn',
|
|
2260
|
-
const errLog = log_log.create('error',
|
|
2261
|
+
const log_version = `table v${"4.7.24"}`;
|
|
2262
|
+
const warnLog = log_log.create('warn', log_version);
|
|
2263
|
+
const errLog = log_log.create('error', log_version);
|
|
2261
2264
|
;// CONCATENATED MODULE: ./packages/table/src/columnInfo.ts
|
|
2262
2265
|
|
|
2263
2266
|
|
|
@@ -5361,7 +5364,7 @@ const lineOffsetSizes = {
|
|
|
5361
5364
|
});
|
|
5362
5365
|
} else {
|
|
5363
5366
|
const compConf = emptyOpts.name ? body_renderer.get(emptyOpts.name) : null;
|
|
5364
|
-
const rtEmptyView = compConf ? compConf.renderTableEmptyView || compConf.renderEmpty : null;
|
|
5367
|
+
const rtEmptyView = compConf ? compConf.renderTableEmpty || compConf.renderTableEmptyView || compConf.renderEmpty : null;
|
|
5365
5368
|
if (rtEmptyView) {
|
|
5366
5369
|
emptyContent = getSlotVNs(rtEmptyView(emptyOpts, {
|
|
5367
5370
|
$table: $xeTable
|
|
@@ -15476,7 +15479,7 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
15476
15479
|
return slots.empty(params);
|
|
15477
15480
|
} else {
|
|
15478
15481
|
const compConf = emptyOpts.name ? table_renderer.get(emptyOpts.name) : null;
|
|
15479
|
-
const rtEmptyView = compConf ? compConf.renderTableEmptyView || compConf.renderEmpty : null;
|
|
15482
|
+
const rtEmptyView = compConf ? compConf.renderTableEmpty || compConf.renderTableEmptyView || compConf.renderEmpty : null;
|
|
15480
15483
|
if (rtEmptyView) {
|
|
15481
15484
|
return getSlotVNs(rtEmptyView(emptyOpts, params));
|
|
15482
15485
|
}
|
|
@@ -17816,7 +17819,7 @@ edit_hook_hooks.add('tableEditModule', {
|
|
|
17816
17819
|
} = editRender;
|
|
17817
17820
|
let inputElem;
|
|
17818
17821
|
if (!autofocus && compRender) {
|
|
17819
|
-
autofocus = compRender.tableAutofocus || compRender.autofocus;
|
|
17822
|
+
autofocus = compRender.tableAutoFocus || compRender.tableAutofocus || compRender.autofocus;
|
|
17820
17823
|
}
|
|
17821
17824
|
if (!autoselect && compRender) {
|
|
17822
17825
|
autoselect = compRender.tableAutoSelect || compRender.autoselect;
|
|
@@ -19437,7 +19440,7 @@ export_hook_hooks.add('tableExportModule', {
|
|
|
19437
19440
|
mode: 'insert',
|
|
19438
19441
|
message: true,
|
|
19439
19442
|
types: external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().keys(importOpts._typeMaps)
|
|
19440
|
-
},
|
|
19443
|
+
}, importOpts, options);
|
|
19441
19444
|
const {
|
|
19442
19445
|
types
|
|
19443
19446
|
} = defOpts;
|
|
@@ -19482,21 +19485,29 @@ export_hook_hooks.add('tableExportModule', {
|
|
|
19482
19485
|
},
|
|
19483
19486
|
openExport(options) {
|
|
19484
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);
|
|
19485
19493
|
if (true) {
|
|
19486
19494
|
if (!props.exportConfig) {
|
|
19487
19495
|
errLog('vxe.error.reqProp', ['export-config']);
|
|
19488
19496
|
}
|
|
19489
19497
|
}
|
|
19490
|
-
handleExportAndPrint(
|
|
19498
|
+
handleExportAndPrint(defOpts);
|
|
19491
19499
|
},
|
|
19492
19500
|
openPrint(options) {
|
|
19493
19501
|
const printOpts = computePrintOpts.value;
|
|
19502
|
+
const defOpts = Object.assign({
|
|
19503
|
+
message: true
|
|
19504
|
+
}, printOpts, options);
|
|
19494
19505
|
if (true) {
|
|
19495
19506
|
if (!props.printConfig) {
|
|
19496
19507
|
errLog('vxe.error.reqProp', ['print-config']);
|
|
19497
19508
|
}
|
|
19498
19509
|
}
|
|
19499
|
-
handleExportAndPrint(
|
|
19510
|
+
handleExportAndPrint(defOpts, true);
|
|
19500
19511
|
}
|
|
19501
19512
|
};
|
|
19502
19513
|
return exportMethods;
|