vxe-table 4.23.8 → 4.23.9
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 +5715 -3783
- package/es/components.d.ts +1 -0
- package/es/components.js +2 -7
- package/es/grid/src/emits.js +1 -15
- package/es/grid/src/grid.js +397 -120
- package/es/index.esm.js +1 -0
- package/es/index.js +1 -0
- package/es/table/module/custom/hook.js +49 -42
- package/es/table/module/custom/panel.js +777 -527
- package/es/table/module/edit/hook.js +140 -62
- package/es/table/module/export/export-panel.js +399 -316
- package/es/table/module/export/hook.js +395 -337
- package/es/table/module/export/import-panel.js +152 -123
- package/es/table/module/filter/hook.js +16 -2
- package/es/table/module/filter/panel.js +146 -84
- package/es/table/module/keyboard/hook.js +8 -4
- package/es/table/module/menu/panel.js +197 -126
- package/es/table/render/index.js +151 -98
- package/es/table/src/body.js +355 -233
- package/es/table/src/cell.js +426 -269
- package/es/table/src/columnInfo.js +1 -0
- package/es/table/src/footer.js +144 -99
- package/es/table/src/group.js +7 -3
- package/es/table/src/header.js +229 -172
- package/es/table/src/table.js +1503 -1030
- package/es/table/src/util.js +15 -19
- package/es/toolbar/src/toolbar.js +132 -75
- package/es/ui/index.js +1 -1
- package/es/ui/src/dom.js +9 -6
- package/es/ui/src/log.js +1 -1
- package/es/ui/src/utils.d.ts +1 -1
- package/lib/components.js +2 -7
- package/lib/grid/src/emits.js +1 -15
- package/lib/grid/src/grid.js +397 -120
- package/lib/index.common.js +1 -0
- package/lib/index.js +1 -0
- package/lib/index.umd.js +5732 -3800
- package/lib/index.umd.min.js +3 -3
- package/lib/table/module/custom/hook.js +49 -42
- package/lib/table/module/custom/panel.js +777 -527
- package/lib/table/module/edit/hook.js +140 -62
- package/lib/table/module/export/export-panel.js +399 -316
- package/lib/table/module/export/hook.js +395 -337
- package/lib/table/module/export/import-panel.js +152 -123
- package/lib/table/module/filter/hook.js +16 -2
- package/lib/table/module/filter/panel.js +146 -84
- package/lib/table/module/keyboard/hook.js +8 -4
- package/lib/table/module/menu/panel.js +197 -126
- package/lib/table/render/index.js +151 -98
- package/lib/table/src/body.js +355 -233
- package/lib/table/src/cell.js +426 -269
- package/lib/table/src/columnInfo.js +1 -0
- package/lib/table/src/footer.js +144 -99
- package/lib/table/src/group.js +7 -3
- package/lib/table/src/header.js +229 -172
- package/lib/table/src/table.js +1471 -1029
- package/lib/table/src/util.js +15 -19
- package/lib/toolbar/src/toolbar.js +132 -75
- package/lib/ui/index.js +1 -1
- package/lib/ui/src/dom.js +9 -6
- package/lib/ui/src/log.js +1 -1
- package/package.json +2 -2
- package/packages/colgroup/index.ts +22 -22
- package/packages/column/index.ts +22 -22
- package/packages/components.ts +41 -44
- package/packages/grid/index.ts +18 -18
- package/packages/grid/src/emits.ts +5 -19
- package/packages/grid/src/grid.ts +2229 -1925
- package/packages/grid/src/props.ts +22 -23
- package/packages/index.ts +11 -11
- package/packages/locale/lang/fr-FR.ts +15 -15
- package/packages/locale/lang/it-IT.ts +4 -4
- package/packages/locale/lang/uk-UA.ts +1 -1
- package/packages/locale/lang/uz-UZ.ts +13 -13
- package/packages/locale/lang/zh-CN.ts +907 -907
- package/packages/table/index.ts +26 -26
- package/packages/table/module/custom/hook.ts +510 -503
- package/packages/table/module/custom/panel.ts +2002 -1743
- package/packages/table/module/edit/hook.ts +1224 -1131
- package/packages/table/module/export/export-panel.ts +697 -611
- package/packages/table/module/export/hook.ts +2160 -2059
- package/packages/table/module/export/import-panel.ts +319 -279
- package/packages/table/module/export/util.ts +25 -24
- package/packages/table/module/filter/hook.ts +519 -501
- package/packages/table/module/filter/panel.ts +368 -304
- package/packages/table/module/keyboard/hook.ts +498 -494
- package/packages/table/module/menu/hook.ts +330 -330
- package/packages/table/module/menu/panel.ts +272 -201
- package/packages/table/module/validator/hook.ts +653 -635
- package/packages/table/render/index.ts +1819 -1744
- package/packages/table/src/body.ts +1078 -955
- package/packages/table/src/cell.ts +1524 -1359
- package/packages/table/src/column.ts +192 -192
- package/packages/table/src/columnInfo.ts +232 -232
- package/packages/table/src/emits.ts +134 -134
- package/packages/table/src/footer.ts +425 -380
- package/packages/table/src/group.ts +67 -63
- package/packages/table/src/header.ts +642 -581
- package/packages/table/src/props.ts +336 -336
- package/packages/table/src/store.ts +14 -14
- package/packages/table/src/table.ts +16011 -15454
- package/packages/table/src/use/cell-view.ts +41 -44
- package/packages/table/src/use/index.ts +1 -1
- package/packages/table/src/util.ts +1206 -1216
- package/packages/toolbar/index.ts +18 -18
- package/packages/toolbar/src/toolbar.ts +768 -706
- package/packages/ui/index.ts +519 -520
- package/packages/ui/src/anime.ts +51 -52
- package/packages/ui/src/comp.ts +3 -3
- package/packages/ui/src/dom.ts +466 -463
- package/packages/ui/src/log.ts +19 -19
- package/packages/ui/src/utils.ts +66 -66
- package/packages/ui/src/vn.ts +55 -55
- package/packages/v-x-e-table/index.d.ts +3 -3
- package/packages/v-x-e-table/index.ts +3 -3
- package/types/all.d.ts +76 -76
- package/types/index.d.ts +4 -4
- /package/dist/{iconfont.1793007753347.ttf → iconfont.1793009263429.ttf} +0 -0
- /package/dist/{iconfont.1793007753347.woff → iconfont.1793009263429.woff} +0 -0
- /package/dist/{iconfont.1793007753347.woff2 → iconfont.1793009263429.woff2} +0 -0
- /package/es/{iconfont.1793007753347.ttf → iconfont.1793009263429.ttf} +0 -0
- /package/es/{iconfont.1793007753347.woff → iconfont.1793009263429.woff} +0 -0
- /package/es/{iconfont.1793007753347.woff2 → iconfont.1793009263429.woff2} +0 -0
- /package/lib/{iconfont.1793007753347.ttf → iconfont.1793009263429.ttf} +0 -0
- /package/lib/{iconfont.1793007753347.woff → iconfont.1793009263429.woff} +0 -0
- /package/lib/{iconfont.1793007753347.woff2 → iconfont.1793009263429.woff2} +0 -0
|
@@ -211,330 +211,413 @@ var export_panel_default = (0, import_comp.defineVxeComponent)({
|
|
|
211
211
|
const indeterminate = column.halfChecked;
|
|
212
212
|
const isHtml = column.type === "html";
|
|
213
213
|
colVNs.push(
|
|
214
|
-
(0, import_vue.h)(
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
214
|
+
(0, import_vue.h)(
|
|
215
|
+
"li",
|
|
216
|
+
{
|
|
217
|
+
key: column.id,
|
|
218
|
+
class: [
|
|
219
|
+
"vxe-table-export--panel-column-option",
|
|
220
|
+
`level--${column.level}`,
|
|
221
|
+
{
|
|
222
|
+
"is--group": isColGroup,
|
|
223
|
+
"is--checked": isChecked,
|
|
224
|
+
"is--indeterminate": indeterminate,
|
|
225
|
+
"is--disabled": column.disabled
|
|
226
|
+
}
|
|
227
|
+
],
|
|
228
|
+
title: isHtml ? "" : colTitle,
|
|
229
|
+
onClick: () => {
|
|
230
|
+
if (!column.disabled) {
|
|
231
|
+
changeOption(column);
|
|
232
|
+
}
|
|
226
233
|
}
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
234
|
+
},
|
|
235
|
+
[
|
|
236
|
+
(0, import_vue.h)("span", {
|
|
237
|
+
class: ["vxe-checkbox--icon", indeterminate ? getIcon().TABLE_CHECKBOX_INDETERMINATE : isChecked ? getIcon().TABLE_CHECKBOX_CHECKED : getIcon().TABLE_CHECKBOX_UNCHECKED]
|
|
238
|
+
}),
|
|
239
|
+
isHtml ? (0, import_vue.h)("span", {
|
|
240
|
+
key: "1",
|
|
241
|
+
class: "vxe-checkbox--label",
|
|
242
|
+
innerHTML: colTitle
|
|
243
|
+
}) : (0, import_vue.h)(
|
|
244
|
+
"span",
|
|
245
|
+
{
|
|
246
|
+
key: "0",
|
|
247
|
+
class: "vxe-checkbox--label"
|
|
248
|
+
},
|
|
249
|
+
colTitle
|
|
250
|
+
)
|
|
251
|
+
]
|
|
252
|
+
)
|
|
241
253
|
);
|
|
242
254
|
});
|
|
243
|
-
return VxeUIModalComponent ? (0, import_vue.h)(
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
255
|
+
return VxeUIModalComponent ? (0, import_vue.h)(
|
|
256
|
+
VxeUIModalComponent,
|
|
257
|
+
{
|
|
258
|
+
id: "VXE_EXPORT_MODAL",
|
|
259
|
+
modelValue: storeData.visible,
|
|
260
|
+
title: modelOptions.title || getI18n(isPrint ? "vxe.export.printTitle" : "vxe.export.expTitle"),
|
|
261
|
+
className: "vxe-table-export-popup-wrapper",
|
|
262
|
+
width: modelOptions.width || 660,
|
|
263
|
+
height: modelOptions.height,
|
|
264
|
+
minWidth: modelOptions.minWidth || 500,
|
|
265
|
+
minHeight: modelOptions.minHeight || 400,
|
|
266
|
+
mask: (0, import_utils.getDefaultConfig)(modelOptions.mask, true),
|
|
267
|
+
lockView: (0, import_utils.getDefaultConfig)(modelOptions.lockView, true),
|
|
268
|
+
showFooter: true,
|
|
269
|
+
escClosable: true,
|
|
270
|
+
maskClosable: true,
|
|
271
|
+
position: modelOptions.position,
|
|
272
|
+
fullscreen: modelOptions.fullscreen,
|
|
273
|
+
remember: modelOptions.remember,
|
|
274
|
+
showMinimize: modelOptions.showMinimize,
|
|
275
|
+
showMaximize: (0, import_utils.getDefaultConfig)(modelOptions.showMaximize, true),
|
|
276
|
+
resize: (0, import_utils.getDefaultConfig)(modelOptions.resize, true),
|
|
277
|
+
loading: reactData.loading,
|
|
278
|
+
"onUpdate:modelValue"(value) {
|
|
279
|
+
storeData.visible = value;
|
|
280
|
+
},
|
|
281
|
+
onShow: showEvent
|
|
266
282
|
},
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
283
|
+
{
|
|
284
|
+
default: () => {
|
|
285
|
+
const params = {
|
|
286
|
+
$table: $xeTable,
|
|
287
|
+
$grid: $xeGrid,
|
|
288
|
+
$gantt: $xeGantt,
|
|
289
|
+
options: defaultOptions,
|
|
290
|
+
columns,
|
|
291
|
+
params: defaultOptions.params
|
|
292
|
+
};
|
|
293
|
+
const hasEmptyData = defaultOptions.mode === "empty";
|
|
294
|
+
return (0, import_vue.h)(
|
|
295
|
+
"div",
|
|
296
|
+
{
|
|
297
|
+
class: "vxe-table-export--panel"
|
|
298
|
+
},
|
|
299
|
+
[
|
|
300
|
+
topSlot ? (0, import_vue.h)(
|
|
301
|
+
"div",
|
|
302
|
+
{
|
|
303
|
+
class: "vxe-table-export--panel-top"
|
|
304
|
+
},
|
|
305
|
+
$xeTable.callSlot(topSlot, params)
|
|
306
|
+
) : renderEmptyElement($xeTable),
|
|
307
|
+
(0, import_vue.h)(
|
|
308
|
+
"div",
|
|
309
|
+
{
|
|
310
|
+
class: "vxe-table-export--panel-body"
|
|
311
|
+
},
|
|
312
|
+
defaultSlot ? $xeTable.callSlot(defaultSlot, params) : [
|
|
313
|
+
(0, import_vue.h)(
|
|
314
|
+
"table",
|
|
315
|
+
{
|
|
316
|
+
class: "vxe-table-export--panel-table",
|
|
317
|
+
cellspacing: 0,
|
|
318
|
+
cellpadding: 0,
|
|
319
|
+
border: 0
|
|
320
|
+
},
|
|
321
|
+
[
|
|
322
|
+
(0, import_vue.h)("tbody", [
|
|
323
|
+
[
|
|
324
|
+
isPrint || settingOptions.showFileName === false ? renderEmptyElement($xeTable) : (0, import_vue.h)("tr", [
|
|
325
|
+
(0, import_vue.h)("td", getI18n("vxe.export.expName")),
|
|
326
|
+
(0, import_vue.h)("td", [
|
|
327
|
+
VxeUIInputComponent ? (0, import_vue.h)(VxeUIInputComponent, {
|
|
328
|
+
ref: xInputFilename,
|
|
329
|
+
modelValue: defaultOptions.filename,
|
|
330
|
+
type: "text",
|
|
331
|
+
clearable: true,
|
|
332
|
+
placeholder: getI18n("vxe.export.expNamePlaceholder"),
|
|
333
|
+
"onUpdate:modelValue"(value) {
|
|
334
|
+
defaultOptions.filename = value;
|
|
335
|
+
}
|
|
336
|
+
}) : renderEmptyElement($xeTable)
|
|
337
|
+
])
|
|
338
|
+
]),
|
|
339
|
+
isPrint || settingOptions.showType === false ? renderEmptyElement($xeTable) : (0, import_vue.h)("tr", [
|
|
340
|
+
(0, import_vue.h)("td", getI18n("vxe.export.expType")),
|
|
341
|
+
(0, import_vue.h)("td", [
|
|
342
|
+
VxeUISelectComponent ? (0, import_vue.h)(VxeUISelectComponent, {
|
|
343
|
+
modelValue: defaultOptions.type,
|
|
344
|
+
options: storeData.typeList,
|
|
345
|
+
"onUpdate:modelValue"(value) {
|
|
346
|
+
defaultOptions.type = value;
|
|
347
|
+
}
|
|
348
|
+
}) : renderEmptyElement($xeTable)
|
|
349
|
+
])
|
|
350
|
+
]),
|
|
351
|
+
(isPrint || showSheet) && settingOptions.showSheet !== false ? (0, import_vue.h)("tr", [
|
|
352
|
+
(0, import_vue.h)("td", getI18n("vxe.export.expSheetName")),
|
|
353
|
+
(0, import_vue.h)("td", [
|
|
354
|
+
VxeUIInputComponent ? (0, import_vue.h)(VxeUIInputComponent, {
|
|
355
|
+
ref: xInputSheetname,
|
|
356
|
+
modelValue: defaultOptions.sheetName,
|
|
357
|
+
type: "text",
|
|
358
|
+
clearable: true,
|
|
359
|
+
placeholder: getI18n("vxe.export.expSheetNamePlaceholder"),
|
|
360
|
+
"onUpdate:modelValue"(value) {
|
|
361
|
+
defaultOptions.sheetName = value;
|
|
362
|
+
}
|
|
363
|
+
}) : renderEmptyElement($xeTable)
|
|
364
|
+
])
|
|
365
|
+
]) : renderEmptyElement($xeTable),
|
|
366
|
+
settingOptions.showMode === false ? renderEmptyElement($xeTable) : (0, import_vue.h)("tr", [
|
|
367
|
+
(0, import_vue.h)("td", getI18n("vxe.export.expMode")),
|
|
368
|
+
(0, import_vue.h)("td", [
|
|
369
|
+
VxeUISelectComponent ? (0, import_vue.h)(VxeUISelectComponent, {
|
|
370
|
+
modelValue: defaultOptions.mode,
|
|
371
|
+
options: storeData.modeList.map((item) => {
|
|
372
|
+
return {
|
|
373
|
+
value: item.value,
|
|
374
|
+
label: getI18n(item.label)
|
|
375
|
+
};
|
|
376
|
+
}),
|
|
377
|
+
"onUpdate:modelValue"(value) {
|
|
378
|
+
defaultOptions.mode = value;
|
|
379
|
+
}
|
|
380
|
+
}) : renderEmptyElement($xeTable)
|
|
381
|
+
])
|
|
382
|
+
]),
|
|
383
|
+
settingOptions.showColumn === false ? renderEmptyElement($xeTable) : (0, import_vue.h)("tr", [
|
|
384
|
+
(0, import_vue.h)("td", [getI18n("vxe.export.expColumn")]),
|
|
385
|
+
(0, import_vue.h)("td", [
|
|
386
|
+
(0, import_vue.h)(
|
|
387
|
+
"div",
|
|
388
|
+
{
|
|
389
|
+
class: "vxe-table-export--panel-column"
|
|
390
|
+
},
|
|
391
|
+
[
|
|
392
|
+
(0, import_vue.h)(
|
|
393
|
+
"ul",
|
|
394
|
+
{
|
|
395
|
+
class: "vxe-table-export--panel-column-header"
|
|
396
|
+
},
|
|
397
|
+
[
|
|
398
|
+
(0, import_vue.h)(
|
|
399
|
+
"li",
|
|
400
|
+
{
|
|
401
|
+
class: [
|
|
402
|
+
"vxe-table-export--panel-column-option",
|
|
403
|
+
{
|
|
404
|
+
"is--checked": isAllChecked,
|
|
405
|
+
"is--indeterminate": isAllIndeterminate
|
|
406
|
+
}
|
|
407
|
+
],
|
|
408
|
+
title: getI18n("vxe.table.allTitle"),
|
|
409
|
+
onClick: allColumnEvent
|
|
410
|
+
},
|
|
411
|
+
[
|
|
412
|
+
(0, import_vue.h)("span", {
|
|
413
|
+
class: ["vxe-checkbox--icon", isAllIndeterminate ? getIcon().TABLE_CHECKBOX_INDETERMINATE : isAllChecked ? getIcon().TABLE_CHECKBOX_CHECKED : getIcon().TABLE_CHECKBOX_UNCHECKED]
|
|
414
|
+
}),
|
|
415
|
+
(0, import_vue.h)(
|
|
416
|
+
"span",
|
|
417
|
+
{
|
|
418
|
+
class: "vxe-checkbox--label"
|
|
419
|
+
},
|
|
420
|
+
getI18n("vxe.export.expCurrentColumn")
|
|
421
|
+
)
|
|
422
|
+
]
|
|
423
|
+
)
|
|
424
|
+
]
|
|
425
|
+
),
|
|
426
|
+
(0, import_vue.h)(
|
|
427
|
+
"ul",
|
|
428
|
+
{
|
|
429
|
+
class: "vxe-table-export--panel-column-body"
|
|
430
|
+
},
|
|
431
|
+
colVNs
|
|
432
|
+
)
|
|
433
|
+
]
|
|
434
|
+
)
|
|
435
|
+
])
|
|
436
|
+
]),
|
|
437
|
+
isPrint && settingOptions.showWidthMode !== false ? (0, import_vue.h)("tr", [
|
|
438
|
+
(0, import_vue.h)("td", getI18n("vxe.export.widthMode")),
|
|
439
|
+
(0, import_vue.h)("td", [
|
|
440
|
+
VxeUISelectComponent ? (0, import_vue.h)(VxeUISelectComponent, {
|
|
441
|
+
modelValue: defaultOptions.widthMode,
|
|
442
|
+
options: colWidthModeOptions,
|
|
443
|
+
"onUpdate:modelValue"(value) {
|
|
444
|
+
defaultOptions.widthMode = value;
|
|
445
|
+
}
|
|
446
|
+
}) : renderEmptyElement($xeTable)
|
|
447
|
+
])
|
|
448
|
+
]) : renderEmptyElement($xeTable),
|
|
449
|
+
settingOptions.showParameter === false ? renderEmptyElement($xeTable) : (0, import_vue.h)("tr", [
|
|
450
|
+
(0, import_vue.h)("td", getI18n("vxe.export.expOpts")),
|
|
451
|
+
parameterSlot ? (0, import_vue.h)("td", [
|
|
452
|
+
(0, import_vue.h)(
|
|
453
|
+
"div",
|
|
454
|
+
{
|
|
455
|
+
class: "vxe-table-export--panel-option-row"
|
|
456
|
+
},
|
|
457
|
+
$xeTable.callSlot(parameterSlot, params)
|
|
458
|
+
)
|
|
459
|
+
]) : (0, import_vue.h)("td", [
|
|
460
|
+
(0, import_vue.h)(
|
|
461
|
+
"div",
|
|
462
|
+
{
|
|
463
|
+
class: "vxe-table-export--panel-option-row"
|
|
464
|
+
},
|
|
465
|
+
VxeUICheckboxComponent ? [
|
|
466
|
+
(0, import_vue.h)(VxeUICheckboxComponent, {
|
|
467
|
+
modelValue: hasEmptyData || isHeader,
|
|
468
|
+
disabled: hasEmptyData,
|
|
469
|
+
title: getI18n("vxe.export.expHeaderTitle"),
|
|
470
|
+
content: getI18n("vxe.export.expOptHeader"),
|
|
471
|
+
"onUpdate:modelValue"(value) {
|
|
472
|
+
defaultOptions.isHeader = value;
|
|
473
|
+
}
|
|
474
|
+
}),
|
|
475
|
+
(0, import_vue.h)(VxeUICheckboxComponent, {
|
|
476
|
+
modelValue: defaultOptions.isFooter,
|
|
477
|
+
disabled: !storeData.hasFooter,
|
|
478
|
+
title: getI18n("vxe.export.expFooterTitle"),
|
|
479
|
+
content: getI18n("vxe.export.expOptFooter"),
|
|
480
|
+
"onUpdate:modelValue"(value) {
|
|
481
|
+
defaultOptions.isFooter = value;
|
|
482
|
+
}
|
|
483
|
+
}),
|
|
484
|
+
(0, import_vue.h)(VxeUICheckboxComponent, {
|
|
485
|
+
modelValue: isHeader ? defaultOptions.isTitle : false,
|
|
486
|
+
disabled: !isHeader,
|
|
487
|
+
title: getI18n("vxe.export.expTitleTitle"),
|
|
488
|
+
content: getI18n("vxe.export.expOptTitle"),
|
|
489
|
+
"onUpdate:modelValue"(value) {
|
|
490
|
+
defaultOptions.isTitle = value;
|
|
491
|
+
}
|
|
492
|
+
}),
|
|
493
|
+
(0, import_vue.h)(VxeUICheckboxComponent, {
|
|
494
|
+
modelValue: isHeader && hasColgroup && supportMerge ? defaultOptions.isColgroup : false,
|
|
495
|
+
title: getI18n("vxe.export.expColgroupTitle"),
|
|
496
|
+
disabled: !isHeader || !hasColgroup || !supportMerge,
|
|
497
|
+
content: getI18n("vxe.export.expOptColgroup"),
|
|
498
|
+
"onUpdate:modelValue"(value) {
|
|
499
|
+
defaultOptions.isColgroup = value;
|
|
500
|
+
}
|
|
501
|
+
})
|
|
502
|
+
] : []
|
|
503
|
+
),
|
|
504
|
+
(0, import_vue.h)(
|
|
505
|
+
"div",
|
|
506
|
+
{
|
|
507
|
+
class: "vxe-table-export--panel-option-row"
|
|
508
|
+
},
|
|
509
|
+
VxeUICheckboxComponent ? [
|
|
510
|
+
(0, import_vue.h)(VxeUICheckboxComponent, {
|
|
511
|
+
modelValue: hasEmptyData ? false : defaultOptions.original,
|
|
512
|
+
disabled: hasEmptyData,
|
|
513
|
+
title: getI18n("vxe.export.expOriginalTitle"),
|
|
514
|
+
content: getI18n("vxe.export.expOptOriginal"),
|
|
515
|
+
"onUpdate:modelValue"(value) {
|
|
516
|
+
defaultOptions.original = value;
|
|
517
|
+
}
|
|
518
|
+
}),
|
|
519
|
+
(0, import_vue.h)(VxeUICheckboxComponent, {
|
|
520
|
+
modelValue: hasMerge && supportMerge && checkedAll ? defaultOptions.isMerge : false,
|
|
521
|
+
title: getI18n("vxe.export.expMergeTitle"),
|
|
522
|
+
disabled: hasEmptyData || !hasMerge || !supportMerge || !checkedAll,
|
|
523
|
+
content: getI18n("vxe.export.expOptMerge"),
|
|
524
|
+
"onUpdate:modelValue"(value) {
|
|
525
|
+
defaultOptions.isMerge = value;
|
|
526
|
+
}
|
|
527
|
+
}),
|
|
528
|
+
isPrint ? renderEmptyElement($xeTable) : (0, import_vue.h)(VxeUICheckboxComponent, {
|
|
529
|
+
modelValue: supportStyle ? defaultOptions.useStyle : false,
|
|
530
|
+
disabled: !supportStyle,
|
|
531
|
+
title: getI18n("vxe.export.expUseStyleTitle"),
|
|
532
|
+
content: getI18n("vxe.export.expOptUseStyle"),
|
|
533
|
+
"onUpdate:modelValue"(value) {
|
|
534
|
+
defaultOptions.useStyle = value;
|
|
535
|
+
}
|
|
536
|
+
})
|
|
537
|
+
] : []
|
|
538
|
+
),
|
|
539
|
+
(0, import_vue.h)(
|
|
540
|
+
"div",
|
|
541
|
+
{
|
|
542
|
+
class: "vxe-table-export--panel-option-row"
|
|
543
|
+
},
|
|
544
|
+
VxeUICheckboxComponent ? [
|
|
545
|
+
(0, import_vue.h)(VxeUICheckboxComponent, {
|
|
546
|
+
modelValue: hasTree ? defaultOptions.isTreeAllExpanded : false,
|
|
547
|
+
disabled: hasEmptyData || !hasTree,
|
|
548
|
+
title: getI18n("vxe.export.expTreeAllExpandTitle"),
|
|
549
|
+
content: getI18n("vxe.export.expOptTreeAllExpand"),
|
|
550
|
+
"onUpdate:modelValue"(value) {
|
|
551
|
+
defaultOptions.isTreeAllExpanded = value;
|
|
552
|
+
}
|
|
553
|
+
}),
|
|
554
|
+
(0, import_vue.h)(VxeUICheckboxComponent, {
|
|
555
|
+
modelValue: hasRowGroup ? defaultOptions.isRowGroupAllExpanded : false,
|
|
556
|
+
disabled: hasEmptyData || !hasRowGroup,
|
|
557
|
+
title: getI18n("vxe.export.expRowGroupAllExpandTitle"),
|
|
558
|
+
content: getI18n("vxe.export.expOptRowGroupAllExpand"),
|
|
559
|
+
"onUpdate:modelValue"(value) {
|
|
560
|
+
defaultOptions.isRowGroupAllExpanded = value;
|
|
561
|
+
}
|
|
562
|
+
})
|
|
563
|
+
] : []
|
|
564
|
+
)
|
|
565
|
+
])
|
|
378
566
|
])
|
|
379
|
-
]
|
|
380
|
-
(0, import_vue.h)("ul", {
|
|
381
|
-
class: "vxe-table-export--panel-column-body"
|
|
382
|
-
}, colVNs)
|
|
567
|
+
]
|
|
383
568
|
])
|
|
384
|
-
]
|
|
385
|
-
|
|
386
|
-
isPrint && settingOptions.showWidthMode !== false ? (0, import_vue.h)("tr", [
|
|
387
|
-
(0, import_vue.h)("td", getI18n("vxe.export.widthMode")),
|
|
388
|
-
(0, import_vue.h)("td", [
|
|
389
|
-
VxeUISelectComponent ? (0, import_vue.h)(VxeUISelectComponent, {
|
|
390
|
-
modelValue: defaultOptions.widthMode,
|
|
391
|
-
options: colWidthModeOptions,
|
|
392
|
-
"onUpdate:modelValue"(value) {
|
|
393
|
-
defaultOptions.widthMode = value;
|
|
394
|
-
}
|
|
395
|
-
}) : renderEmptyElement($xeTable)
|
|
396
|
-
])
|
|
397
|
-
]) : renderEmptyElement($xeTable),
|
|
398
|
-
settingOptions.showParameter === false ? renderEmptyElement($xeTable) : (0, import_vue.h)("tr", [
|
|
399
|
-
(0, import_vue.h)("td", getI18n("vxe.export.expOpts")),
|
|
400
|
-
parameterSlot ? (0, import_vue.h)("td", [
|
|
401
|
-
(0, import_vue.h)("div", {
|
|
402
|
-
class: "vxe-table-export--panel-option-row"
|
|
403
|
-
}, $xeTable.callSlot(parameterSlot, params))
|
|
404
|
-
]) : (0, import_vue.h)("td", [
|
|
405
|
-
(0, import_vue.h)("div", {
|
|
406
|
-
class: "vxe-table-export--panel-option-row"
|
|
407
|
-
}, VxeUICheckboxComponent ? [
|
|
408
|
-
(0, import_vue.h)(VxeUICheckboxComponent, {
|
|
409
|
-
modelValue: hasEmptyData || isHeader,
|
|
410
|
-
disabled: hasEmptyData,
|
|
411
|
-
title: getI18n("vxe.export.expHeaderTitle"),
|
|
412
|
-
content: getI18n("vxe.export.expOptHeader"),
|
|
413
|
-
"onUpdate:modelValue"(value) {
|
|
414
|
-
defaultOptions.isHeader = value;
|
|
415
|
-
}
|
|
416
|
-
}),
|
|
417
|
-
(0, import_vue.h)(VxeUICheckboxComponent, {
|
|
418
|
-
modelValue: defaultOptions.isFooter,
|
|
419
|
-
disabled: !storeData.hasFooter,
|
|
420
|
-
title: getI18n("vxe.export.expFooterTitle"),
|
|
421
|
-
content: getI18n("vxe.export.expOptFooter"),
|
|
422
|
-
"onUpdate:modelValue"(value) {
|
|
423
|
-
defaultOptions.isFooter = value;
|
|
424
|
-
}
|
|
425
|
-
}),
|
|
426
|
-
(0, import_vue.h)(VxeUICheckboxComponent, {
|
|
427
|
-
modelValue: isHeader ? defaultOptions.isTitle : false,
|
|
428
|
-
disabled: !isHeader,
|
|
429
|
-
title: getI18n("vxe.export.expTitleTitle"),
|
|
430
|
-
content: getI18n("vxe.export.expOptTitle"),
|
|
431
|
-
"onUpdate:modelValue"(value) {
|
|
432
|
-
defaultOptions.isTitle = value;
|
|
433
|
-
}
|
|
434
|
-
}),
|
|
435
|
-
(0, import_vue.h)(VxeUICheckboxComponent, {
|
|
436
|
-
modelValue: isHeader && hasColgroup && supportMerge ? defaultOptions.isColgroup : false,
|
|
437
|
-
title: getI18n("vxe.export.expColgroupTitle"),
|
|
438
|
-
disabled: !isHeader || !hasColgroup || !supportMerge,
|
|
439
|
-
content: getI18n("vxe.export.expOptColgroup"),
|
|
440
|
-
"onUpdate:modelValue"(value) {
|
|
441
|
-
defaultOptions.isColgroup = value;
|
|
442
|
-
}
|
|
443
|
-
})
|
|
444
|
-
] : []),
|
|
445
|
-
(0, import_vue.h)("div", {
|
|
446
|
-
class: "vxe-table-export--panel-option-row"
|
|
447
|
-
}, VxeUICheckboxComponent ? [
|
|
448
|
-
(0, import_vue.h)(VxeUICheckboxComponent, {
|
|
449
|
-
modelValue: hasEmptyData ? false : defaultOptions.original,
|
|
450
|
-
disabled: hasEmptyData,
|
|
451
|
-
title: getI18n("vxe.export.expOriginalTitle"),
|
|
452
|
-
content: getI18n("vxe.export.expOptOriginal"),
|
|
453
|
-
"onUpdate:modelValue"(value) {
|
|
454
|
-
defaultOptions.original = value;
|
|
455
|
-
}
|
|
456
|
-
}),
|
|
457
|
-
(0, import_vue.h)(VxeUICheckboxComponent, {
|
|
458
|
-
modelValue: hasMerge && supportMerge && checkedAll ? defaultOptions.isMerge : false,
|
|
459
|
-
title: getI18n("vxe.export.expMergeTitle"),
|
|
460
|
-
disabled: hasEmptyData || !hasMerge || !supportMerge || !checkedAll,
|
|
461
|
-
content: getI18n("vxe.export.expOptMerge"),
|
|
462
|
-
"onUpdate:modelValue"(value) {
|
|
463
|
-
defaultOptions.isMerge = value;
|
|
464
|
-
}
|
|
465
|
-
}),
|
|
466
|
-
isPrint ? renderEmptyElement($xeTable) : (0, import_vue.h)(VxeUICheckboxComponent, {
|
|
467
|
-
modelValue: supportStyle ? defaultOptions.useStyle : false,
|
|
468
|
-
disabled: !supportStyle,
|
|
469
|
-
title: getI18n("vxe.export.expUseStyleTitle"),
|
|
470
|
-
content: getI18n("vxe.export.expOptUseStyle"),
|
|
471
|
-
"onUpdate:modelValue"(value) {
|
|
472
|
-
defaultOptions.useStyle = value;
|
|
473
|
-
}
|
|
474
|
-
})
|
|
475
|
-
] : []),
|
|
476
|
-
(0, import_vue.h)("div", {
|
|
477
|
-
class: "vxe-table-export--panel-option-row"
|
|
478
|
-
}, VxeUICheckboxComponent ? [
|
|
479
|
-
(0, import_vue.h)(VxeUICheckboxComponent, {
|
|
480
|
-
modelValue: hasTree ? defaultOptions.isTreeAllExpanded : false,
|
|
481
|
-
disabled: hasEmptyData || !hasTree,
|
|
482
|
-
title: getI18n("vxe.export.expTreeAllExpandTitle"),
|
|
483
|
-
content: getI18n("vxe.export.expOptTreeAllExpand"),
|
|
484
|
-
"onUpdate:modelValue"(value) {
|
|
485
|
-
defaultOptions.isTreeAllExpanded = value;
|
|
486
|
-
}
|
|
487
|
-
}),
|
|
488
|
-
(0, import_vue.h)(VxeUICheckboxComponent, {
|
|
489
|
-
modelValue: hasRowGroup ? defaultOptions.isRowGroupAllExpanded : false,
|
|
490
|
-
disabled: hasEmptyData || !hasRowGroup,
|
|
491
|
-
title: getI18n("vxe.export.expRowGroupAllExpandTitle"),
|
|
492
|
-
content: getI18n("vxe.export.expOptRowGroupAllExpand"),
|
|
493
|
-
"onUpdate:modelValue"(value) {
|
|
494
|
-
defaultOptions.isRowGroupAllExpanded = value;
|
|
495
|
-
}
|
|
496
|
-
})
|
|
497
|
-
] : [])
|
|
498
|
-
])
|
|
499
|
-
])
|
|
569
|
+
]
|
|
570
|
+
)
|
|
500
571
|
]
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
(0, import_vue.h)(
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
572
|
+
),
|
|
573
|
+
bottomSlot ? (0, import_vue.h)(
|
|
574
|
+
"div",
|
|
575
|
+
{
|
|
576
|
+
class: "vxe-table-export--panel-bottom"
|
|
577
|
+
},
|
|
578
|
+
$xeTable.callSlot(bottomSlot, params)
|
|
579
|
+
) : renderEmptyElement($xeTable)
|
|
580
|
+
]
|
|
581
|
+
);
|
|
582
|
+
},
|
|
583
|
+
footer() {
|
|
584
|
+
const params = {
|
|
585
|
+
$table: $xeTable,
|
|
586
|
+
$grid: $xeGrid,
|
|
587
|
+
$gantt: $xeGantt,
|
|
588
|
+
options: defaultOptions,
|
|
589
|
+
columns,
|
|
590
|
+
params: defaultOptions.params
|
|
591
|
+
};
|
|
592
|
+
return (0, import_vue.h)(
|
|
593
|
+
"div",
|
|
594
|
+
{
|
|
595
|
+
class: "vxe-table-export--panel-footer"
|
|
596
|
+
},
|
|
597
|
+
footerSlot ? $xeTable.callSlot(footerSlot, params) : [
|
|
598
|
+
(0, import_vue.h)(
|
|
599
|
+
"div",
|
|
600
|
+
{
|
|
601
|
+
class: "vxe-table-export--panel-btns"
|
|
602
|
+
},
|
|
603
|
+
[
|
|
604
|
+
VxeUIButtonComponent ? (0, import_vue.h)(VxeUIButtonComponent, {
|
|
605
|
+
content: getI18n("vxe.export.expCancel"),
|
|
606
|
+
onClick: cancelEvent
|
|
607
|
+
}) : renderEmptyElement($xeTable),
|
|
608
|
+
VxeUIButtonComponent ? (0, import_vue.h)(VxeUIButtonComponent, {
|
|
609
|
+
ref: xButtonConfirm,
|
|
610
|
+
status: "primary",
|
|
611
|
+
content: getI18n(isPrint ? "vxe.export.expPrint" : "vxe.export.expConfirm"),
|
|
612
|
+
onClick: confirmEvent
|
|
613
|
+
}) : renderEmptyElement($xeTable)
|
|
614
|
+
]
|
|
615
|
+
)
|
|
616
|
+
]
|
|
617
|
+
);
|
|
618
|
+
}
|
|
536
619
|
}
|
|
537
|
-
|
|
620
|
+
) : renderEmptyElement($xeTable);
|
|
538
621
|
};
|
|
539
622
|
(0, import_vue.nextTick)(() => {
|
|
540
623
|
if (!VxeUIModalComponent) {
|