vxe-table 4.21.0-beta.2 → 4.21.0-beta.4
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 +215 -191
- package/dist/style.css +1 -1
- package/es/style.css +1 -1
- package/es/table/module/export/export-panel.js +182 -169
- package/es/table/module/export/import-panel.js +30 -22
- package/es/ui/index.js +1 -1
- package/es/ui/src/dom.js +9 -1
- package/es/ui/src/log.js +1 -1
- package/lib/index.umd.js +50 -30
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/table/module/export/export-panel.js +22 -15
- package/lib/table/module/export/export-panel.min.js +1 -1
- package/lib/table/module/export/import-panel.js +15 -9
- package/lib/table/module/export/import-panel.min.js +1 -1
- package/lib/ui/index.js +1 -1
- package/lib/ui/index.min.js +1 -1
- package/lib/ui/src/dom.js +10 -1
- package/lib/ui/src/dom.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/export-panel.ts +181 -168
- package/packages/table/module/export/import-panel.ts +31 -22
- package/packages/ui/src/dom.ts +10 -1
- /package/es/{iconfont.1787119217086.ttf → iconfont.1787216126332.ttf} +0 -0
- /package/es/{iconfont.1787119217086.woff → iconfont.1787216126332.woff} +0 -0
- /package/es/{iconfont.1787119217086.woff2 → iconfont.1787216126332.woff2} +0 -0
- /package/lib/{iconfont.1787119217086.ttf → iconfont.1787216126332.ttf} +0 -0
- /package/lib/{iconfont.1787119217086.woff → iconfont.1787216126332.woff} +0 -0
- /package/lib/{iconfont.1787119217086.woff2 → iconfont.1787216126332.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.4";
|
|
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.4"}`;
|
|
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,21 @@ 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
|
-
|
|
7722
|
-
|
|
7723
|
-
|
|
7725
|
+
width: modelOptions.width || 540,
|
|
7726
|
+
height: modelOptions.height,
|
|
7727
|
+
minWidth: modelOptions.minWidth || 360,
|
|
7728
|
+
minHeight: modelOptions.minHeight || 240,
|
|
7729
|
+
mask: getDefaultConfig(modelOptions.mask, true),
|
|
7730
|
+
lockView: getDefaultConfig(modelOptions.lockView, true),
|
|
7724
7731
|
showFooter: true,
|
|
7725
7732
|
escClosable: true,
|
|
7726
7733
|
maskClosable: true,
|
|
7727
|
-
|
|
7728
|
-
|
|
7734
|
+
fullscreen: modelOptions.fullscreen,
|
|
7735
|
+
showMinimize: modelOptions.showMinimize,
|
|
7736
|
+
showMaximize: getDefaultConfig(modelOptions.showMaximize, true),
|
|
7737
|
+
resize: getDefaultConfig(modelOptions.resize, true),
|
|
7729
7738
|
loading: reactData.loading,
|
|
7730
7739
|
'onUpdate:modelValue'(value) {
|
|
7731
7740
|
storeData.visible = value;
|
|
@@ -7785,20 +7794,22 @@ var TableImportPanelComponent = defineVxeComponent({
|
|
|
7785
7794
|
h('td', getI18n$8('vxe.import.impType')),
|
|
7786
7795
|
h('td', parseTypeLabel)
|
|
7787
7796
|
]),
|
|
7788
|
-
|
|
7789
|
-
|
|
7790
|
-
h('
|
|
7791
|
-
|
|
7792
|
-
|
|
7793
|
-
|
|
7794
|
-
|
|
7795
|
-
|
|
7796
|
-
|
|
7797
|
-
|
|
7798
|
-
|
|
7799
|
-
|
|
7797
|
+
settingOptions.showMode === false
|
|
7798
|
+
? renderEmptyElement$4($xeTable)
|
|
7799
|
+
: h('tr', [
|
|
7800
|
+
h('td', getI18n$8('vxe.import.impMode')),
|
|
7801
|
+
h('td', [
|
|
7802
|
+
VxeUISelectComponent
|
|
7803
|
+
? h(VxeUISelectComponent, {
|
|
7804
|
+
modelValue: defaultOptions.mode,
|
|
7805
|
+
options: storeData.modeList,
|
|
7806
|
+
'onUpdate:modelValue'(value) {
|
|
7807
|
+
defaultOptions.mode = value;
|
|
7808
|
+
}
|
|
7809
|
+
})
|
|
7810
|
+
: renderEmptyElement$4($xeTable)
|
|
7811
|
+
])
|
|
7800
7812
|
])
|
|
7801
|
-
])
|
|
7802
7813
|
])
|
|
7803
7814
|
])
|
|
7804
7815
|
]),
|
|
@@ -8017,6 +8028,10 @@ var TableExportPanelComponent = defineVxeComponent({
|
|
|
8017
8028
|
const { hasTree, hasRowGroup, hasMerge, isPrint, hasColgroup, columns } = storeData;
|
|
8018
8029
|
const { isHeader } = defaultOptions;
|
|
8019
8030
|
const colVNs = [];
|
|
8031
|
+
const exportOpts = computeExportOpts.value;
|
|
8032
|
+
const printOpts = computePrintOpts.value;
|
|
8033
|
+
const modelOptions = (isPrint ? printOpts : exportOpts).modelOptions || {};
|
|
8034
|
+
const settingOptions = (isPrint ? printOpts : exportOpts).settingOptions || {};
|
|
8020
8035
|
const checkedAll = computeCheckedAll.value;
|
|
8021
8036
|
const showSheet = computeShowSheet.value;
|
|
8022
8037
|
const supportMerge = computeSupportMerge.value;
|
|
@@ -8069,18 +8084,21 @@ var TableExportPanelComponent = defineVxeComponent({
|
|
|
8069
8084
|
? h(VxeUIModalComponent, {
|
|
8070
8085
|
id: 'VXE_EXPORT_MODAL',
|
|
8071
8086
|
modelValue: storeData.visible,
|
|
8072
|
-
title: getI18n$7(isPrint ? 'vxe.export.printTitle' : 'vxe.export.expTitle'),
|
|
8087
|
+
title: modelOptions.title || getI18n$7(isPrint ? 'vxe.export.printTitle' : 'vxe.export.expTitle'),
|
|
8073
8088
|
className: 'vxe-table-export-popup-wrapper',
|
|
8074
|
-
width: 660,
|
|
8075
|
-
|
|
8076
|
-
|
|
8077
|
-
|
|
8078
|
-
|
|
8089
|
+
width: modelOptions.width || 660,
|
|
8090
|
+
height: modelOptions.height,
|
|
8091
|
+
minWidth: modelOptions.minWidth || 500,
|
|
8092
|
+
minHeight: modelOptions.minHeight || 400,
|
|
8093
|
+
mask: getDefaultConfig(modelOptions.mask, true),
|
|
8094
|
+
lockView: getDefaultConfig(modelOptions.lockView, true),
|
|
8079
8095
|
showFooter: true,
|
|
8080
8096
|
escClosable: true,
|
|
8081
8097
|
maskClosable: true,
|
|
8082
|
-
|
|
8083
|
-
|
|
8098
|
+
fullscreen: modelOptions.fullscreen,
|
|
8099
|
+
showMinimize: modelOptions.showMinimize,
|
|
8100
|
+
showMaximize: getDefaultConfig(modelOptions.showMaximize, true),
|
|
8101
|
+
resize: getDefaultConfig(modelOptions.resize, true),
|
|
8084
8102
|
loading: reactData.loading,
|
|
8085
8103
|
'onUpdate:modelValue'(value) {
|
|
8086
8104
|
storeData.visible = value;
|
|
@@ -8118,7 +8136,7 @@ var TableExportPanelComponent = defineVxeComponent({
|
|
|
8118
8136
|
}, [
|
|
8119
8137
|
h('tbody', [
|
|
8120
8138
|
[
|
|
8121
|
-
isPrint
|
|
8139
|
+
isPrint || settingOptions.showFileName === false
|
|
8122
8140
|
? renderEmptyElement$3($xeTable)
|
|
8123
8141
|
: h('tr', [
|
|
8124
8142
|
h('td', getI18n$7('vxe.export.expName')),
|
|
@@ -8137,7 +8155,7 @@ var TableExportPanelComponent = defineVxeComponent({
|
|
|
8137
8155
|
: renderEmptyElement$3($xeTable)
|
|
8138
8156
|
])
|
|
8139
8157
|
]),
|
|
8140
|
-
isPrint
|
|
8158
|
+
isPrint || settingOptions.showType === false
|
|
8141
8159
|
? renderEmptyElement$3($xeTable)
|
|
8142
8160
|
: h('tr', [
|
|
8143
8161
|
h('td', getI18n$7('vxe.export.expType')),
|
|
@@ -8153,7 +8171,7 @@ var TableExportPanelComponent = defineVxeComponent({
|
|
|
8153
8171
|
: renderEmptyElement$3($xeTable)
|
|
8154
8172
|
])
|
|
8155
8173
|
]),
|
|
8156
|
-
isPrint || showSheet
|
|
8174
|
+
(isPrint || showSheet) && settingOptions.showSheet !== false
|
|
8157
8175
|
? h('tr', [
|
|
8158
8176
|
h('td', getI18n$7('vxe.export.expSheetName')),
|
|
8159
8177
|
h('td', [
|
|
@@ -8172,57 +8190,61 @@ var TableExportPanelComponent = defineVxeComponent({
|
|
|
8172
8190
|
])
|
|
8173
8191
|
])
|
|
8174
8192
|
: 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
|
-
|
|
8193
|
+
settingOptions.showMode === false
|
|
8194
|
+
? renderEmptyElement$3($xeTable)
|
|
8195
|
+
: h('tr', [
|
|
8196
|
+
h('td', getI18n$7('vxe.export.expMode')),
|
|
8197
|
+
h('td', [
|
|
8198
|
+
VxeUISelectComponent
|
|
8199
|
+
? h(VxeUISelectComponent, {
|
|
8200
|
+
modelValue: defaultOptions.mode,
|
|
8201
|
+
options: storeData.modeList.map((item) => {
|
|
8202
|
+
return {
|
|
8203
|
+
value: item.value,
|
|
8204
|
+
label: getI18n$7(item.label)
|
|
8205
|
+
};
|
|
8206
|
+
}),
|
|
8207
|
+
'onUpdate:modelValue'(value) {
|
|
8208
|
+
defaultOptions.mode = value;
|
|
8209
|
+
}
|
|
8210
|
+
})
|
|
8211
|
+
: renderEmptyElement$3($xeTable)
|
|
8212
|
+
])
|
|
8213
|
+
]),
|
|
8214
|
+
settingOptions.showColumn === false
|
|
8215
|
+
? renderEmptyElement$3($xeTable)
|
|
8216
|
+
: h('tr', [
|
|
8217
|
+
h('td', [getI18n$7('vxe.export.expColumn')]),
|
|
8218
|
+
h('td', [
|
|
8219
|
+
h('div', {
|
|
8220
|
+
class: 'vxe-table-export--panel-column'
|
|
8202
8221
|
}, [
|
|
8203
|
-
h('
|
|
8204
|
-
class:
|
|
8205
|
-
'is--checked': isAllChecked,
|
|
8206
|
-
'is--indeterminate': isAllIndeterminate
|
|
8207
|
-
}],
|
|
8208
|
-
title: getI18n$7('vxe.table.allTitle'),
|
|
8209
|
-
onClick: allColumnEvent
|
|
8222
|
+
h('ul', {
|
|
8223
|
+
class: 'vxe-table-export--panel-column-header'
|
|
8210
8224
|
}, [
|
|
8211
|
-
h('
|
|
8212
|
-
class: ['vxe-
|
|
8213
|
-
|
|
8214
|
-
|
|
8215
|
-
|
|
8216
|
-
|
|
8217
|
-
|
|
8218
|
-
|
|
8219
|
-
|
|
8220
|
-
|
|
8221
|
-
|
|
8225
|
+
h('li', {
|
|
8226
|
+
class: ['vxe-table-export--panel-column-option', {
|
|
8227
|
+
'is--checked': isAllChecked,
|
|
8228
|
+
'is--indeterminate': isAllIndeterminate
|
|
8229
|
+
}],
|
|
8230
|
+
title: getI18n$7('vxe.table.allTitle'),
|
|
8231
|
+
onClick: allColumnEvent
|
|
8232
|
+
}, [
|
|
8233
|
+
h('span', {
|
|
8234
|
+
class: ['vxe-checkbox--icon', isAllIndeterminate ? getIcon$3().TABLE_CHECKBOX_INDETERMINATE : (isAllChecked ? getIcon$3().TABLE_CHECKBOX_CHECKED : getIcon$3().TABLE_CHECKBOX_UNCHECKED)]
|
|
8235
|
+
}),
|
|
8236
|
+
h('span', {
|
|
8237
|
+
class: 'vxe-checkbox--label'
|
|
8238
|
+
}, getI18n$7('vxe.export.expCurrentColumn'))
|
|
8239
|
+
])
|
|
8240
|
+
]),
|
|
8241
|
+
h('ul', {
|
|
8242
|
+
class: 'vxe-table-export--panel-column-body'
|
|
8243
|
+
}, colVNs)
|
|
8244
|
+
])
|
|
8222
8245
|
])
|
|
8223
|
-
])
|
|
8224
|
-
|
|
8225
|
-
isPrint
|
|
8246
|
+
]),
|
|
8247
|
+
isPrint && (settingOptions.showWidthMode !== false)
|
|
8226
8248
|
? h('tr', [
|
|
8227
8249
|
h('td', getI18n$7('vxe.export.widthMode')),
|
|
8228
8250
|
h('td', [
|
|
@@ -8238,118 +8260,120 @@ var TableExportPanelComponent = defineVxeComponent({
|
|
|
8238
8260
|
])
|
|
8239
8261
|
])
|
|
8240
8262
|
: 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
|
-
h(VxeUICheckboxComponent, {
|
|
8273
|
-
modelValue: isHeader ? defaultOptions.isTitle : false,
|
|
8274
|
-
disabled: !isHeader,
|
|
8275
|
-
title: getI18n$7('vxe.export.expTitleTitle'),
|
|
8276
|
-
content: getI18n$7('vxe.export.expOptTitle'),
|
|
8277
|
-
'onUpdate:modelValue'(value) {
|
|
8278
|
-
defaultOptions.isTitle = value;
|
|
8279
|
-
}
|
|
8280
|
-
}),
|
|
8281
|
-
h(VxeUICheckboxComponent, {
|
|
8282
|
-
modelValue: isHeader && hasColgroup && supportMerge ? defaultOptions.isColgroup : false,
|
|
8283
|
-
title: getI18n$7('vxe.export.expColgroupTitle'),
|
|
8284
|
-
disabled: !isHeader || !hasColgroup || !supportMerge,
|
|
8285
|
-
content: getI18n$7('vxe.export.expOptColgroup'),
|
|
8286
|
-
'onUpdate:modelValue'(value) {
|
|
8287
|
-
defaultOptions.isColgroup = value;
|
|
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'),
|
|
8263
|
+
settingOptions.showParameter === false
|
|
8264
|
+
? renderEmptyElement$3($xeTable)
|
|
8265
|
+
: h('tr', [
|
|
8266
|
+
h('td', getI18n$7('vxe.export.expOpts')),
|
|
8267
|
+
parameterSlot
|
|
8268
|
+
? h('td', [
|
|
8269
|
+
h('div', {
|
|
8270
|
+
class: 'vxe-table-export--panel-option-row'
|
|
8271
|
+
}, $xeTable.callSlot(parameterSlot, params))
|
|
8272
|
+
])
|
|
8273
|
+
: h('td', [
|
|
8274
|
+
h('div', {
|
|
8275
|
+
class: 'vxe-table-export--panel-option-row'
|
|
8276
|
+
}, VxeUICheckboxComponent
|
|
8277
|
+
? [
|
|
8278
|
+
h(VxeUICheckboxComponent, {
|
|
8279
|
+
modelValue: hasEmptyData || isHeader,
|
|
8280
|
+
disabled: hasEmptyData,
|
|
8281
|
+
title: getI18n$7('vxe.export.expHeaderTitle'),
|
|
8282
|
+
content: getI18n$7('vxe.export.expOptHeader'),
|
|
8283
|
+
'onUpdate:modelValue'(value) {
|
|
8284
|
+
defaultOptions.isHeader = value;
|
|
8285
|
+
}
|
|
8286
|
+
}),
|
|
8287
|
+
h(VxeUICheckboxComponent, {
|
|
8288
|
+
modelValue: defaultOptions.isFooter,
|
|
8289
|
+
disabled: !storeData.hasFooter,
|
|
8290
|
+
title: getI18n$7('vxe.export.expFooterTitle'),
|
|
8291
|
+
content: getI18n$7('vxe.export.expOptFooter'),
|
|
8321
8292
|
'onUpdate:modelValue'(value) {
|
|
8322
|
-
defaultOptions.
|
|
8293
|
+
defaultOptions.isFooter = value;
|
|
8294
|
+
}
|
|
8295
|
+
}),
|
|
8296
|
+
h(VxeUICheckboxComponent, {
|
|
8297
|
+
modelValue: isHeader ? defaultOptions.isTitle : false,
|
|
8298
|
+
disabled: !isHeader,
|
|
8299
|
+
title: getI18n$7('vxe.export.expTitleTitle'),
|
|
8300
|
+
content: getI18n$7('vxe.export.expOptTitle'),
|
|
8301
|
+
'onUpdate:modelValue'(value) {
|
|
8302
|
+
defaultOptions.isTitle = value;
|
|
8303
|
+
}
|
|
8304
|
+
}),
|
|
8305
|
+
h(VxeUICheckboxComponent, {
|
|
8306
|
+
modelValue: isHeader && hasColgroup && supportMerge ? defaultOptions.isColgroup : false,
|
|
8307
|
+
title: getI18n$7('vxe.export.expColgroupTitle'),
|
|
8308
|
+
disabled: !isHeader || !hasColgroup || !supportMerge,
|
|
8309
|
+
content: getI18n$7('vxe.export.expOptColgroup'),
|
|
8310
|
+
'onUpdate:modelValue'(value) {
|
|
8311
|
+
defaultOptions.isColgroup = value;
|
|
8323
8312
|
}
|
|
8324
8313
|
})
|
|
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
|
-
|
|
8314
|
+
]
|
|
8315
|
+
: []),
|
|
8316
|
+
h('div', {
|
|
8317
|
+
class: 'vxe-table-export--panel-option-row'
|
|
8318
|
+
}, VxeUICheckboxComponent
|
|
8319
|
+
? [
|
|
8320
|
+
h(VxeUICheckboxComponent, {
|
|
8321
|
+
modelValue: hasEmptyData ? false : defaultOptions.original,
|
|
8322
|
+
disabled: hasEmptyData,
|
|
8323
|
+
title: getI18n$7('vxe.export.expOriginalTitle'),
|
|
8324
|
+
content: getI18n$7('vxe.export.expOptOriginal'),
|
|
8325
|
+
'onUpdate:modelValue'(value) {
|
|
8326
|
+
defaultOptions.original = value;
|
|
8327
|
+
}
|
|
8328
|
+
}),
|
|
8329
|
+
h(VxeUICheckboxComponent, {
|
|
8330
|
+
modelValue: hasMerge && supportMerge && checkedAll ? defaultOptions.isMerge : false,
|
|
8331
|
+
title: getI18n$7('vxe.export.expMergeTitle'),
|
|
8332
|
+
disabled: hasEmptyData || !hasMerge || !supportMerge || !checkedAll,
|
|
8333
|
+
content: getI18n$7('vxe.export.expOptMerge'),
|
|
8334
|
+
'onUpdate:modelValue'(value) {
|
|
8335
|
+
defaultOptions.isMerge = value;
|
|
8336
|
+
}
|
|
8337
|
+
}),
|
|
8338
|
+
isPrint
|
|
8339
|
+
? renderEmptyElement$3($xeTable)
|
|
8340
|
+
: h(VxeUICheckboxComponent, {
|
|
8341
|
+
modelValue: supportStyle ? defaultOptions.useStyle : false,
|
|
8342
|
+
disabled: !supportStyle,
|
|
8343
|
+
title: getI18n$7('vxe.export.expUseStyleTitle'),
|
|
8344
|
+
content: getI18n$7('vxe.export.expOptUseStyle'),
|
|
8345
|
+
'onUpdate:modelValue'(value) {
|
|
8346
|
+
defaultOptions.useStyle = value;
|
|
8347
|
+
}
|
|
8348
|
+
})
|
|
8349
|
+
]
|
|
8350
|
+
: []),
|
|
8351
|
+
h('div', {
|
|
8352
|
+
class: 'vxe-table-export--panel-option-row'
|
|
8353
|
+
}, VxeUICheckboxComponent
|
|
8354
|
+
? [
|
|
8355
|
+
h(VxeUICheckboxComponent, {
|
|
8356
|
+
modelValue: hasTree ? defaultOptions.isTreeAllExpanded : false,
|
|
8357
|
+
disabled: hasEmptyData || !hasTree,
|
|
8358
|
+
title: getI18n$7('vxe.export.expTreeAllExpandTitle'),
|
|
8359
|
+
content: getI18n$7('vxe.export.expOptTreeAllExpand'),
|
|
8360
|
+
'onUpdate:modelValue'(value) {
|
|
8361
|
+
defaultOptions.isTreeAllExpanded = value;
|
|
8362
|
+
}
|
|
8363
|
+
}),
|
|
8364
|
+
h(VxeUICheckboxComponent, {
|
|
8365
|
+
modelValue: hasRowGroup ? defaultOptions.isRowGroupAllExpanded : false,
|
|
8366
|
+
disabled: hasEmptyData || !hasRowGroup,
|
|
8367
|
+
title: getI18n$7('vxe.export.expRowGroupAllExpandTitle'),
|
|
8368
|
+
content: getI18n$7('vxe.export.expOptRowGroupAllExpand'),
|
|
8369
|
+
'onUpdate:modelValue'(value) {
|
|
8370
|
+
defaultOptions.isRowGroupAllExpanded = value;
|
|
8371
|
+
}
|
|
8372
|
+
})
|
|
8373
|
+
]
|
|
8374
|
+
: [])
|
|
8375
|
+
])
|
|
8376
|
+
])
|
|
8353
8377
|
]
|
|
8354
8378
|
])
|
|
8355
8379
|
])
|