vxe-table 4.21.0-beta.7 → 4.21.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.
- package/dist/all.esm.js +12 -11
- package/dist/style.css +1 -1
- package/es/style.css +1 -1
- package/es/table/module/export/hook.js +10 -9
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/lib/index.umd.js +21 -11
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/table/module/export/hook.js +19 -9
- package/lib/table/module/export/hook.min.js +1 -1
- package/lib/ui/index.js +1 -1
- 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 +10 -9
- /package/es/{iconfont.1787383502391.ttf → iconfont.1787473169817.ttf} +0 -0
- /package/es/{iconfont.1787383502391.woff → iconfont.1787473169817.woff} +0 -0
- /package/es/{iconfont.1787383502391.woff2 → iconfont.1787473169817.woff2} +0 -0
- /package/lib/{iconfont.1787383502391.ttf → iconfont.1787473169817.ttf} +0 -0
- /package/lib/{iconfont.1787383502391.woff → iconfont.1787473169817.woff} +0 -0
- /package/lib/{iconfont.1787383502391.woff2 → iconfont.1787473169817.woff2} +0 -0
|
@@ -1085,7 +1085,7 @@ hooks.add('tableExportModule', {
|
|
|
1085
1085
|
VxeUI.modal.message({ content: getI18n('vxe.error.impFields'), status: 'error' });
|
|
1086
1086
|
}
|
|
1087
1087
|
if (_importReject) {
|
|
1088
|
-
_importReject({ status: false });
|
|
1088
|
+
_importReject({ status: false, msg: 'field mismatching' });
|
|
1089
1089
|
}
|
|
1090
1090
|
}
|
|
1091
1091
|
};
|
|
@@ -1100,7 +1100,7 @@ hooks.add('tableExportModule', {
|
|
|
1100
1100
|
VxeUI.modal.message({ content: getI18n('vxe.error.notType', [type]), status: 'error' });
|
|
1101
1101
|
}
|
|
1102
1102
|
}
|
|
1103
|
-
const params = { status: false };
|
|
1103
|
+
const params = { status: false, msg: 'type error' };
|
|
1104
1104
|
return Promise.reject(params);
|
|
1105
1105
|
}
|
|
1106
1106
|
const rest = new Promise((resolve, reject) => {
|
|
@@ -1136,7 +1136,7 @@ hooks.add('tableExportModule', {
|
|
|
1136
1136
|
const reader = new FileReader();
|
|
1137
1137
|
reader.onerror = () => {
|
|
1138
1138
|
errLog('vxe.error.notType', [type]);
|
|
1139
|
-
_importReject({ status: false });
|
|
1139
|
+
_importReject({ status: false, msg: 'reading file error' });
|
|
1140
1140
|
};
|
|
1141
1141
|
reader.onload = (e) => {
|
|
1142
1142
|
handleImport(e.target.result, options);
|
|
@@ -1148,7 +1148,7 @@ hooks.add('tableExportModule', {
|
|
|
1148
1148
|
else {
|
|
1149
1149
|
// 不支持的浏览器
|
|
1150
1150
|
errLog('vxe.error.notExp');
|
|
1151
|
-
_importResolve({ status:
|
|
1151
|
+
_importResolve({ status: false, msg: 'unsupported browser' });
|
|
1152
1152
|
}
|
|
1153
1153
|
});
|
|
1154
1154
|
return rest.then(() => {
|
|
@@ -1561,7 +1561,7 @@ hooks.add('tableExportModule', {
|
|
|
1561
1561
|
if (['xlsx', 'pdf'].includes(type)) {
|
|
1562
1562
|
warnLog('vxe.error.reqPlugin', [4, 'plugin-export-xlsx']);
|
|
1563
1563
|
}
|
|
1564
|
-
const params = { status: false };
|
|
1564
|
+
const params = { status: false, msg: 'type error' };
|
|
1565
1565
|
return Promise.reject(params);
|
|
1566
1566
|
}
|
|
1567
1567
|
if (!handleOptions.print) {
|
|
@@ -1569,7 +1569,7 @@ hooks.add('tableExportModule', {
|
|
|
1569
1569
|
const beRest = beforeExportMethod({ options: handleOptions, $table: $xeTable, $grid: $xeGrid, $gantt: $xeGantt });
|
|
1570
1570
|
if (XEUtils.isBoolean(beRest)) {
|
|
1571
1571
|
if (!beRest) {
|
|
1572
|
-
const params = { status: false };
|
|
1572
|
+
const params = { status: false, msg: 'before prevent' };
|
|
1573
1573
|
return Promise.reject(params);
|
|
1574
1574
|
}
|
|
1575
1575
|
}
|
|
@@ -1686,7 +1686,7 @@ hooks.add('tableExportModule', {
|
|
|
1686
1686
|
const biRest = beforeImportMethod({ options: opts, $table: $xeTable });
|
|
1687
1687
|
if (XEUtils.isBoolean(biRest)) {
|
|
1688
1688
|
if (!biRest) {
|
|
1689
|
-
const params = { status: false };
|
|
1689
|
+
const params = { status: false, mas: 'before prevent' };
|
|
1690
1690
|
return Promise.reject(params);
|
|
1691
1691
|
}
|
|
1692
1692
|
}
|
|
@@ -1708,7 +1708,7 @@ hooks.add('tableExportModule', {
|
|
|
1708
1708
|
const biRest = beforeImportMethod({ options: opts, $table: $xeTable });
|
|
1709
1709
|
if (XEUtils.isBoolean(biRest)) {
|
|
1710
1710
|
if (!biRest) {
|
|
1711
|
-
const params = { status: false };
|
|
1711
|
+
const params = { status: false, mas: 'before prevent' };
|
|
1712
1712
|
return Promise.reject(params);
|
|
1713
1713
|
}
|
|
1714
1714
|
}
|
|
@@ -1858,7 +1858,8 @@ hooks.add('tableExportModule', {
|
|
|
1858
1858
|
}
|
|
1859
1859
|
}
|
|
1860
1860
|
else {
|
|
1861
|
-
|
|
1861
|
+
errLog('vxe.error.reqComp', ['vxe-print']);
|
|
1862
|
+
const e = { status: false, msg: 'print not exist' };
|
|
1862
1863
|
reject(e);
|
|
1863
1864
|
}
|
|
1864
1865
|
});
|
package/es/ui/index.js
CHANGED
package/es/ui/src/log.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { VxeUI } from '@vxe-ui/core';
|
|
2
2
|
const { log } = VxeUI;
|
|
3
|
-
const tableVersion = `table v${"4.21.0
|
|
3
|
+
const tableVersion = `table v${"4.21.0"}`;
|
|
4
4
|
export function createComponentLog(name) {
|
|
5
5
|
const uiVersion = VxeUI.uiVersion ? `ui v${VxeUI.uiVersion}` : '';
|
|
6
6
|
const ganttVersion = VxeUI.ganttVersion ? `gantt v${VxeUI.ganttVersion}` : '';
|
package/lib/index.umd.js
CHANGED
|
@@ -3313,7 +3313,7 @@ function getDefaultConfig(val1, def1) {
|
|
|
3313
3313
|
/* unused harmony import specifier */ var VxeUI;
|
|
3314
3314
|
|
|
3315
3315
|
|
|
3316
|
-
const version = "4.21.0
|
|
3316
|
+
const version = "4.21.0";
|
|
3317
3317
|
core_.VxeUI.version = version;
|
|
3318
3318
|
core_.VxeUI.tableVersion = version;
|
|
3319
3319
|
core_.VxeUI.setConfig({
|
|
@@ -4135,7 +4135,7 @@ function getPopupAppendElement(appendTo) {
|
|
|
4135
4135
|
const {
|
|
4136
4136
|
log: log_log
|
|
4137
4137
|
} = core_.VxeUI;
|
|
4138
|
-
const tableVersion = `table v${"4.21.0
|
|
4138
|
+
const tableVersion = `table v${"4.21.0"}`;
|
|
4139
4139
|
function createComponentLog(name) {
|
|
4140
4140
|
const uiVersion = core_.VxeUI.uiVersion ? `ui v${core_.VxeUI.uiVersion}` : '';
|
|
4141
4141
|
const ganttVersion = core_.VxeUI.ganttVersion ? `gantt v${core_.VxeUI.ganttVersion}` : '';
|
|
@@ -16534,7 +16534,8 @@ export_hook_hooks.add('tableExportModule', {
|
|
|
16534
16534
|
}
|
|
16535
16535
|
if (_importReject) {
|
|
16536
16536
|
_importReject({
|
|
16537
|
-
status: false
|
|
16537
|
+
status: false,
|
|
16538
|
+
msg: 'field mismatching'
|
|
16538
16539
|
});
|
|
16539
16540
|
}
|
|
16540
16541
|
}
|
|
@@ -16560,7 +16561,8 @@ export_hook_hooks.add('tableExportModule', {
|
|
|
16560
16561
|
}
|
|
16561
16562
|
}
|
|
16562
16563
|
const params = {
|
|
16563
|
-
status: false
|
|
16564
|
+
status: false,
|
|
16565
|
+
msg: 'type error'
|
|
16564
16566
|
};
|
|
16565
16567
|
return Promise.reject(params);
|
|
16566
16568
|
}
|
|
@@ -16617,7 +16619,8 @@ export_hook_hooks.add('tableExportModule', {
|
|
|
16617
16619
|
reader.onerror = () => {
|
|
16618
16620
|
export_hook_errLog('vxe.error.notType', [type]);
|
|
16619
16621
|
_importReject({
|
|
16620
|
-
status: false
|
|
16622
|
+
status: false,
|
|
16623
|
+
msg: 'reading file error'
|
|
16621
16624
|
});
|
|
16622
16625
|
};
|
|
16623
16626
|
reader.onload = e => {
|
|
@@ -16630,7 +16633,8 @@ export_hook_hooks.add('tableExportModule', {
|
|
|
16630
16633
|
// 不支持的浏览器
|
|
16631
16634
|
export_hook_errLog('vxe.error.notExp');
|
|
16632
16635
|
_importResolve({
|
|
16633
|
-
status:
|
|
16636
|
+
status: false,
|
|
16637
|
+
msg: 'unsupported browser'
|
|
16634
16638
|
});
|
|
16635
16639
|
}
|
|
16636
16640
|
});
|
|
@@ -17117,7 +17121,8 @@ export_hook_hooks.add('tableExportModule', {
|
|
|
17117
17121
|
export_hook_warnLog('vxe.error.reqPlugin', [4, 'plugin-export-xlsx']);
|
|
17118
17122
|
}
|
|
17119
17123
|
const params = {
|
|
17120
|
-
status: false
|
|
17124
|
+
status: false,
|
|
17125
|
+
msg: 'type error'
|
|
17121
17126
|
};
|
|
17122
17127
|
return Promise.reject(params);
|
|
17123
17128
|
}
|
|
@@ -17132,7 +17137,8 @@ export_hook_hooks.add('tableExportModule', {
|
|
|
17132
17137
|
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isBoolean(beRest)) {
|
|
17133
17138
|
if (!beRest) {
|
|
17134
17139
|
const params = {
|
|
17135
|
-
status: false
|
|
17140
|
+
status: false,
|
|
17141
|
+
msg: 'before prevent'
|
|
17136
17142
|
};
|
|
17137
17143
|
return Promise.reject(params);
|
|
17138
17144
|
}
|
|
@@ -17279,7 +17285,8 @@ export_hook_hooks.add('tableExportModule', {
|
|
|
17279
17285
|
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isBoolean(biRest)) {
|
|
17280
17286
|
if (!biRest) {
|
|
17281
17287
|
const params = {
|
|
17282
|
-
status: false
|
|
17288
|
+
status: false,
|
|
17289
|
+
mas: 'before prevent'
|
|
17283
17290
|
};
|
|
17284
17291
|
return Promise.reject(params);
|
|
17285
17292
|
}
|
|
@@ -17308,7 +17315,8 @@ export_hook_hooks.add('tableExportModule', {
|
|
|
17308
17315
|
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isBoolean(biRest)) {
|
|
17309
17316
|
if (!biRest) {
|
|
17310
17317
|
const params = {
|
|
17311
|
-
status: false
|
|
17318
|
+
status: false,
|
|
17319
|
+
mas: 'before prevent'
|
|
17312
17320
|
};
|
|
17313
17321
|
return Promise.reject(params);
|
|
17314
17322
|
}
|
|
@@ -17465,8 +17473,10 @@ export_hook_hooks.add('tableExportModule', {
|
|
|
17465
17473
|
}));
|
|
17466
17474
|
}
|
|
17467
17475
|
} else {
|
|
17476
|
+
export_hook_errLog('vxe.error.reqComp', ['vxe-print']);
|
|
17468
17477
|
const e = {
|
|
17469
|
-
status: false
|
|
17478
|
+
status: false,
|
|
17479
|
+
msg: 'print not exist'
|
|
17470
17480
|
};
|
|
17471
17481
|
reject(e);
|
|
17472
17482
|
}
|