vxe-table 3.23.0-beta.2 → 3.23.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/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.2";
3317
+ const version = "3.23.0-beta.3";
3315
3318
  core_.VxeUI.version = version;
3316
3319
  core_.VxeUI.tableVersion = version;
3317
3320
  core_.VxeUI.setConfig({
@@ -4105,7 +4108,7 @@ function getPopupContainer(appendTo) {
4105
4108
  const {
4106
4109
  log: log_log
4107
4110
  } = core_.VxeUI;
4108
- const tableVersion = `table v${"3.23.0-beta.2"}`;
4111
+ const tableVersion = `table v${"3.23.0-beta.3"}`;
4109
4112
  function createComponentLog(name) {
4110
4113
  const uiVersion = core_.VxeUI.uiVersion ? `ui v${core_.VxeUI.uiVersion}` : '';
4111
4114
  const ganttVersion = core_.VxeUI.ganttVersion ? `gantt v${core_.VxeUI.ganttVersion}` : '';
@@ -13130,7 +13133,10 @@ const {
13130
13133
  } = props;
13131
13134
  const selectName = $xeImportPanel.computeSelectName;
13132
13135
  const hasFile = $xeImportPanel.computeHasFile;
13136
+ const importOpts = $xeTable.computeImportOpts;
13133
13137
  const parseTypeLabel = $xeImportPanel.computeParseTypeLabel;
13138
+ const modelOptions = importOpts.modelOptions || {};
13139
+ const settingOptions = importOpts.settingOptions || {};
13134
13140
  const slots = defaultOptions.slots || {};
13135
13141
  const topSlot = slots.top;
13136
13142
  const bottomSlot = slots.bottom;
@@ -13141,17 +13147,19 @@ const {
13141
13147
  props: {
13142
13148
  id: 'VXE_IMPORT_MODAL',
13143
13149
  value: storeData.visible,
13144
- title: import_panel_getI18n('vxe.import.impTitle'),
13145
- width: 540,
13146
- minWidth: 360,
13147
- minHeight: 240,
13150
+ title: modelOptions.title || import_panel_getI18n('vxe.import.impTitle'),
13151
+ width: modelOptions.width || 540,
13152
+ height: modelOptions.height,
13153
+ minWidth: modelOptions.minWidth || 360,
13154
+ minHeight: modelOptions.minHeight || 240,
13148
13155
  mask: true,
13149
13156
  lockView: true,
13150
13157
  showFooter: true,
13151
13158
  escClosable: true,
13152
13159
  maskClosable: true,
13153
- showMaximize: true,
13154
- resize: true,
13160
+ showMinimize: modelOptions.showMinimize,
13161
+ showMaximize: getDefaultConfig(modelOptions.showMaximize, true),
13162
+ resize: getDefaultConfig(modelOptions.resize, true),
13155
13163
  loading: reactData.loading
13156
13164
  },
13157
13165
  on: {
@@ -13201,7 +13209,7 @@ const {
13201
13209
  on: {
13202
13210
  click: $xeImportPanel.selectFileEvent
13203
13211
  }
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', {
13212
+ }, 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
13213
  props: {
13206
13214
  value: defaultOptions.mode,
13207
13215
  options: storeData.modeList
@@ -13544,6 +13552,10 @@ const {
13544
13552
  isHeader
13545
13553
  } = defaultOptions;
13546
13554
  const colVNs = [];
13555
+ const exportOpts = $xeTable.computeExportOpts;
13556
+ const printOpts = $xeTable.computePrintOpts;
13557
+ const modelOptions = (isPrint ? printOpts : exportOpts).modelOptions || {};
13558
+ const settingOptions = (isPrint ? printOpts : exportOpts).settingOptions || {};
13547
13559
  const checkedAll = $xeExportPanel.computeCheckedAll;
13548
13560
  const showSheet = $xeExportPanel.computeShowSheet;
13549
13561
  const supportMerge = $xeExportPanel.computeSupportMerge;
@@ -13597,17 +13609,19 @@ const {
13597
13609
  props: {
13598
13610
  id: 'VXE_EXPORT_MODAL',
13599
13611
  value: storeData.visible,
13600
- title: export_panel_getI18n(isPrint ? 'vxe.export.printTitle' : 'vxe.export.expTitle'),
13601
- width: 660,
13602
- minWidth: 500,
13603
- minHeight: 400,
13612
+ title: modelOptions.title || export_panel_getI18n(isPrint ? 'vxe.export.printTitle' : 'vxe.export.expTitle'),
13613
+ width: modelOptions.width || 660,
13614
+ height: modelOptions.height,
13615
+ minWidth: modelOptions.minWidth || 500,
13616
+ minHeight: modelOptions.minHeight || 400,
13604
13617
  mask: true,
13605
13618
  lockView: true,
13606
13619
  showFooter: true,
13607
13620
  escClosable: true,
13608
13621
  maskClosable: true,
13609
- showMaximize: true,
13610
- resize: true,
13622
+ showMinimize: modelOptions.showMinimize,
13623
+ showMaximize: getDefaultConfig(modelOptions.showMaximize, true),
13624
+ resize: getDefaultConfig(modelOptions.resize, true),
13611
13625
  loading: reactData.loading
13612
13626
  },
13613
13627
  on: {
@@ -13640,7 +13654,7 @@ const {
13640
13654
  cellpadding: 0,
13641
13655
  border: 0
13642
13656
  }
13643
- }, [h('tbody', [[isPrint ? export_panel_renderEmptyElement($xeTable) : h('tr', [h('td', export_panel_getI18n('vxe.export.expName')), h('td', [VxeUIInputComponent ? h(VxeUIInputComponent, {
13657
+ }, [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
13658
  ref: 'filename',
13645
13659
  props: {
13646
13660
  value: defaultOptions.filename,
@@ -13653,7 +13667,7 @@ const {
13653
13667
  defaultOptions.filename = value;
13654
13668
  }
13655
13669
  }
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', {
13670
+ }) : 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
13671
  props: {
13658
13672
  value: defaultOptions.type,
13659
13673
  options: storeData.typeList
@@ -13663,7 +13677,7 @@ const {
13663
13677
  defaultOptions.type = value;
13664
13678
  }
13665
13679
  }
13666
- })])]), isPrint || showSheet ? h('tr', [h('td', export_panel_getI18n('vxe.export.expSheetName')), h('td', [VxeUIInputComponent ? h(VxeUIInputComponent, {
13680
+ })])]), (isPrint || showSheet) && settingOptions.showSheet !== false ? h('tr', [h('td', export_panel_getI18n('vxe.export.expSheetName')), h('td', [VxeUIInputComponent ? h(VxeUIInputComponent, {
13667
13681
  ref: 'sheetname',
13668
13682
  props: {
13669
13683
  value: defaultOptions.sheetName,
@@ -13676,7 +13690,7 @@ const {
13676
13690
  defaultOptions.sheetName = value;
13677
13691
  }
13678
13692
  }
13679
- }) : export_panel_renderEmptyElement($xeTable)])]) : export_panel_renderEmptyElement($xeTable), h('tr', [h('td', export_panel_getI18n('vxe.export.expMode')), h('td', [h(VxeUISelectComponent, {
13693
+ }) : 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
13694
  props: {
13681
13695
  value: defaultOptions.mode,
13682
13696
  options: storeData.modeList
@@ -13686,7 +13700,7 @@ const {
13686
13700
  defaultOptions.mode = value;
13687
13701
  }
13688
13702
  }
13689
- })])]), h('tr', [h('td', [export_panel_getI18n('vxe.export.expColumn')]), h('td', [h('div', {
13703
+ })])]), settingOptions.showColumn === false ? export_panel_renderEmptyElement($xeTable) : h('tr', [h('td', [export_panel_getI18n('vxe.export.expColumn')]), h('td', [h('div', {
13690
13704
  class: 'vxe-table-export--panel-column'
13691
13705
  }, [h('ul', {
13692
13706
  class: 'vxe-table-export--panel-column-header'
@@ -13707,7 +13721,7 @@ const {
13707
13721
  class: 'vxe-checkbox--label'
13708
13722
  }, export_panel_getI18n('vxe.export.expCurrentColumn'))])]), h('ul', {
13709
13723
  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, {
13724
+ }, colVNs)])])]), isPrint && settingOptions.showWidthMode !== false ? h('tr', [h('td', export_panel_getI18n('vxe.export.widthMode')), h('td', [VxeUISelectComponent ? h(VxeUISelectComponent, {
13711
13725
  props: {
13712
13726
  value: defaultOptions.widthMode,
13713
13727
  options: colWidthModeOptions
@@ -13717,7 +13731,7 @@ const {
13717
13731
  defaultOptions.widthMode = value;
13718
13732
  }
13719
13733
  }
13720
- }) : export_panel_renderEmptyElement($xeTable)])]) : export_panel_renderEmptyElement($xeTable), h('tr', [h('td', export_panel_getI18n('vxe.export.expOpts')), parameterSlot ? h('td', [h('div', {
13734
+ }) : 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
13735
  class: 'vxe-table-export--panel-option-row'
13722
13736
  }, $xeTable.callSlot(parameterSlot, params, h))]) : h('td', [h('div', {
13723
13737
  class: 'vxe-table-export--panel-option-row'