vxe-table 4.21.0-beta.1 → 4.21.0-beta.3
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 +293 -190
- package/dist/style.css +1 -1
- package/es/locale/lang/ar-EG.js +2 -0
- package/es/locale/lang/de-DE.js +2 -0
- package/es/locale/lang/en-US.js +2 -0
- package/es/locale/lang/es-ES.js +2 -0
- package/es/locale/lang/fr-FR.js +2 -0
- package/es/locale/lang/hu-HU.js +2 -0
- package/es/locale/lang/hy-AM.js +2 -0
- package/es/locale/lang/id-ID.js +2 -0
- package/es/locale/lang/it-IT.js +2 -0
- package/es/locale/lang/ja-JP.js +2 -0
- package/es/locale/lang/ko-KR.js +2 -0
- package/es/locale/lang/ms-MY.js +2 -0
- package/es/locale/lang/nb-NO.js +2 -0
- package/es/locale/lang/pt-BR.js +2 -0
- package/es/locale/lang/ru-RU.js +2 -0
- package/es/locale/lang/th-TH.js +2 -0
- package/es/locale/lang/ug-CN.js +2 -0
- package/es/locale/lang/uk-UA.js +2 -0
- package/es/locale/lang/uz-UZ.js +2 -0
- package/es/locale/lang/vi-VN.js +2 -0
- package/es/locale/lang/zh-CHT.js +2 -0
- package/es/locale/lang/zh-CN.js +2 -0
- package/es/style.css +1 -1
- package/es/table/module/export/export-panel.js +179 -167
- package/es/table/module/export/hook.js +79 -3
- package/es/table/module/export/import-panel.js +27 -20
- package/es/table/src/table.js +3 -0
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/lib/index.umd.js +121 -30
- package/lib/index.umd.min.js +1 -1
- package/lib/locale/lang/ar-EG.js +2 -0
- package/lib/locale/lang/ar-EG.min.js +1 -1
- package/lib/locale/lang/ar-EG.umd.js +2 -0
- package/lib/locale/lang/de-DE.js +2 -0
- package/lib/locale/lang/de-DE.min.js +1 -1
- package/lib/locale/lang/de-DE.umd.js +2 -0
- package/lib/locale/lang/en-US.js +2 -0
- package/lib/locale/lang/en-US.min.js +1 -1
- package/lib/locale/lang/en-US.umd.js +2 -0
- package/lib/locale/lang/es-ES.js +2 -0
- package/lib/locale/lang/es-ES.min.js +1 -1
- package/lib/locale/lang/es-ES.umd.js +2 -0
- package/lib/locale/lang/fr-FR.js +2 -0
- package/lib/locale/lang/fr-FR.min.js +1 -1
- package/lib/locale/lang/fr-FR.umd.js +2 -0
- package/lib/locale/lang/hu-HU.js +2 -0
- package/lib/locale/lang/hu-HU.min.js +1 -1
- package/lib/locale/lang/hu-HU.umd.js +2 -0
- package/lib/locale/lang/hy-AM.js +2 -0
- package/lib/locale/lang/hy-AM.min.js +1 -1
- package/lib/locale/lang/hy-AM.umd.js +2 -0
- package/lib/locale/lang/id-ID.js +2 -0
- package/lib/locale/lang/id-ID.min.js +1 -1
- package/lib/locale/lang/id-ID.umd.js +2 -0
- package/lib/locale/lang/it-IT.js +2 -0
- package/lib/locale/lang/it-IT.min.js +1 -1
- package/lib/locale/lang/it-IT.umd.js +2 -0
- package/lib/locale/lang/ja-JP.js +2 -0
- package/lib/locale/lang/ja-JP.min.js +1 -1
- package/lib/locale/lang/ja-JP.umd.js +2 -0
- package/lib/locale/lang/ko-KR.js +2 -0
- package/lib/locale/lang/ko-KR.min.js +1 -1
- package/lib/locale/lang/ko-KR.umd.js +2 -0
- package/lib/locale/lang/ms-MY.js +2 -0
- package/lib/locale/lang/ms-MY.min.js +1 -1
- package/lib/locale/lang/ms-MY.umd.js +2 -0
- package/lib/locale/lang/nb-NO.js +2 -0
- package/lib/locale/lang/nb-NO.min.js +1 -1
- package/lib/locale/lang/nb-NO.umd.js +2 -0
- package/lib/locale/lang/pt-BR.js +2 -0
- package/lib/locale/lang/pt-BR.min.js +1 -1
- package/lib/locale/lang/pt-BR.umd.js +2 -0
- package/lib/locale/lang/ru-RU.js +2 -0
- package/lib/locale/lang/ru-RU.min.js +1 -1
- package/lib/locale/lang/ru-RU.umd.js +2 -0
- package/lib/locale/lang/th-TH.js +2 -0
- package/lib/locale/lang/th-TH.min.js +1 -1
- package/lib/locale/lang/th-TH.umd.js +2 -0
- package/lib/locale/lang/ug-CN.js +2 -0
- package/lib/locale/lang/ug-CN.min.js +1 -1
- package/lib/locale/lang/ug-CN.umd.js +2 -0
- package/lib/locale/lang/uk-UA.js +2 -0
- package/lib/locale/lang/uk-UA.min.js +1 -1
- package/lib/locale/lang/uk-UA.umd.js +2 -0
- package/lib/locale/lang/uz-UZ.js +2 -0
- package/lib/locale/lang/uz-UZ.min.js +1 -1
- package/lib/locale/lang/uz-UZ.umd.js +2 -0
- package/lib/locale/lang/vi-VN.js +2 -0
- package/lib/locale/lang/vi-VN.min.js +1 -1
- package/lib/locale/lang/vi-VN.umd.js +2 -0
- package/lib/locale/lang/zh-CHT.js +2 -0
- package/lib/locale/lang/zh-CHT.min.js +1 -1
- package/lib/locale/lang/zh-CHT.umd.js +2 -0
- package/lib/locale/lang/zh-CN.js +2 -0
- package/lib/locale/lang/zh-CN.min.js +1 -1
- package/lib/locale/lang/zh-CN.umd.js +2 -0
- package/lib/style.css +1 -1
- package/lib/table/module/export/export-panel.js +19 -13
- package/lib/table/module/export/export-panel.min.js +1 -1
- package/lib/table/module/export/hook.js +82 -3
- package/lib/table/module/export/hook.min.js +1 -1
- package/lib/table/module/export/import-panel.js +12 -7
- package/lib/table/module/export/import-panel.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 +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 +3 -3
- package/packages/locale/lang/ar-EG.ts +2 -0
- package/packages/locale/lang/de-DE.ts +2 -0
- package/packages/locale/lang/en-US.ts +2 -0
- package/packages/locale/lang/es-ES.ts +2 -0
- package/packages/locale/lang/fr-FR.ts +2 -0
- package/packages/locale/lang/hu-HU.ts +2 -0
- package/packages/locale/lang/hy-AM.ts +2 -0
- package/packages/locale/lang/id-ID.ts +2 -0
- package/packages/locale/lang/it-IT.ts +2 -0
- package/packages/locale/lang/ja-JP.ts +2 -0
- package/packages/locale/lang/ko-KR.ts +2 -0
- package/packages/locale/lang/ms-MY.ts +2 -0
- package/packages/locale/lang/nb-NO.ts +2 -0
- package/packages/locale/lang/pt-BR.ts +2 -0
- package/packages/locale/lang/ru-RU.ts +2 -0
- package/packages/locale/lang/th-TH.ts +2 -0
- package/packages/locale/lang/ug-CN.ts +2 -0
- package/packages/locale/lang/uk-UA.ts +2 -0
- package/packages/locale/lang/uz-UZ.ts +2 -0
- package/packages/locale/lang/vi-VN.ts +2 -0
- package/packages/locale/lang/zh-CHT.ts +2 -0
- package/packages/locale/lang/zh-CN.ts +2 -0
- package/packages/table/module/export/export-panel.ts +178 -166
- package/packages/table/module/export/hook.ts +76 -3
- package/packages/table/module/export/import-panel.ts +28 -20
- package/packages/table/src/table.ts +3 -0
- /package/es/{iconfont.1787020659001.ttf → iconfont.1787137355353.ttf} +0 -0
- /package/es/{iconfont.1787020659001.woff → iconfont.1787137355353.woff} +0 -0
- /package/es/{iconfont.1787020659001.woff2 → iconfont.1787137355353.woff2} +0 -0
- /package/lib/{iconfont.1787020659001.ttf → iconfont.1787137355353.ttf} +0 -0
- /package/lib/{iconfont.1787020659001.woff → iconfont.1787137355353.woff} +0 -0
- /package/lib/{iconfont.1787020659001.woff2 → iconfont.1787137355353.woff2} +0 -0
package/dist/all.esm.js
CHANGED
|
@@ -43,8 +43,11 @@ function formatText(value, placeholder) {
|
|
|
43
43
|
function eqEmptyValue(cellValue) {
|
|
44
44
|
return cellValue === '' || XEUtils.eqNull(cellValue);
|
|
45
45
|
}
|
|
46
|
+
function getDefaultConfig(val1, def1) {
|
|
47
|
+
return XEUtils.eqNull(val1) ? def1 : val1;
|
|
48
|
+
}
|
|
46
49
|
|
|
47
|
-
const version = "4.21.0-beta.
|
|
50
|
+
const version = "4.21.0-beta.3";
|
|
48
51
|
VxeUI.version = version;
|
|
49
52
|
VxeUI.tableVersion = version;
|
|
50
53
|
VxeUI.setConfig({
|
|
@@ -766,7 +769,7 @@ function wheelScrollTopTo(diffNum, cb) {
|
|
|
766
769
|
}
|
|
767
770
|
|
|
768
771
|
const { log } = VxeUI;
|
|
769
|
-
const tableVersion = `table v${"4.21.0-beta.
|
|
772
|
+
const tableVersion = `table v${"4.21.0-beta.3"}`;
|
|
770
773
|
function createComponentLog(name) {
|
|
771
774
|
const uiVersion = VxeUI.uiVersion ? `ui v${VxeUI.uiVersion}` : '';
|
|
772
775
|
const ganttVersion = VxeUI.ganttVersion ? `gantt v${VxeUI.ganttVersion}` : '';
|
|
@@ -7704,7 +7707,10 @@ var TableImportPanelComponent = defineVxeComponent({
|
|
|
7704
7707
|
const { defaultOptions, storeData } = props;
|
|
7705
7708
|
const selectName = computeSelectName.value;
|
|
7706
7709
|
const hasFile = computeHasFile.value;
|
|
7710
|
+
const importOpts = computeImportOpts.value;
|
|
7707
7711
|
const parseTypeLabel = computeParseTypeLabel.value;
|
|
7712
|
+
const modelOptions = importOpts.modelOptions || {};
|
|
7713
|
+
const settingOptions = importOpts.settingOptions || {};
|
|
7708
7714
|
const slots = defaultOptions.slots || {};
|
|
7709
7715
|
const topSlot = slots.top;
|
|
7710
7716
|
const bottomSlot = slots.bottom;
|
|
@@ -7714,18 +7720,20 @@ var TableImportPanelComponent = defineVxeComponent({
|
|
|
7714
7720
|
? h(VxeUIModalComponent, {
|
|
7715
7721
|
id: 'VXE_IMPORT_MODAL',
|
|
7716
7722
|
modelValue: storeData.visible,
|
|
7717
|
-
title: getI18n$8('vxe.import.impTitle'),
|
|
7723
|
+
title: modelOptions.title || getI18n$8('vxe.import.impTitle'),
|
|
7718
7724
|
className: 'vxe-table-export-popup-wrapper',
|
|
7719
|
-
width: 540,
|
|
7720
|
-
|
|
7721
|
-
|
|
7725
|
+
width: modelOptions.width || 540,
|
|
7726
|
+
height: modelOptions.height,
|
|
7727
|
+
minWidth: modelOptions.minWidth || 360,
|
|
7728
|
+
minHeight: modelOptions.minHeight || 240,
|
|
7722
7729
|
mask: true,
|
|
7723
7730
|
lockView: true,
|
|
7724
7731
|
showFooter: true,
|
|
7725
7732
|
escClosable: true,
|
|
7726
7733
|
maskClosable: true,
|
|
7727
|
-
|
|
7728
|
-
|
|
7734
|
+
showMinimize: modelOptions.showMinimize,
|
|
7735
|
+
showMaximize: getDefaultConfig(modelOptions.showMaximize, true),
|
|
7736
|
+
resize: getDefaultConfig(modelOptions.resize, true),
|
|
7729
7737
|
loading: reactData.loading,
|
|
7730
7738
|
'onUpdate:modelValue'(value) {
|
|
7731
7739
|
storeData.visible = value;
|
|
@@ -7785,20 +7793,22 @@ var TableImportPanelComponent = defineVxeComponent({
|
|
|
7785
7793
|
h('td', getI18n$8('vxe.import.impType')),
|
|
7786
7794
|
h('td', parseTypeLabel)
|
|
7787
7795
|
]),
|
|
7788
|
-
|
|
7789
|
-
|
|
7790
|
-
h('
|
|
7791
|
-
|
|
7792
|
-
|
|
7793
|
-
|
|
7794
|
-
|
|
7795
|
-
|
|
7796
|
-
|
|
7797
|
-
|
|
7798
|
-
|
|
7799
|
-
|
|
7796
|
+
settingOptions.showMode === false
|
|
7797
|
+
? renderEmptyElement$4($xeTable)
|
|
7798
|
+
: h('tr', [
|
|
7799
|
+
h('td', getI18n$8('vxe.import.impMode')),
|
|
7800
|
+
h('td', [
|
|
7801
|
+
VxeUISelectComponent
|
|
7802
|
+
? h(VxeUISelectComponent, {
|
|
7803
|
+
modelValue: defaultOptions.mode,
|
|
7804
|
+
options: storeData.modeList,
|
|
7805
|
+
'onUpdate:modelValue'(value) {
|
|
7806
|
+
defaultOptions.mode = value;
|
|
7807
|
+
}
|
|
7808
|
+
})
|
|
7809
|
+
: renderEmptyElement$4($xeTable)
|
|
7810
|
+
])
|
|
7800
7811
|
])
|
|
7801
|
-
])
|
|
7802
7812
|
])
|
|
7803
7813
|
])
|
|
7804
7814
|
]),
|
|
@@ -8017,6 +8027,10 @@ var TableExportPanelComponent = defineVxeComponent({
|
|
|
8017
8027
|
const { hasTree, hasRowGroup, hasMerge, isPrint, hasColgroup, columns } = storeData;
|
|
8018
8028
|
const { isHeader } = defaultOptions;
|
|
8019
8029
|
const colVNs = [];
|
|
8030
|
+
const exportOpts = computeExportOpts.value;
|
|
8031
|
+
const printOpts = computePrintOpts.value;
|
|
8032
|
+
const modelOptions = (isPrint ? printOpts : exportOpts).modelOptions || {};
|
|
8033
|
+
const settingOptions = (isPrint ? printOpts : exportOpts).settingOptions || {};
|
|
8020
8034
|
const checkedAll = computeCheckedAll.value;
|
|
8021
8035
|
const showSheet = computeShowSheet.value;
|
|
8022
8036
|
const supportMerge = computeSupportMerge.value;
|
|
@@ -8069,18 +8083,20 @@ var TableExportPanelComponent = defineVxeComponent({
|
|
|
8069
8083
|
? h(VxeUIModalComponent, {
|
|
8070
8084
|
id: 'VXE_EXPORT_MODAL',
|
|
8071
8085
|
modelValue: storeData.visible,
|
|
8072
|
-
title: getI18n$7(isPrint ? 'vxe.export.printTitle' : 'vxe.export.expTitle'),
|
|
8086
|
+
title: modelOptions.title || getI18n$7(isPrint ? 'vxe.export.printTitle' : 'vxe.export.expTitle'),
|
|
8073
8087
|
className: 'vxe-table-export-popup-wrapper',
|
|
8074
|
-
width: 660,
|
|
8075
|
-
|
|
8076
|
-
|
|
8088
|
+
width: modelOptions.width || 660,
|
|
8089
|
+
height: modelOptions.height,
|
|
8090
|
+
minWidth: modelOptions.minWidth || 500,
|
|
8091
|
+
minHeight: modelOptions.minHeight || 400,
|
|
8077
8092
|
mask: true,
|
|
8078
8093
|
lockView: true,
|
|
8079
8094
|
showFooter: true,
|
|
8080
8095
|
escClosable: true,
|
|
8081
8096
|
maskClosable: true,
|
|
8082
|
-
|
|
8083
|
-
|
|
8097
|
+
showMinimize: modelOptions.showMinimize,
|
|
8098
|
+
showMaximize: getDefaultConfig(modelOptions.showMaximize, true),
|
|
8099
|
+
resize: getDefaultConfig(modelOptions.resize, true),
|
|
8084
8100
|
loading: reactData.loading,
|
|
8085
8101
|
'onUpdate:modelValue'(value) {
|
|
8086
8102
|
storeData.visible = value;
|
|
@@ -8118,7 +8134,7 @@ var TableExportPanelComponent = defineVxeComponent({
|
|
|
8118
8134
|
}, [
|
|
8119
8135
|
h('tbody', [
|
|
8120
8136
|
[
|
|
8121
|
-
isPrint
|
|
8137
|
+
isPrint || settingOptions.showFileName === false
|
|
8122
8138
|
? renderEmptyElement$3($xeTable)
|
|
8123
8139
|
: h('tr', [
|
|
8124
8140
|
h('td', getI18n$7('vxe.export.expName')),
|
|
@@ -8137,7 +8153,7 @@ var TableExportPanelComponent = defineVxeComponent({
|
|
|
8137
8153
|
: renderEmptyElement$3($xeTable)
|
|
8138
8154
|
])
|
|
8139
8155
|
]),
|
|
8140
|
-
isPrint
|
|
8156
|
+
isPrint || settingOptions.showType === false
|
|
8141
8157
|
? renderEmptyElement$3($xeTable)
|
|
8142
8158
|
: h('tr', [
|
|
8143
8159
|
h('td', getI18n$7('vxe.export.expType')),
|
|
@@ -8153,7 +8169,7 @@ var TableExportPanelComponent = defineVxeComponent({
|
|
|
8153
8169
|
: renderEmptyElement$3($xeTable)
|
|
8154
8170
|
])
|
|
8155
8171
|
]),
|
|
8156
|
-
isPrint || showSheet
|
|
8172
|
+
(isPrint || showSheet) && settingOptions.showSheet !== false
|
|
8157
8173
|
? h('tr', [
|
|
8158
8174
|
h('td', getI18n$7('vxe.export.expSheetName')),
|
|
8159
8175
|
h('td', [
|
|
@@ -8172,57 +8188,61 @@ var TableExportPanelComponent = defineVxeComponent({
|
|
|
8172
8188
|
])
|
|
8173
8189
|
])
|
|
8174
8190
|
: renderEmptyElement$3($xeTable),
|
|
8175
|
-
|
|
8176
|
-
|
|
8177
|
-
h('
|
|
8178
|
-
|
|
8179
|
-
|
|
8180
|
-
|
|
8181
|
-
|
|
8182
|
-
|
|
8183
|
-
|
|
8184
|
-
|
|
8185
|
-
|
|
8186
|
-
|
|
8187
|
-
|
|
8188
|
-
|
|
8189
|
-
|
|
8190
|
-
|
|
8191
|
-
|
|
8192
|
-
|
|
8193
|
-
|
|
8194
|
-
|
|
8195
|
-
|
|
8196
|
-
|
|
8197
|
-
|
|
8198
|
-
|
|
8199
|
-
|
|
8200
|
-
|
|
8201
|
-
|
|
8191
|
+
settingOptions.showMode === false
|
|
8192
|
+
? renderEmptyElement$3($xeTable)
|
|
8193
|
+
: h('tr', [
|
|
8194
|
+
h('td', getI18n$7('vxe.export.expMode')),
|
|
8195
|
+
h('td', [
|
|
8196
|
+
VxeUISelectComponent
|
|
8197
|
+
? h(VxeUISelectComponent, {
|
|
8198
|
+
modelValue: defaultOptions.mode,
|
|
8199
|
+
options: storeData.modeList.map((item) => {
|
|
8200
|
+
return {
|
|
8201
|
+
value: item.value,
|
|
8202
|
+
label: getI18n$7(item.label)
|
|
8203
|
+
};
|
|
8204
|
+
}),
|
|
8205
|
+
'onUpdate:modelValue'(value) {
|
|
8206
|
+
defaultOptions.mode = value;
|
|
8207
|
+
}
|
|
8208
|
+
})
|
|
8209
|
+
: renderEmptyElement$3($xeTable)
|
|
8210
|
+
])
|
|
8211
|
+
]),
|
|
8212
|
+
settingOptions.showColumn === false
|
|
8213
|
+
? renderEmptyElement$3($xeTable)
|
|
8214
|
+
: h('tr', [
|
|
8215
|
+
h('td', [getI18n$7('vxe.export.expColumn')]),
|
|
8216
|
+
h('td', [
|
|
8217
|
+
h('div', {
|
|
8218
|
+
class: 'vxe-table-export--panel-column'
|
|
8202
8219
|
}, [
|
|
8203
|
-
h('
|
|
8204
|
-
class:
|
|
8205
|
-
'is--checked': isAllChecked,
|
|
8206
|
-
'is--indeterminate': isAllIndeterminate
|
|
8207
|
-
}],
|
|
8208
|
-
title: getI18n$7('vxe.table.allTitle'),
|
|
8209
|
-
onClick: allColumnEvent
|
|
8220
|
+
h('ul', {
|
|
8221
|
+
class: 'vxe-table-export--panel-column-header'
|
|
8210
8222
|
}, [
|
|
8211
|
-
h('
|
|
8212
|
-
class: ['vxe-
|
|
8213
|
-
|
|
8214
|
-
|
|
8215
|
-
|
|
8216
|
-
|
|
8217
|
-
|
|
8218
|
-
|
|
8219
|
-
|
|
8220
|
-
|
|
8221
|
-
|
|
8223
|
+
h('li', {
|
|
8224
|
+
class: ['vxe-table-export--panel-column-option', {
|
|
8225
|
+
'is--checked': isAllChecked,
|
|
8226
|
+
'is--indeterminate': isAllIndeterminate
|
|
8227
|
+
}],
|
|
8228
|
+
title: getI18n$7('vxe.table.allTitle'),
|
|
8229
|
+
onClick: allColumnEvent
|
|
8230
|
+
}, [
|
|
8231
|
+
h('span', {
|
|
8232
|
+
class: ['vxe-checkbox--icon', isAllIndeterminate ? getIcon$3().TABLE_CHECKBOX_INDETERMINATE : (isAllChecked ? getIcon$3().TABLE_CHECKBOX_CHECKED : getIcon$3().TABLE_CHECKBOX_UNCHECKED)]
|
|
8233
|
+
}),
|
|
8234
|
+
h('span', {
|
|
8235
|
+
class: 'vxe-checkbox--label'
|
|
8236
|
+
}, getI18n$7('vxe.export.expCurrentColumn'))
|
|
8237
|
+
])
|
|
8238
|
+
]),
|
|
8239
|
+
h('ul', {
|
|
8240
|
+
class: 'vxe-table-export--panel-column-body'
|
|
8241
|
+
}, colVNs)
|
|
8242
|
+
])
|
|
8222
8243
|
])
|
|
8223
|
-
])
|
|
8224
|
-
|
|
8225
|
-
isPrint
|
|
8244
|
+
]),
|
|
8245
|
+
isPrint && (settingOptions.showWidthMode !== false)
|
|
8226
8246
|
? h('tr', [
|
|
8227
8247
|
h('td', getI18n$7('vxe.export.widthMode')),
|
|
8228
8248
|
h('td', [
|
|
@@ -8238,118 +8258,120 @@ var TableExportPanelComponent = defineVxeComponent({
|
|
|
8238
8258
|
])
|
|
8239
8259
|
])
|
|
8240
8260
|
: renderEmptyElement$3($xeTable),
|
|
8241
|
-
|
|
8242
|
-
|
|
8243
|
-
|
|
8244
|
-
|
|
8245
|
-
|
|
8246
|
-
|
|
8247
|
-
|
|
8248
|
-
|
|
8249
|
-
|
|
8250
|
-
|
|
8251
|
-
|
|
8252
|
-
|
|
8253
|
-
|
|
8254
|
-
|
|
8255
|
-
|
|
8256
|
-
|
|
8257
|
-
|
|
8258
|
-
|
|
8259
|
-
|
|
8260
|
-
|
|
8261
|
-
|
|
8262
|
-
|
|
8263
|
-
|
|
8264
|
-
|
|
8265
|
-
|
|
8266
|
-
|
|
8267
|
-
|
|
8268
|
-
|
|
8269
|
-
|
|
8270
|
-
|
|
8271
|
-
|
|
8272
|
-
|
|
8273
|
-
|
|
8274
|
-
|
|
8275
|
-
|
|
8276
|
-
|
|
8277
|
-
|
|
8278
|
-
|
|
8279
|
-
|
|
8280
|
-
|
|
8281
|
-
|
|
8282
|
-
|
|
8283
|
-
|
|
8284
|
-
|
|
8285
|
-
|
|
8286
|
-
|
|
8287
|
-
|
|
8288
|
-
}
|
|
8289
|
-
})
|
|
8290
|
-
]
|
|
8291
|
-
: []),
|
|
8292
|
-
h('div', {
|
|
8293
|
-
class: 'vxe-table-export--panel-option-row'
|
|
8294
|
-
}, VxeUICheckboxComponent
|
|
8295
|
-
? [
|
|
8296
|
-
h(VxeUICheckboxComponent, {
|
|
8297
|
-
modelValue: hasEmptyData ? false : defaultOptions.original,
|
|
8298
|
-
disabled: hasEmptyData,
|
|
8299
|
-
title: getI18n$7('vxe.export.expOriginalTitle'),
|
|
8300
|
-
content: getI18n$7('vxe.export.expOptOriginal'),
|
|
8301
|
-
'onUpdate:modelValue'(value) {
|
|
8302
|
-
defaultOptions.original = value;
|
|
8303
|
-
}
|
|
8304
|
-
}),
|
|
8305
|
-
h(VxeUICheckboxComponent, {
|
|
8306
|
-
modelValue: hasMerge && supportMerge && checkedAll ? defaultOptions.isMerge : false,
|
|
8307
|
-
title: getI18n$7('vxe.export.expMergeTitle'),
|
|
8308
|
-
disabled: hasEmptyData || !hasMerge || !supportMerge || !checkedAll,
|
|
8309
|
-
content: getI18n$7('vxe.export.expOptMerge'),
|
|
8310
|
-
'onUpdate:modelValue'(value) {
|
|
8311
|
-
defaultOptions.isMerge = value;
|
|
8312
|
-
}
|
|
8313
|
-
}),
|
|
8314
|
-
isPrint
|
|
8315
|
-
? renderEmptyElement$3($xeTable)
|
|
8316
|
-
: h(VxeUICheckboxComponent, {
|
|
8317
|
-
modelValue: supportStyle ? defaultOptions.useStyle : false,
|
|
8318
|
-
disabled: !supportStyle,
|
|
8319
|
-
title: getI18n$7('vxe.export.expUseStyleTitle'),
|
|
8320
|
-
content: getI18n$7('vxe.export.expOptUseStyle'),
|
|
8261
|
+
settingOptions.showParameter === false
|
|
8262
|
+
? renderEmptyElement$3($xeTable)
|
|
8263
|
+
: h('tr', [
|
|
8264
|
+
h('td', getI18n$7('vxe.export.expOpts')),
|
|
8265
|
+
parameterSlot
|
|
8266
|
+
? h('td', [
|
|
8267
|
+
h('div', {
|
|
8268
|
+
class: 'vxe-table-export--panel-option-row'
|
|
8269
|
+
}, $xeTable.callSlot(parameterSlot, params))
|
|
8270
|
+
])
|
|
8271
|
+
: h('td', [
|
|
8272
|
+
h('div', {
|
|
8273
|
+
class: 'vxe-table-export--panel-option-row'
|
|
8274
|
+
}, VxeUICheckboxComponent
|
|
8275
|
+
? [
|
|
8276
|
+
h(VxeUICheckboxComponent, {
|
|
8277
|
+
modelValue: hasEmptyData || isHeader,
|
|
8278
|
+
disabled: hasEmptyData,
|
|
8279
|
+
title: getI18n$7('vxe.export.expHeaderTitle'),
|
|
8280
|
+
content: getI18n$7('vxe.export.expOptHeader'),
|
|
8281
|
+
'onUpdate:modelValue'(value) {
|
|
8282
|
+
defaultOptions.isHeader = value;
|
|
8283
|
+
}
|
|
8284
|
+
}),
|
|
8285
|
+
h(VxeUICheckboxComponent, {
|
|
8286
|
+
modelValue: defaultOptions.isFooter,
|
|
8287
|
+
disabled: !storeData.hasFooter,
|
|
8288
|
+
title: getI18n$7('vxe.export.expFooterTitle'),
|
|
8289
|
+
content: getI18n$7('vxe.export.expOptFooter'),
|
|
8290
|
+
'onUpdate:modelValue'(value) {
|
|
8291
|
+
defaultOptions.isFooter = value;
|
|
8292
|
+
}
|
|
8293
|
+
}),
|
|
8294
|
+
h(VxeUICheckboxComponent, {
|
|
8295
|
+
modelValue: isHeader ? defaultOptions.isTitle : false,
|
|
8296
|
+
disabled: !isHeader,
|
|
8297
|
+
title: getI18n$7('vxe.export.expTitleTitle'),
|
|
8298
|
+
content: getI18n$7('vxe.export.expOptTitle'),
|
|
8299
|
+
'onUpdate:modelValue'(value) {
|
|
8300
|
+
defaultOptions.isTitle = value;
|
|
8301
|
+
}
|
|
8302
|
+
}),
|
|
8303
|
+
h(VxeUICheckboxComponent, {
|
|
8304
|
+
modelValue: isHeader && hasColgroup && supportMerge ? defaultOptions.isColgroup : false,
|
|
8305
|
+
title: getI18n$7('vxe.export.expColgroupTitle'),
|
|
8306
|
+
disabled: !isHeader || !hasColgroup || !supportMerge,
|
|
8307
|
+
content: getI18n$7('vxe.export.expOptColgroup'),
|
|
8321
8308
|
'onUpdate:modelValue'(value) {
|
|
8322
|
-
defaultOptions.
|
|
8309
|
+
defaultOptions.isColgroup = value;
|
|
8323
8310
|
}
|
|
8324
8311
|
})
|
|
8325
|
-
|
|
8326
|
-
|
|
8327
|
-
|
|
8328
|
-
|
|
8329
|
-
|
|
8330
|
-
|
|
8331
|
-
|
|
8332
|
-
|
|
8333
|
-
|
|
8334
|
-
|
|
8335
|
-
|
|
8336
|
-
|
|
8337
|
-
|
|
8338
|
-
|
|
8339
|
-
|
|
8340
|
-
|
|
8341
|
-
|
|
8342
|
-
|
|
8343
|
-
|
|
8344
|
-
|
|
8345
|
-
|
|
8346
|
-
|
|
8347
|
-
|
|
8348
|
-
|
|
8349
|
-
|
|
8350
|
-
|
|
8351
|
-
|
|
8352
|
-
|
|
8312
|
+
]
|
|
8313
|
+
: []),
|
|
8314
|
+
h('div', {
|
|
8315
|
+
class: 'vxe-table-export--panel-option-row'
|
|
8316
|
+
}, VxeUICheckboxComponent
|
|
8317
|
+
? [
|
|
8318
|
+
h(VxeUICheckboxComponent, {
|
|
8319
|
+
modelValue: hasEmptyData ? false : defaultOptions.original,
|
|
8320
|
+
disabled: hasEmptyData,
|
|
8321
|
+
title: getI18n$7('vxe.export.expOriginalTitle'),
|
|
8322
|
+
content: getI18n$7('vxe.export.expOptOriginal'),
|
|
8323
|
+
'onUpdate:modelValue'(value) {
|
|
8324
|
+
defaultOptions.original = value;
|
|
8325
|
+
}
|
|
8326
|
+
}),
|
|
8327
|
+
h(VxeUICheckboxComponent, {
|
|
8328
|
+
modelValue: hasMerge && supportMerge && checkedAll ? defaultOptions.isMerge : false,
|
|
8329
|
+
title: getI18n$7('vxe.export.expMergeTitle'),
|
|
8330
|
+
disabled: hasEmptyData || !hasMerge || !supportMerge || !checkedAll,
|
|
8331
|
+
content: getI18n$7('vxe.export.expOptMerge'),
|
|
8332
|
+
'onUpdate:modelValue'(value) {
|
|
8333
|
+
defaultOptions.isMerge = value;
|
|
8334
|
+
}
|
|
8335
|
+
}),
|
|
8336
|
+
isPrint
|
|
8337
|
+
? renderEmptyElement$3($xeTable)
|
|
8338
|
+
: h(VxeUICheckboxComponent, {
|
|
8339
|
+
modelValue: supportStyle ? defaultOptions.useStyle : false,
|
|
8340
|
+
disabled: !supportStyle,
|
|
8341
|
+
title: getI18n$7('vxe.export.expUseStyleTitle'),
|
|
8342
|
+
content: getI18n$7('vxe.export.expOptUseStyle'),
|
|
8343
|
+
'onUpdate:modelValue'(value) {
|
|
8344
|
+
defaultOptions.useStyle = value;
|
|
8345
|
+
}
|
|
8346
|
+
})
|
|
8347
|
+
]
|
|
8348
|
+
: []),
|
|
8349
|
+
h('div', {
|
|
8350
|
+
class: 'vxe-table-export--panel-option-row'
|
|
8351
|
+
}, VxeUICheckboxComponent
|
|
8352
|
+
? [
|
|
8353
|
+
h(VxeUICheckboxComponent, {
|
|
8354
|
+
modelValue: hasTree ? defaultOptions.isTreeAllExpanded : false,
|
|
8355
|
+
disabled: hasEmptyData || !hasTree,
|
|
8356
|
+
title: getI18n$7('vxe.export.expTreeAllExpandTitle'),
|
|
8357
|
+
content: getI18n$7('vxe.export.expOptTreeAllExpand'),
|
|
8358
|
+
'onUpdate:modelValue'(value) {
|
|
8359
|
+
defaultOptions.isTreeAllExpanded = value;
|
|
8360
|
+
}
|
|
8361
|
+
}),
|
|
8362
|
+
h(VxeUICheckboxComponent, {
|
|
8363
|
+
modelValue: hasRowGroup ? defaultOptions.isRowGroupAllExpanded : false,
|
|
8364
|
+
disabled: hasEmptyData || !hasRowGroup,
|
|
8365
|
+
title: getI18n$7('vxe.export.expRowGroupAllExpandTitle'),
|
|
8366
|
+
content: getI18n$7('vxe.export.expOptRowGroupAllExpand'),
|
|
8367
|
+
'onUpdate:modelValue'(value) {
|
|
8368
|
+
defaultOptions.isRowGroupAllExpanded = value;
|
|
8369
|
+
}
|
|
8370
|
+
})
|
|
8371
|
+
]
|
|
8372
|
+
: [])
|
|
8373
|
+
])
|
|
8374
|
+
])
|
|
8353
8375
|
]
|
|
8354
8376
|
])
|
|
8355
8377
|
])
|
|
@@ -12066,7 +12088,16 @@ hooks$4.add('tableExportModule', {
|
|
|
12066
12088
|
}
|
|
12067
12089
|
if (!handleOptions.print) {
|
|
12068
12090
|
if (beforeExportMethod) {
|
|
12069
|
-
beforeExportMethod({ options: handleOptions, $table: $xeTable, $grid: $xeGrid, $gantt: $xeGantt });
|
|
12091
|
+
const beRest = beforeExportMethod({ options: handleOptions, $table: $xeTable, $grid: $xeGrid, $gantt: $xeGantt });
|
|
12092
|
+
if (XEUtils.isBoolean(beRest)) {
|
|
12093
|
+
if (!beRest) {
|
|
12094
|
+
const params = { status: false };
|
|
12095
|
+
return Promise.reject(params);
|
|
12096
|
+
}
|
|
12097
|
+
}
|
|
12098
|
+
else {
|
|
12099
|
+
warnLog$4('vxe.error.returnErr', ['beforeExportMethod', 'boolean', beRest]);
|
|
12100
|
+
}
|
|
12070
12101
|
}
|
|
12071
12102
|
}
|
|
12072
12103
|
if (!handleOptions.data) {
|
|
@@ -12174,7 +12205,16 @@ hooks$4.add('tableExportModule', {
|
|
|
12174
12205
|
const opts = Object.assign({}, options);
|
|
12175
12206
|
const { beforeImportMethod } = opts;
|
|
12176
12207
|
if (beforeImportMethod) {
|
|
12177
|
-
beforeImportMethod({ options: opts, $table: $xeTable });
|
|
12208
|
+
const biRest = beforeImportMethod({ options: opts, $table: $xeTable });
|
|
12209
|
+
if (XEUtils.isBoolean(biRest)) {
|
|
12210
|
+
if (!biRest) {
|
|
12211
|
+
const params = { status: false };
|
|
12212
|
+
return Promise.reject(params);
|
|
12213
|
+
}
|
|
12214
|
+
}
|
|
12215
|
+
else {
|
|
12216
|
+
warnLog$4('vxe.error.returnErr', ['beforeImportMethod', 'boolean', biRest]);
|
|
12217
|
+
}
|
|
12178
12218
|
}
|
|
12179
12219
|
return handleFileImport(file, opts);
|
|
12180
12220
|
},
|
|
@@ -12187,7 +12227,16 @@ hooks$4.add('tableExportModule', {
|
|
|
12187
12227
|
}, importOpts, options);
|
|
12188
12228
|
const { beforeImportMethod, afterImportMethod } = opts;
|
|
12189
12229
|
if (beforeImportMethod) {
|
|
12190
|
-
beforeImportMethod({ options: opts, $table: $xeTable });
|
|
12230
|
+
const biRest = beforeImportMethod({ options: opts, $table: $xeTable });
|
|
12231
|
+
if (XEUtils.isBoolean(biRest)) {
|
|
12232
|
+
if (!biRest) {
|
|
12233
|
+
const params = { status: false };
|
|
12234
|
+
return Promise.reject(params);
|
|
12235
|
+
}
|
|
12236
|
+
}
|
|
12237
|
+
else {
|
|
12238
|
+
warnLog$4('vxe.error.returnErr', ['beforeImportMethod', 'boolean', biRest]);
|
|
12239
|
+
}
|
|
12191
12240
|
}
|
|
12192
12241
|
return VxeUI.readFile(opts).catch(e => {
|
|
12193
12242
|
if (afterImportMethod) {
|
|
@@ -12237,6 +12286,7 @@ hooks$4.add('tableExportModule', {
|
|
|
12237
12286
|
printTitle = document.title || '';
|
|
12238
12287
|
}
|
|
12239
12288
|
const beforePrintMethod = opts.beforePrintMethod;
|
|
12289
|
+
const printMethod = opts.printMethod;
|
|
12240
12290
|
const tableHtml = opts.html || opts.content;
|
|
12241
12291
|
return new Promise((resolve, reject) => {
|
|
12242
12292
|
if (VxeUI.print) {
|
|
@@ -12256,6 +12306,30 @@ hooks$4.add('tableExportModule', {
|
|
|
12256
12306
|
$gantt: $xeGantt
|
|
12257
12307
|
});
|
|
12258
12308
|
}
|
|
12309
|
+
: undefined,
|
|
12310
|
+
beforePrintMethod: beforePrintMethod
|
|
12311
|
+
? ({ html }) => {
|
|
12312
|
+
return beforePrintMethod({
|
|
12313
|
+
html,
|
|
12314
|
+
content: html,
|
|
12315
|
+
options: opts,
|
|
12316
|
+
$table: $xeTable,
|
|
12317
|
+
$grid: $xeGrid,
|
|
12318
|
+
$gantt: $xeGantt
|
|
12319
|
+
});
|
|
12320
|
+
}
|
|
12321
|
+
: undefined,
|
|
12322
|
+
printMethod: printMethod
|
|
12323
|
+
? ({ html }) => {
|
|
12324
|
+
return printMethod({
|
|
12325
|
+
html,
|
|
12326
|
+
content: html,
|
|
12327
|
+
options: opts,
|
|
12328
|
+
$table: $xeTable,
|
|
12329
|
+
$grid: $xeGrid,
|
|
12330
|
+
$gantt: $xeGantt
|
|
12331
|
+
});
|
|
12332
|
+
}
|
|
12259
12333
|
: undefined
|
|
12260
12334
|
}));
|
|
12261
12335
|
}
|
|
@@ -12276,6 +12350,30 @@ hooks$4.add('tableExportModule', {
|
|
|
12276
12350
|
$gantt: $xeGantt
|
|
12277
12351
|
});
|
|
12278
12352
|
}
|
|
12353
|
+
: undefined,
|
|
12354
|
+
beforePrintMethod: beforePrintMethod
|
|
12355
|
+
? ({ html }) => {
|
|
12356
|
+
return beforePrintMethod({
|
|
12357
|
+
html,
|
|
12358
|
+
content: html,
|
|
12359
|
+
options: opts,
|
|
12360
|
+
$table: $xeTable,
|
|
12361
|
+
$grid: $xeGrid,
|
|
12362
|
+
$gantt: $xeGantt
|
|
12363
|
+
});
|
|
12364
|
+
}
|
|
12365
|
+
: undefined,
|
|
12366
|
+
printMethod: printMethod
|
|
12367
|
+
? ({ html }) => {
|
|
12368
|
+
return printMethod({
|
|
12369
|
+
html,
|
|
12370
|
+
content: html,
|
|
12371
|
+
options: opts,
|
|
12372
|
+
$table: $xeTable,
|
|
12373
|
+
$grid: $xeGrid,
|
|
12374
|
+
$gantt: $xeGantt
|
|
12375
|
+
});
|
|
12376
|
+
}
|
|
12279
12377
|
: undefined
|
|
12280
12378
|
});
|
|
12281
12379
|
}));
|
|
@@ -20000,6 +20098,9 @@ var VxeTableComponent = defineVxeComponent({
|
|
|
20000
20098
|
xRest = $xeTable.updateScrollXData();
|
|
20001
20099
|
}
|
|
20002
20100
|
if (isRollY && scrollYLoad) {
|
|
20101
|
+
if (autoWidthColumnList.length) {
|
|
20102
|
+
calcCellWidth();
|
|
20103
|
+
}
|
|
20003
20104
|
yRest = $xeTable.updateScrollYData().then(() => {
|
|
20004
20105
|
if (autoWidthColumnList.length) {
|
|
20005
20106
|
calcCellWidth();
|
|
@@ -32722,6 +32823,8 @@ var zhCN = {
|
|
|
32722
32823
|
noTree: '树结构不支持 "{0}"',
|
|
32723
32824
|
noGroup: '数据分组后不支持 "{0}"',
|
|
32724
32825
|
notProp: '不支持的参数 "{0}"',
|
|
32826
|
+
returnErr: '参数 "{0}" 的返回值期望是 "{1}" 实际是 "{2}"',
|
|
32827
|
+
notSupportReturn: '当返回值为 "{0}" 时的参数应该使用用 "{1}" 而不是 "{2}"',
|
|
32725
32828
|
checkProp: '当数据量过大时可能会导致复选框卡顿,建议设置参数 "{0}" 提升渲染速度',
|
|
32726
32829
|
coverProp: '"{0}" 的参数 "{1}" 重复定义,这可能会出现错误',
|
|
32727
32830
|
uniField: '字段名 "{0}" 重复定义,这可能会出现错误',
|