vxe-table 4.7.92 → 4.7.93

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
@@ -1998,9 +1998,9 @@ function eqEmptyValue(cellValue) {
1998
1998
  ;// CONCATENATED MODULE: ./packages/ui/index.ts
1999
1999
 
2000
2000
 
2001
- const version = "4.7.92";
2001
+ const version = "4.7.93";
2002
2002
  core_.VxeUI.version = version;
2003
- core_.VxeUI.tableVersion = "4.7.92";
2003
+ core_.VxeUI.tableVersion = "4.7.93";
2004
2004
  core_.VxeUI.setConfig({
2005
2005
  emptyCell: ' ',
2006
2006
  table: {
@@ -2384,7 +2384,7 @@ var es_array_push = __webpack_require__(4114);
2384
2384
  const {
2385
2385
  log: log_log
2386
2386
  } = core_.VxeUI;
2387
- const log_version = `table v${"4.7.92"}`;
2387
+ const log_version = `table v${"4.7.93"}`;
2388
2388
  const warnLog = log_log.create('warn', log_version);
2389
2389
  const errLog = log_log.create('error', log_version);
2390
2390
  ;// CONCATENATED MODULE: ./packages/table/src/columnInfo.ts
@@ -4849,7 +4849,7 @@ const lineOffsetSizes = {
4849
4849
  let hasEllipsis = showTitle || showTooltip || showEllipsis;
4850
4850
  let isDirty;
4851
4851
  const tdOns = {};
4852
- const cellAlign = align || allAlign;
4852
+ const cellAlign = align || (compConf ? compConf.tableCellAlign : '') || allAlign;
4853
4853
  const errorValidItem = validErrorMaps[`${rowid}:${colid}`];
4854
4854
  const showValidTip = editRules && validOpts.showMessage && (validOpts.message === 'default' ? height || tableData.length > 1 : validOpts.message === 'inline');
4855
4855
  const attrs = {
@@ -5669,6 +5669,10 @@ const lineOffsetSizes = {
5669
5669
 
5670
5670
 
5671
5671
 
5672
+
5673
+ const {
5674
+ renderer: header_renderer
5675
+ } = core_.VxeUI;
5672
5676
  const header_renderType = 'header';
5673
5677
  /* harmony default export */ var header = ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.defineComponent)({
5674
5678
  name: 'VxeTableHeader',
@@ -5946,13 +5950,17 @@ const header_renderType = 'header';
5946
5950
  showHeaderOverflow,
5947
5951
  headerAlign,
5948
5952
  align,
5949
- headerClassName
5953
+ headerClassName,
5954
+ editRender,
5955
+ cellRender
5950
5956
  } = column;
5951
5957
  const colid = column.id;
5958
+ const renderOpts = editRender || cellRender;
5959
+ const compConf = renderOpts ? header_renderer.get(renderOpts.name) : null;
5952
5960
  const isColGroup = column.children && column.children.length;
5953
5961
  const fixedHiddenColumn = fixedType ? column.fixed !== fixedType && !isColGroup : !!column.fixed && overflowX;
5954
5962
  const headOverflow = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eqNull(showHeaderOverflow) ? allColumnHeaderOverflow : showHeaderOverflow;
5955
- const headAlign = headerAlign || align || allHeaderAlign || allAlign;
5963
+ const headAlign = headerAlign || (compConf ? compConf.tableHeaderCellAlign : '') || allHeaderAlign || align || (compConf ? compConf.tableCellAlign : '') || allAlign;
5956
5964
  let showEllipsis = headOverflow === 'ellipsis';
5957
5965
  const showTitle = headOverflow === 'title';
5958
5966
  const showTooltip = headOverflow === true || headOverflow === 'tooltip';
@@ -6040,6 +6048,10 @@ const header_renderType = 'header';
6040
6048
 
6041
6049
 
6042
6050
 
6051
+
6052
+ const {
6053
+ renderer: footer_renderer
6054
+ } = core_.VxeUI;
6043
6055
  const footer_renderType = 'footer';
6044
6056
  function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
6045
6057
  for (let mIndex = 0; mIndex < mergeFooterList.length; mIndex++) {
@@ -6279,13 +6291,17 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
6279
6291
  showFooterOverflow,
6280
6292
  footerAlign,
6281
6293
  align,
6282
- footerClassName
6294
+ footerClassName,
6295
+ editRender,
6296
+ cellRender
6283
6297
  } = column;
6298
+ const renderOpts = editRender || cellRender;
6299
+ const compConf = renderOpts ? footer_renderer.get(renderOpts.name) : null;
6284
6300
  const showAllTip = tooltipOpts.showAll;
6285
6301
  const isColGroup = column.children && column.children.length;
6286
6302
  const fixedHiddenColumn = fixedType ? column.fixed !== fixedType && !isColGroup : column.fixed && overflowX;
6287
6303
  const footOverflow = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eqNull(showFooterOverflow) ? allColumnFooterOverflow : showFooterOverflow;
6288
- const footAlign = footerAlign || align || allFooterAlign || allAlign;
6304
+ const footAlign = footerAlign || (compConf ? compConf.tableFooterCellAlign : '') || allFooterAlign || align || (compConf ? compConf.tableCellAlign : '') || allAlign;
6289
6305
  let showEllipsis = footOverflow === 'ellipsis';
6290
6306
  const showTitle = footOverflow === 'title';
6291
6307
  const showTooltip = footOverflow === true || footOverflow === 'tooltip';