vxe-table 3.20.13 → 3.20.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.
@@ -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']) {
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.20.13";
3
+ export const version = "3.20.14";
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.20.13"}`;
3
+ const version = `table v${"3.20.14"}`;
4
4
  export const warnLog = log.create('warn', version);
5
5
  export const errLog = log.create('error', version);
package/lib/index.umd.js CHANGED
@@ -3311,7 +3311,7 @@ function getClass(property, params) {
3311
3311
  /* unused harmony import specifier */ var VxeUI;
3312
3312
 
3313
3313
 
3314
- const version = "3.20.13";
3314
+ const version = "3.20.14";
3315
3315
  core_.VxeUI.version = version;
3316
3316
  core_.VxeUI.tableVersion = version;
3317
3317
  core_.VxeUI.setConfig({
@@ -4067,7 +4067,7 @@ var es_iterator_reduce = __webpack_require__(8237);
4067
4067
  const {
4068
4068
  log: log_log
4069
4069
  } = core_.VxeUI;
4070
- const log_version = `table v${"3.20.13"}`;
4070
+ const log_version = `table v${"3.20.14"}`;
4071
4071
  const warnLog = log_log.create('warn', log_version);
4072
4072
  const errLog = log_log.create('error', log_version);
4073
4073
  ;// ./packages/table/src/columnInfo.ts
@@ -14222,8 +14222,9 @@ const {
14222
14222
  $gantt: $xeGantt,
14223
14223
  $event: evnt
14224
14224
  });
14225
- if (gMenuOpts && gMenuOpts.menuMethod) {
14226
- gMenuOpts.menuMethod(params, evnt);
14225
+ const tmMethod = gMenuOpts ? gMenuOpts.tableMenuMethod || gMenuOpts.menuMethod : null;
14226
+ if (tmMethod) {
14227
+ tmMethod(params, evnt);
14227
14228
  }
14228
14229
  // 在 v4 中废弃事件 context-menu-click
14229
14230
  if ($xeTable.$listeners['context-menu-click']) {