vxe-table 3.18.16 → 3.18.18

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.
@@ -2453,8 +2453,12 @@ function removeBodyMerges($xeTable, merges) {
2453
2453
  return rest;
2454
2454
  }
2455
2455
  function handleHeaderMerge($xeTable, merges) {
2456
+ const props = $xeTable;
2456
2457
  const reactData = $xeTable;
2457
2458
  const internalData = $xeTable;
2459
+ const {
2460
+ showCustomHeader
2461
+ } = props;
2458
2462
  const {
2459
2463
  footerTableData
2460
2464
  } = reactData;
@@ -2491,6 +2495,10 @@ function handleHeaderMerge($xeTable, merges) {
2491
2495
  if (mergeRowIndex > -1 && mergeColumnIndex > -1 && (rowspan || colspan)) {
2492
2496
  rowspan = _xeUtils.default.toNumber(rowspan) || 1;
2493
2497
  colspan = _xeUtils.default.toNumber(colspan) || 1;
2498
+ if (!showCustomHeader && rowspan > 1) {
2499
+ (0, _log.errLog)('vxe.error.notSupportProp', ['[table] show-custom-header=false', `rowspan=${rowspan}`, 'rowspan=1']);
2500
+ return;
2501
+ }
2494
2502
  if (rowspan > 1 || colspan > 1) {
2495
2503
  const row = footerTableData[mergeRowIndex];
2496
2504
  const column = visibleColumn[mergeColumnIndex];
@@ -13563,19 +13571,19 @@ const Methods = {
13563
13571
  const funcs = 'setFilter,openFilter,clearFilter,saveFilterPanel,saveFilterPanelByEvent,resetFilterPanel,resetFilterPanelByEvent,getCheckedFilters,updateFilterOptionStatus,closeMenu,setActiveCellArea,getActiveCellArea,getCellAreas,clearCellAreas,copyCellArea,cutCellArea,pasteCellArea,getCopyCellArea,getCopyCellAreas,clearCopyCellArea,setCellAreas,openFNR,openFind,openReplace,closeFNR,getSelectedCell,clearSelected,insert,insertAt,insertNextAt,insertChild,insertChildAt,insertChildNextAt,remove,removeCheckboxRow,removeRadioRow,removeCurrentRow,getRecordset,getInsertRecords,getRemoveRecords,getUpdateRecords,clearEdit,clearActived,getEditRecord,getEditCell,getActiveRecord,isEditByRow,isActiveByRow,setEditRow,setActiveRow,setEditCell,setActiveCell,setSelectCell,clearValidate,fullValidate,validate,fullValidateField,validateField,openExport,closeExport,openPrint,closePrint,getPrintHtml,exportData,openImport,closeImport,importData,saveFile,readFile,importByFile,print,getCustomVisible,openCustom,closeCustom,toggleCustom,saveCustom,cancelCustom,resetCustom,toggleCustomAllCheckbox,setCustomAllCheckbox'.split(',');
13564
13572
  funcs.forEach(name => {
13565
13573
  Methods[name] = function (...args) {
13566
- if (!this[`_${name}`]) {
13567
- if ('openExport,openPrint,exportData,openImport,importData,saveFile,readFile,importByFile,print'.split(',').includes(name)) {
13568
- (0, _log.errLog)('vxe.error.reqModule', ['Export']);
13569
- } else if ('fullValidate,validate'.split(',').includes(name)) {
13570
- (0, _log.errLog)('vxe.error.reqModule', ['Validator']);
13571
- } else if ('setFilter,openFilter,clearFilter,getCheckedFilters'.split(',').includes(name)) {
13572
- (0, _log.errLog)('vxe.error.reqModule', ['Filter']);
13573
- } else if ('insert,insertAt,insertNextAt,remove,removeCheckboxRow,removeRadioRow,removeCurrentRow,getRecordset,getInsertRecords,getRemoveRecords,getUpdateRecords,getEditRecord,getEditCell,getActiveRecord,isEditByRow,isActiveByRow,setEditRow,setActiveRow,setEditCell,setActiveCell'.split(',').includes(name)) {
13574
- (0, _log.errLog)('vxe.error.reqModule', ['Edit']);
13575
- } else if ('openCustom'.split(',').includes(name)) {
13576
- (0, _log.errLog)('vxe.error.reqModule', ['Custom']);
13577
- }
13578
- }
13574
+ // if (!this[`_${name}`]) {
13575
+ // if ('openExport,openPrint,exportData,openImport,importData,saveFile,readFile,importByFile,print'.split(',').includes(name)) {
13576
+ // errLog('vxe.error.reqModule', ['Export'])
13577
+ // } else if ('fullValidate,validate'.split(',').includes(name)) {
13578
+ // errLog('vxe.error.reqModule', ['Validator'])
13579
+ // } else if ('setFilter,openFilter,clearFilter,getCheckedFilters'.split(',').includes(name)) {
13580
+ // errLog('vxe.error.reqModule', ['Filter'])
13581
+ // } else if ('insert,insertAt,insertNextAt,remove,removeCheckboxRow,removeRadioRow,removeCurrentRow,getRecordset,getInsertRecords,getRemoveRecords,getUpdateRecords,getEditRecord,getEditCell,getActiveRecord,isEditByRow,isActiveByRow,setEditRow,setActiveRow,setEditCell,setActiveCell'.split(',').includes(name)) {
13582
+ // errLog('vxe.error.reqModule', ['Edit'])
13583
+ // } else if ('openCustom'.split(',').includes(name)) {
13584
+ // errLog('vxe.error.reqModule', ['Custom'])
13585
+ // }
13586
+ // }
13579
13587
  return this[`_${name}`] ? this[`_${name}`](...args) : null;
13580
13588
  };
13581
13589
  });