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
package/dist/all.esm.js
CHANGED
|
@@ -47,7 +47,7 @@ function getDefaultConfig(val1, def1) {
|
|
|
47
47
|
return XEUtils.eqNull(val1) ? def1 : val1;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
const version = "4.21.0
|
|
50
|
+
const version = "4.21.0";
|
|
51
51
|
VxeUI.version = version;
|
|
52
52
|
VxeUI.tableVersion = version;
|
|
53
53
|
VxeUI.setConfig({
|
|
@@ -769,7 +769,7 @@ function wheelScrollTopTo(diffNum, cb) {
|
|
|
769
769
|
}
|
|
770
770
|
|
|
771
771
|
const { log } = VxeUI;
|
|
772
|
-
const tableVersion = `table v${"4.21.0
|
|
772
|
+
const tableVersion = `table v${"4.21.0"}`;
|
|
773
773
|
function createComponentLog(name) {
|
|
774
774
|
const uiVersion = VxeUI.uiVersion ? `ui v${VxeUI.uiVersion}` : '';
|
|
775
775
|
const ganttVersion = VxeUI.ganttVersion ? `gantt v${VxeUI.ganttVersion}` : '';
|
|
@@ -11628,7 +11628,7 @@ hooks$4.add('tableExportModule', {
|
|
|
11628
11628
|
VxeUI.modal.message({ content: getI18n$4('vxe.error.impFields'), status: 'error' });
|
|
11629
11629
|
}
|
|
11630
11630
|
if (_importReject) {
|
|
11631
|
-
_importReject({ status: false });
|
|
11631
|
+
_importReject({ status: false, msg: 'field mismatching' });
|
|
11632
11632
|
}
|
|
11633
11633
|
}
|
|
11634
11634
|
};
|
|
@@ -11643,7 +11643,7 @@ hooks$4.add('tableExportModule', {
|
|
|
11643
11643
|
VxeUI.modal.message({ content: getI18n$4('vxe.error.notType', [type]), status: 'error' });
|
|
11644
11644
|
}
|
|
11645
11645
|
}
|
|
11646
|
-
const params = { status: false };
|
|
11646
|
+
const params = { status: false, msg: 'type error' };
|
|
11647
11647
|
return Promise.reject(params);
|
|
11648
11648
|
}
|
|
11649
11649
|
const rest = new Promise((resolve, reject) => {
|
|
@@ -11679,7 +11679,7 @@ hooks$4.add('tableExportModule', {
|
|
|
11679
11679
|
const reader = new FileReader();
|
|
11680
11680
|
reader.onerror = () => {
|
|
11681
11681
|
errLog$5('vxe.error.notType', [type]);
|
|
11682
|
-
_importReject({ status: false });
|
|
11682
|
+
_importReject({ status: false, msg: 'reading file error' });
|
|
11683
11683
|
};
|
|
11684
11684
|
reader.onload = (e) => {
|
|
11685
11685
|
handleImport(e.target.result, options);
|
|
@@ -11691,7 +11691,7 @@ hooks$4.add('tableExportModule', {
|
|
|
11691
11691
|
else {
|
|
11692
11692
|
// 不支持的浏览器
|
|
11693
11693
|
errLog$5('vxe.error.notExp');
|
|
11694
|
-
_importResolve({ status:
|
|
11694
|
+
_importResolve({ status: false, msg: 'unsupported browser' });
|
|
11695
11695
|
}
|
|
11696
11696
|
});
|
|
11697
11697
|
return rest.then(() => {
|
|
@@ -12104,7 +12104,7 @@ hooks$4.add('tableExportModule', {
|
|
|
12104
12104
|
if (['xlsx', 'pdf'].includes(type)) {
|
|
12105
12105
|
warnLog$4('vxe.error.reqPlugin', [4, 'plugin-export-xlsx']);
|
|
12106
12106
|
}
|
|
12107
|
-
const params = { status: false };
|
|
12107
|
+
const params = { status: false, msg: 'type error' };
|
|
12108
12108
|
return Promise.reject(params);
|
|
12109
12109
|
}
|
|
12110
12110
|
if (!handleOptions.print) {
|
|
@@ -12112,7 +12112,7 @@ hooks$4.add('tableExportModule', {
|
|
|
12112
12112
|
const beRest = beforeExportMethod({ options: handleOptions, $table: $xeTable, $grid: $xeGrid, $gantt: $xeGantt });
|
|
12113
12113
|
if (XEUtils.isBoolean(beRest)) {
|
|
12114
12114
|
if (!beRest) {
|
|
12115
|
-
const params = { status: false };
|
|
12115
|
+
const params = { status: false, msg: 'before prevent' };
|
|
12116
12116
|
return Promise.reject(params);
|
|
12117
12117
|
}
|
|
12118
12118
|
}
|
|
@@ -12229,7 +12229,7 @@ hooks$4.add('tableExportModule', {
|
|
|
12229
12229
|
const biRest = beforeImportMethod({ options: opts, $table: $xeTable });
|
|
12230
12230
|
if (XEUtils.isBoolean(biRest)) {
|
|
12231
12231
|
if (!biRest) {
|
|
12232
|
-
const params = { status: false };
|
|
12232
|
+
const params = { status: false, mas: 'before prevent' };
|
|
12233
12233
|
return Promise.reject(params);
|
|
12234
12234
|
}
|
|
12235
12235
|
}
|
|
@@ -12251,7 +12251,7 @@ hooks$4.add('tableExportModule', {
|
|
|
12251
12251
|
const biRest = beforeImportMethod({ options: opts, $table: $xeTable });
|
|
12252
12252
|
if (XEUtils.isBoolean(biRest)) {
|
|
12253
12253
|
if (!biRest) {
|
|
12254
|
-
const params = { status: false };
|
|
12254
|
+
const params = { status: false, mas: 'before prevent' };
|
|
12255
12255
|
return Promise.reject(params);
|
|
12256
12256
|
}
|
|
12257
12257
|
}
|
|
@@ -12401,7 +12401,8 @@ hooks$4.add('tableExportModule', {
|
|
|
12401
12401
|
}
|
|
12402
12402
|
}
|
|
12403
12403
|
else {
|
|
12404
|
-
|
|
12404
|
+
errLog$5('vxe.error.reqComp', ['vxe-print']);
|
|
12405
|
+
const e = { status: false, msg: 'print not exist' };
|
|
12405
12406
|
reject(e);
|
|
12406
12407
|
}
|
|
12407
12408
|
});
|