vxe-table 3.9.12 → 3.9.14

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
@@ -2220,9 +2220,9 @@ function getClass(property, params) {
2220
2220
  ;// CONCATENATED MODULE: ./packages/ui/index.ts
2221
2221
 
2222
2222
 
2223
- const version = "3.9.12";
2223
+ const version = "3.9.14";
2224
2224
  core_.VxeUI.version = version;
2225
- core_.VxeUI.tableVersion = "3.9.12";
2225
+ core_.VxeUI.tableVersion = "3.9.14";
2226
2226
  core_.VxeUI.setConfig({
2227
2227
  emptyCell: ' ',
2228
2228
  table: {
@@ -2764,7 +2764,7 @@ function isNodeElement(elem) {
2764
2764
  const {
2765
2765
  log: log_log
2766
2766
  } = core_.VxeUI;
2767
- const log_version = `table v${"3.9.12"}`;
2767
+ const log_version = `table v${"3.9.14"}`;
2768
2768
  const warnLog = log_log.create('warn', log_version);
2769
2769
  const errLog = log_log.create('error', log_version);
2770
2770
  ;// CONCATENATED MODULE: ./packages/table/src/columnInfo.ts
@@ -11754,7 +11754,7 @@ function renderColumn(h, _vm, $xetable, seq, rowid, fixedType, rowLevel, row, ro
11754
11754
  let hasEllipsis = showTitle || showTooltip || showEllipsis;
11755
11755
  let isDirty;
11756
11756
  const tdOns = {};
11757
- const cellAlign = align || allAlign;
11757
+ const cellAlign = align || (compConf ? compConf.tableCellAlign : '') || allAlign;
11758
11758
  const errorValidItem = validErrorMaps[`${rowid}:${column.id}`];
11759
11759
  const showValidTip = editRules && validOpts.showMessage && (validOpts.message === 'default' ? height || tableData.length > 1 : validOpts.message === 'inline');
11760
11760
  const attrs = {
@@ -12270,9 +12270,9 @@ function syncBodyScroll(_vm, fixedType, scrollTop, elem1, elem2) {
12270
12270
  }, h);
12271
12271
  } else {
12272
12272
  const compConf = emptyOpts.name ? body_renderer.get(emptyOpts.name) : null;
12273
- const renderTableEmptyView = compConf ? compConf.renderTableEmptyView || compConf.renderEmpty : null;
12274
- if (renderTableEmptyView) {
12275
- emptyContent = getSlotVNs(renderTableEmptyView.call(this, h, emptyOpts, {
12273
+ const rtEmptyView = compConf ? compConf.renderTableEmpty || compConf.renderTableEmptyView || compConf.renderEmpty : null;
12274
+ if (rtEmptyView) {
12275
+ emptyContent = getSlotVNs(rtEmptyView.call(this, h, emptyOpts, {
12276
12276
  $table: $xetable
12277
12277
  }));
12278
12278
  } else {
@@ -12578,6 +12578,10 @@ function syncBodyScroll(_vm, fixedType, scrollTop, elem1, elem2) {
12578
12578
 
12579
12579
 
12580
12580
 
12581
+
12582
+ const {
12583
+ renderer: header_renderer
12584
+ } = core_.VxeUI;
12581
12585
  const cellType = 'header';
12582
12586
  /* harmony default export */ var header = ({
12583
12587
  name: 'VxeTableHeader',
@@ -12742,14 +12746,18 @@ const cellType = 'header';
12742
12746
  showHeaderOverflow,
12743
12747
  headerAlign,
12744
12748
  align,
12745
- headerClassName
12749
+ headerClassName,
12750
+ editRender,
12751
+ cellRender
12746
12752
  } = column;
12747
12753
  // const { enabled } = tooltipOpts
12748
12754
  const colid = column.id;
12755
+ const renderOpts = editRender || cellRender;
12756
+ const compConf = renderOpts ? header_renderer.get(renderOpts.name) : null;
12749
12757
  const isColGroup = column.children && column.children.length;
12750
12758
  const fixedHiddenColumn = fixedType ? column.fixed !== fixedType && !isColGroup : column.fixed && overflowX;
12751
12759
  const headOverflow = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isUndefined(showHeaderOverflow) || external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isNull(showHeaderOverflow) ? allColumnHeaderOverflow : showHeaderOverflow;
12752
- const headAlign = headerAlign || align || allHeaderAlign || allAlign;
12760
+ const headAlign = headerAlign || (compConf ? compConf.tableHeaderCellAlign : '') || allHeaderAlign || align || (compConf ? compConf.tableCellAlign : '') || allAlign;
12753
12761
  let showEllipsis = headOverflow === 'ellipsis';
12754
12762
  const showTitle = headOverflow === 'title';
12755
12763
  const showTooltip = headOverflow === true || headOverflow === 'tooltip';
@@ -12947,7 +12955,11 @@ const cellType = 'header';
12947
12955
 
12948
12956
 
12949
12957
 
12958
+
12950
12959
  const footer_cellType = 'footer';
12960
+ const {
12961
+ renderer: footer_renderer
12962
+ } = core_.VxeUI;
12951
12963
  function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
12952
12964
  for (let mIndex = 0; mIndex < mergeFooterList.length; mIndex++) {
12953
12965
  const {
@@ -13119,13 +13131,17 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
13119
13131
  showFooterOverflow,
13120
13132
  footerAlign,
13121
13133
  align,
13122
- footerClassName
13134
+ footerClassName,
13135
+ editRender,
13136
+ cellRender
13123
13137
  } = column;
13138
+ const renderOpts = editRender || cellRender;
13139
+ const compConf = renderOpts ? footer_renderer.get(renderOpts.name) : null;
13124
13140
  const showAllTip = tooltipOpts.showAll || tooltipOpts.enabled;
13125
13141
  const isColGroup = column.children && column.children.length;
13126
13142
  const fixedHiddenColumn = fixedType ? column.fixed !== fixedType && !isColGroup : column.fixed && overflowX;
13127
13143
  const footOverflow = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isUndefined(showFooterOverflow) || external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isNull(showFooterOverflow) ? allColumnFooterOverflow : showFooterOverflow;
13128
- const footAlign = footerAlign || align || allFooterAlign || allAlign;
13144
+ const footAlign = footerAlign || (compConf ? compConf.tableFooterCellAlign : '') || allFooterAlign || align || (compConf ? compConf.tableCellAlign : '') || allAlign;
13129
13145
  let showEllipsis = footOverflow === 'ellipsis';
13130
13146
  const showTitle = footOverflow === 'title';
13131
13147
  const showTooltip = footOverflow === true || footOverflow === 'tooltip';
@@ -20188,9 +20204,9 @@ function renderEmptyContenet(h, _vm) {
20188
20204
  emptyContent = $scopedSlots.empty.call(_vm, params, h);
20189
20205
  } else {
20190
20206
  const compConf = emptyOpts.name ? table_renderer.get(emptyOpts.name) : null;
20191
- const renderTableEmptyView = compConf ? compConf.renderTableEmptyView || compConf.renderEmpty : null;
20192
- if (renderTableEmptyView) {
20193
- emptyContent = getSlotVNs(renderTableEmptyView.call(_vm, h, emptyOpts, params));
20207
+ const rtEmptyView = compConf ? compConf.renderTableEmpty || compConf.renderTableEmptyView || compConf.renderEmpty : null;
20208
+ if (rtEmptyView) {
20209
+ emptyContent = getSlotVNs(rtEmptyView.call(_vm, h, emptyOpts, params));
20194
20210
  } else {
20195
20211
  emptyContent = getFuncText(_vm.emptyText) || table_getI18n('vxe.table.emptyText');
20196
20212
  }