vxe-table 3.23.0-beta.2 → 3.23.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/es/style.css +1 -1
- package/es/table/module/export/export-panel.js +208 -195
- package/es/table/module/export/import-panel.js +31 -23
- package/es/ui/index.js +1 -1
- package/es/ui/src/dom.js +5 -1
- package/es/ui/src/log.js +1 -1
- package/es/ui/src/utils.js +3 -0
- package/lib/index.umd.js +47 -27
- 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 +6 -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/lib/ui/src/utils.js +4 -0
- package/lib/ui/src/utils.min.js +1 -1
- package/package.json +2 -2
- package/packages/table/module/export/export-panel.ts +208 -195
- package/packages/table/module/export/import-panel.ts +31 -23
- package/packages/ui/src/dom.ts +7 -2
- package/packages/ui/src/utils.ts +4 -0
- /package/es/{iconfont.1787119200875.ttf → iconfont.1787216111946.ttf} +0 -0
- /package/es/{iconfont.1787119200875.woff → iconfont.1787216111946.woff} +0 -0
- /package/es/{iconfont.1787119200875.woff2 → iconfont.1787216111946.woff2} +0 -0
- /package/lib/{iconfont.1787119200875.ttf → iconfont.1787216111946.ttf} +0 -0
- /package/lib/{iconfont.1787119200875.woff → iconfont.1787216111946.woff} +0 -0
- /package/lib/{iconfont.1787119200875.woff2 → iconfont.1787216111946.woff2} +0 -0
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${"3.23.0-beta.
|
|
3
|
+
const tableVersion = `table v${"3.23.0-beta.4"}`;
|
|
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/es/ui/src/utils.js
CHANGED
|
@@ -43,3 +43,6 @@ export function eqEmptyValue(cellValue) {
|
|
|
43
43
|
export function getClass(property, params) {
|
|
44
44
|
return property ? XEUtils.isFunction(property) ? property(params) : property : '';
|
|
45
45
|
}
|
|
46
|
+
export function getDefaultConfig(val1, def1) {
|
|
47
|
+
return XEUtils.eqNull(val1) ? def1 : val1;
|
|
48
|
+
}
|
package/lib/index.umd.js
CHANGED
|
@@ -3307,11 +3307,14 @@ function eqEmptyValue(cellValue) {
|
|
|
3307
3307
|
function getClass(property, params) {
|
|
3308
3308
|
return property ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(property) ? property(params) : property : '';
|
|
3309
3309
|
}
|
|
3310
|
+
function getDefaultConfig(val1, def1) {
|
|
3311
|
+
return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eqNull(val1) ? def1 : val1;
|
|
3312
|
+
}
|
|
3310
3313
|
;// ./packages/ui/index.ts
|
|
3311
3314
|
/* unused harmony import specifier */ var VxeUI;
|
|
3312
3315
|
|
|
3313
3316
|
|
|
3314
|
-
const version = "3.23.0-beta.
|
|
3317
|
+
const version = "3.23.0-beta.4";
|
|
3315
3318
|
core_.VxeUI.version = version;
|
|
3316
3319
|
core_.VxeUI.tableVersion = version;
|
|
3317
3320
|
core_.VxeUI.setConfig({
|
|
@@ -4095,17 +4098,21 @@ function wheelScrollTopTo(diffNum, cb) {
|
|
|
4095
4098
|
}
|
|
4096
4099
|
function getPopupContainer(appendTo) {
|
|
4097
4100
|
const selectElem = appendTo && XEUtils.isFunction(appendTo) ? appendTo({}) : appendTo;
|
|
4101
|
+
return selectElem || 'body';
|
|
4102
|
+
}
|
|
4103
|
+
function getPopupAppendElement(appendTo) {
|
|
4104
|
+
const selectElem = getPopupContainer(appendTo);
|
|
4098
4105
|
if (XEUtils.isString(selectElem)) {
|
|
4099
4106
|
return document.querySelector(selectElem) || document.body;
|
|
4100
4107
|
}
|
|
4101
|
-
return selectElem
|
|
4108
|
+
return selectElem;
|
|
4102
4109
|
}
|
|
4103
4110
|
;// ./packages/ui/src/log.ts
|
|
4104
4111
|
|
|
4105
4112
|
const {
|
|
4106
4113
|
log: log_log
|
|
4107
4114
|
} = core_.VxeUI;
|
|
4108
|
-
const tableVersion = `table v${"3.23.0-beta.
|
|
4115
|
+
const tableVersion = `table v${"3.23.0-beta.4"}`;
|
|
4109
4116
|
function createComponentLog(name) {
|
|
4110
4117
|
const uiVersion = core_.VxeUI.uiVersion ? `ui v${core_.VxeUI.uiVersion}` : '';
|
|
4111
4118
|
const ganttVersion = core_.VxeUI.ganttVersion ? `gantt v${core_.VxeUI.ganttVersion}` : '';
|
|
@@ -13130,7 +13137,10 @@ const {
|
|
|
13130
13137
|
} = props;
|
|
13131
13138
|
const selectName = $xeImportPanel.computeSelectName;
|
|
13132
13139
|
const hasFile = $xeImportPanel.computeHasFile;
|
|
13140
|
+
const importOpts = $xeTable.computeImportOpts;
|
|
13133
13141
|
const parseTypeLabel = $xeImportPanel.computeParseTypeLabel;
|
|
13142
|
+
const modelOptions = importOpts.modelOptions || {};
|
|
13143
|
+
const settingOptions = importOpts.settingOptions || {};
|
|
13134
13144
|
const slots = defaultOptions.slots || {};
|
|
13135
13145
|
const topSlot = slots.top;
|
|
13136
13146
|
const bottomSlot = slots.bottom;
|
|
@@ -13141,17 +13151,20 @@ const {
|
|
|
13141
13151
|
props: {
|
|
13142
13152
|
id: 'VXE_IMPORT_MODAL',
|
|
13143
13153
|
value: storeData.visible,
|
|
13144
|
-
title: import_panel_getI18n('vxe.import.impTitle'),
|
|
13145
|
-
width: 540,
|
|
13146
|
-
|
|
13147
|
-
|
|
13148
|
-
|
|
13149
|
-
|
|
13154
|
+
title: modelOptions.title || import_panel_getI18n('vxe.import.impTitle'),
|
|
13155
|
+
width: modelOptions.width || 540,
|
|
13156
|
+
height: modelOptions.height,
|
|
13157
|
+
minWidth: modelOptions.minWidth || 360,
|
|
13158
|
+
minHeight: modelOptions.minHeight || 240,
|
|
13159
|
+
mask: getDefaultConfig(modelOptions.mask, true),
|
|
13160
|
+
lockView: getDefaultConfig(modelOptions.lockView, true),
|
|
13150
13161
|
showFooter: true,
|
|
13151
13162
|
escClosable: true,
|
|
13152
13163
|
maskClosable: true,
|
|
13153
|
-
|
|
13154
|
-
|
|
13164
|
+
fullscreen: modelOptions.fullscreen,
|
|
13165
|
+
showMinimize: modelOptions.showMinimize,
|
|
13166
|
+
showMaximize: getDefaultConfig(modelOptions.showMaximize, true),
|
|
13167
|
+
resize: getDefaultConfig(modelOptions.resize, true),
|
|
13155
13168
|
loading: reactData.loading
|
|
13156
13169
|
},
|
|
13157
13170
|
on: {
|
|
@@ -13201,7 +13214,7 @@ const {
|
|
|
13201
13214
|
on: {
|
|
13202
13215
|
click: $xeImportPanel.selectFileEvent
|
|
13203
13216
|
}
|
|
13204
|
-
}, import_panel_getI18n('vxe.import.impSelect'))])]), h('tr', [h('td', import_panel_getI18n('vxe.import.impType')), h('td', parseTypeLabel)]), h('tr', [h('td', import_panel_getI18n('vxe.import.impMode')), h('td', [h('vxe-select', {
|
|
13217
|
+
}, import_panel_getI18n('vxe.import.impSelect'))])]), h('tr', [h('td', import_panel_getI18n('vxe.import.impType')), h('td', parseTypeLabel)]), settingOptions.showMode === false ? import_panel_renderEmptyElement($xeTable) : h('tr', [h('td', import_panel_getI18n('vxe.import.impMode')), h('td', [h('vxe-select', {
|
|
13205
13218
|
props: {
|
|
13206
13219
|
value: defaultOptions.mode,
|
|
13207
13220
|
options: storeData.modeList
|
|
@@ -13544,6 +13557,10 @@ const {
|
|
|
13544
13557
|
isHeader
|
|
13545
13558
|
} = defaultOptions;
|
|
13546
13559
|
const colVNs = [];
|
|
13560
|
+
const exportOpts = $xeTable.computeExportOpts;
|
|
13561
|
+
const printOpts = $xeTable.computePrintOpts;
|
|
13562
|
+
const modelOptions = (isPrint ? printOpts : exportOpts).modelOptions || {};
|
|
13563
|
+
const settingOptions = (isPrint ? printOpts : exportOpts).settingOptions || {};
|
|
13547
13564
|
const checkedAll = $xeExportPanel.computeCheckedAll;
|
|
13548
13565
|
const showSheet = $xeExportPanel.computeShowSheet;
|
|
13549
13566
|
const supportMerge = $xeExportPanel.computeSupportMerge;
|
|
@@ -13597,17 +13614,20 @@ const {
|
|
|
13597
13614
|
props: {
|
|
13598
13615
|
id: 'VXE_EXPORT_MODAL',
|
|
13599
13616
|
value: storeData.visible,
|
|
13600
|
-
title: export_panel_getI18n(isPrint ? 'vxe.export.printTitle' : 'vxe.export.expTitle'),
|
|
13601
|
-
width: 660,
|
|
13602
|
-
|
|
13603
|
-
|
|
13604
|
-
|
|
13605
|
-
|
|
13617
|
+
title: modelOptions.title || export_panel_getI18n(isPrint ? 'vxe.export.printTitle' : 'vxe.export.expTitle'),
|
|
13618
|
+
width: modelOptions.width || 660,
|
|
13619
|
+
height: modelOptions.height,
|
|
13620
|
+
minWidth: modelOptions.minWidth || 500,
|
|
13621
|
+
minHeight: modelOptions.minHeight || 400,
|
|
13622
|
+
mask: getDefaultConfig(modelOptions.mask, true),
|
|
13623
|
+
lockView: getDefaultConfig(modelOptions.lockView, true),
|
|
13606
13624
|
showFooter: true,
|
|
13607
13625
|
escClosable: true,
|
|
13608
13626
|
maskClosable: true,
|
|
13609
|
-
|
|
13610
|
-
|
|
13627
|
+
fullscreen: modelOptions.fullscreen,
|
|
13628
|
+
showMinimize: modelOptions.showMinimize,
|
|
13629
|
+
showMaximize: getDefaultConfig(modelOptions.showMaximize, true),
|
|
13630
|
+
resize: getDefaultConfig(modelOptions.resize, true),
|
|
13611
13631
|
loading: reactData.loading
|
|
13612
13632
|
},
|
|
13613
13633
|
on: {
|
|
@@ -13640,7 +13660,7 @@ const {
|
|
|
13640
13660
|
cellpadding: 0,
|
|
13641
13661
|
border: 0
|
|
13642
13662
|
}
|
|
13643
|
-
}, [h('tbody', [[isPrint ? export_panel_renderEmptyElement($xeTable) : h('tr', [h('td', export_panel_getI18n('vxe.export.expName')), h('td', [VxeUIInputComponent ? h(VxeUIInputComponent, {
|
|
13663
|
+
}, [h('tbody', [[isPrint || settingOptions.showFileName === false ? export_panel_renderEmptyElement($xeTable) : h('tr', [h('td', export_panel_getI18n('vxe.export.expName')), h('td', [VxeUIInputComponent ? h(VxeUIInputComponent, {
|
|
13644
13664
|
ref: 'filename',
|
|
13645
13665
|
props: {
|
|
13646
13666
|
value: defaultOptions.filename,
|
|
@@ -13653,7 +13673,7 @@ const {
|
|
|
13653
13673
|
defaultOptions.filename = value;
|
|
13654
13674
|
}
|
|
13655
13675
|
}
|
|
13656
|
-
}) : export_panel_renderEmptyElement($xeTable)])]), isPrint ? export_panel_renderEmptyElement($xeTable) : h('tr', [h('td', export_panel_getI18n('vxe.export.expType')), h('td', [h('vxe-select', {
|
|
13676
|
+
}) : export_panel_renderEmptyElement($xeTable)])]), isPrint || settingOptions.showType === false ? export_panel_renderEmptyElement($xeTable) : h('tr', [h('td', export_panel_getI18n('vxe.export.expType')), h('td', [h('vxe-select', {
|
|
13657
13677
|
props: {
|
|
13658
13678
|
value: defaultOptions.type,
|
|
13659
13679
|
options: storeData.typeList
|
|
@@ -13663,7 +13683,7 @@ const {
|
|
|
13663
13683
|
defaultOptions.type = value;
|
|
13664
13684
|
}
|
|
13665
13685
|
}
|
|
13666
|
-
})])]), isPrint || showSheet ? h('tr', [h('td', export_panel_getI18n('vxe.export.expSheetName')), h('td', [VxeUIInputComponent ? h(VxeUIInputComponent, {
|
|
13686
|
+
})])]), (isPrint || showSheet) && settingOptions.showSheet !== false ? h('tr', [h('td', export_panel_getI18n('vxe.export.expSheetName')), h('td', [VxeUIInputComponent ? h(VxeUIInputComponent, {
|
|
13667
13687
|
ref: 'sheetname',
|
|
13668
13688
|
props: {
|
|
13669
13689
|
value: defaultOptions.sheetName,
|
|
@@ -13676,7 +13696,7 @@ const {
|
|
|
13676
13696
|
defaultOptions.sheetName = value;
|
|
13677
13697
|
}
|
|
13678
13698
|
}
|
|
13679
|
-
}) : export_panel_renderEmptyElement($xeTable)])]) : export_panel_renderEmptyElement($xeTable), h('tr', [h('td', export_panel_getI18n('vxe.export.expMode')), h('td', [h(VxeUISelectComponent, {
|
|
13699
|
+
}) : export_panel_renderEmptyElement($xeTable)])]) : export_panel_renderEmptyElement($xeTable), settingOptions.showMode === false ? export_panel_renderEmptyElement($xeTable) : h('tr', [h('td', export_panel_getI18n('vxe.export.expMode')), h('td', [h(VxeUISelectComponent, {
|
|
13680
13700
|
props: {
|
|
13681
13701
|
value: defaultOptions.mode,
|
|
13682
13702
|
options: storeData.modeList
|
|
@@ -13686,7 +13706,7 @@ const {
|
|
|
13686
13706
|
defaultOptions.mode = value;
|
|
13687
13707
|
}
|
|
13688
13708
|
}
|
|
13689
|
-
})])]), h('tr', [h('td', [export_panel_getI18n('vxe.export.expColumn')]), h('td', [h('div', {
|
|
13709
|
+
})])]), settingOptions.showColumn === false ? export_panel_renderEmptyElement($xeTable) : h('tr', [h('td', [export_panel_getI18n('vxe.export.expColumn')]), h('td', [h('div', {
|
|
13690
13710
|
class: 'vxe-table-export--panel-column'
|
|
13691
13711
|
}, [h('ul', {
|
|
13692
13712
|
class: 'vxe-table-export--panel-column-header'
|
|
@@ -13707,7 +13727,7 @@ const {
|
|
|
13707
13727
|
class: 'vxe-checkbox--label'
|
|
13708
13728
|
}, export_panel_getI18n('vxe.export.expCurrentColumn'))])]), h('ul', {
|
|
13709
13729
|
class: 'vxe-table-export--panel-column-body'
|
|
13710
|
-
}, colVNs)])])]), isPrint ? h('tr', [h('td', export_panel_getI18n('vxe.export.widthMode')), h('td', [VxeUISelectComponent ? h(VxeUISelectComponent, {
|
|
13730
|
+
}, colVNs)])])]), isPrint && settingOptions.showWidthMode !== false ? h('tr', [h('td', export_panel_getI18n('vxe.export.widthMode')), h('td', [VxeUISelectComponent ? h(VxeUISelectComponent, {
|
|
13711
13731
|
props: {
|
|
13712
13732
|
value: defaultOptions.widthMode,
|
|
13713
13733
|
options: colWidthModeOptions
|
|
@@ -13717,7 +13737,7 @@ const {
|
|
|
13717
13737
|
defaultOptions.widthMode = value;
|
|
13718
13738
|
}
|
|
13719
13739
|
}
|
|
13720
|
-
}) : export_panel_renderEmptyElement($xeTable)])]) : export_panel_renderEmptyElement($xeTable), h('tr', [h('td', export_panel_getI18n('vxe.export.expOpts')), parameterSlot ? h('td', [h('div', {
|
|
13740
|
+
}) : export_panel_renderEmptyElement($xeTable)])]) : export_panel_renderEmptyElement($xeTable), settingOptions.showParameter === false ? export_panel_renderEmptyElement($xeTable) : h('tr', [h('td', export_panel_getI18n('vxe.export.expOpts')), parameterSlot ? h('td', [h('div', {
|
|
13721
13741
|
class: 'vxe-table-export--panel-option-row'
|
|
13722
13742
|
}, $xeTable.callSlot(parameterSlot, params, h))]) : h('td', [h('div', {
|
|
13723
13743
|
class: 'vxe-table-export--panel-option-row'
|