vxe-table 3.19.50 → 3.19.52

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.
@@ -309,8 +309,9 @@ export default {
309
309
  if (!menu.loading && !menu.disabled && (menu.code || !menu.children || !menu.children.length)) {
310
310
  const gMenuOpts = menus.get(menu.code);
311
311
  const params = Object.assign({}, internalData._currMenuParams, { menu, $table: $xeTable, $grid: $xeGrid, $gantt: $xeGantt, $event: evnt });
312
- if (gMenuOpts && gMenuOpts.menuMethod) {
313
- gMenuOpts.menuMethod(params, evnt);
312
+ const tmMethod = gMenuOpts ? (gMenuOpts.tableMenuMethod || gMenuOpts.menuMethod) : null;
313
+ if (tmMethod) {
314
+ tmMethod(params, evnt);
314
315
  }
315
316
  // 在 v4 中废弃事件 context-menu-click
316
317
  if ($xeTable.$listeners['context-menu-click']) {
@@ -370,7 +370,7 @@ export const Cell = {
370
370
  const tableInternalData = $table;
371
371
  const { isRowGroupStatus } = tableReactData;
372
372
  const { editConfig } = tableProps;
373
- const { field, slots, editRender, cellRender, rowGroupNode, aggFunc, formatter } = column;
373
+ const { field, slots, editRender, cellRender, rowGroupNode, aggFunc } = column;
374
374
  const isEnableEdit = editConfig && isEnableConf(editConfig);
375
375
  const editRenderOpts = isEnableEdit && isEnableConf(editRender) ? editRender : null;
376
376
  const cellRenderOpts = isEnableConf(cellRender) ? cellRender : null;
@@ -445,8 +445,9 @@ export const Cell = {
445
445
  return renderCellBaseVNs(h, params, $table.callSlot(defaultSlot, params, h));
446
446
  }
447
447
  const renderOpts = editRenderOpts || cellRenderOpts;
448
- // formatter > (renderTableCell | renderTableDefault)
449
- if (renderOpts && !formatter) {
448
+ // 如果是编辑表格:renderTableCell > formatter
449
+ // 如果是查看表格:renderTableDefault > formatter
450
+ if (renderOpts) {
450
451
  const compConf = renderer.get(renderOpts.name);
451
452
  if (compConf) {
452
453
  const renderFn = editRenderOpts ? (compConf.renderTableCell || compConf.renderCell) : (compConf.renderTableDefault || compConf.renderDefault);
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 = "3.19.50";
3
+ export const version = "3.19.52";
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${"3.19.50"}`;
3
+ const version = `table v${"3.19.52"}`;
4
4
  export const warnLog = log.create('warn', version);
5
5
  export const errLog = log.create('error', version);