vxe-table 4.17.49 → 4.17.51

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.
@@ -368,7 +368,7 @@ export const Cell = {
368
368
  const tableInternalData = $table.internalData;
369
369
  const { isRowGroupStatus } = tableReactData;
370
370
  const { editConfig } = tableProps;
371
- const { field, slots, editRender, cellRender, rowGroupNode, aggFunc, formatter } = column;
371
+ const { field, slots, editRender, cellRender, rowGroupNode, aggFunc } = column;
372
372
  const isEnableEdit = editConfig && isEnableConf(editConfig);
373
373
  const editRenderOpts = isEnableEdit && isEnableConf(editRender) ? editRender : null;
374
374
  const cellRenderOpts = isEnableConf(cellRender) ? cellRender : null;
@@ -444,8 +444,9 @@ export const Cell = {
444
444
  return renderCellBaseVNs(params, $table.callSlot(defaultSlot, params));
445
445
  }
446
446
  const renderOpts = editRenderOpts || cellRenderOpts;
447
- // formatter > (renderTableCell | renderTableDefault)
448
- if (renderOpts && !formatter) {
447
+ // 如果是编辑表格:renderTableCell > formatter
448
+ // 如果是查看表格:renderTableDefault > formatter
449
+ if (renderOpts) {
449
450
  const compConf = renderer.get(renderOpts.name);
450
451
  if (compConf) {
451
452
  const renderFn = editRenderOpts ? (compConf.renderTableCell || compConf.renderCell) : (compConf.renderTableDefault || compConf.renderDefault);
@@ -5300,7 +5300,7 @@ export default defineVxeComponent({
5300
5300
  cellLabel = tcFormatMethod ? tcFormatMethod(formatParams, ...formatter.slice(1)) : '';
5301
5301
  }
5302
5302
  else {
5303
- cellLabel = `${formatter(formatParams)}`;
5303
+ cellLabel = formatter(formatParams);
5304
5304
  }
5305
5305
  }
5306
5306
  else if (renderOpts && tcFormatter) {
package/es/ui/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { VxeUI } from '@vxe-ui/core';
2
2
  import { getFuncText } from './src/utils';
3
- export const version = "4.17.49";
3
+ export const version = "4.17.51";
4
4
  VxeUI.version = version;
5
5
  VxeUI.tableVersion = version;
6
6
  VxeUI.setConfig({
package/es/ui/src/log.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { VxeUI } from '@vxe-ui/core';
2
2
  const { log } = VxeUI;
3
- const version = `table v${"4.17.49"}`;
3
+ const version = `table v${"4.17.51"}`;
4
4
  export const warnLog = log.create('warn', version);
5
5
  export const errLog = log.create('error', version);