Skip to content

Commit f4f6948

Browse files
committed
change name CONTEXTMENU_TYPES -> CONTEXTMENU_NODE_TYPES
1 parent 493db10 commit f4f6948

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/ve-contextmenu/src/index.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { getMousePosition, getViewportOffset } from "../../src/utils/dom";
66
import {
77
INIT_DATA,
88
EMIT_EVENTS,
9-
CONTEXTMENU_TYPES,
9+
CONTEXTMENU_NODE_TYPES,
1010
INSTANCE_METHODS,
1111
} from "./util/constant";
1212
import { getRandomId } from "../../src/utils/random";
@@ -637,7 +637,7 @@ export default {
637637

638638
if (
639639
menu.type !==
640-
CONTEXTMENU_TYPES.SEPARATOR
640+
CONTEXTMENU_NODE_TYPES.SEPARATOR
641641
) {
642642
contextmenuNodeProps = {
643643
class: {
@@ -692,7 +692,7 @@ export default {
692692

693693
if (
694694
menu.type !==
695-
CONTEXTMENU_TYPES.SEPARATOR
695+
CONTEXTMENU_NODE_TYPES.SEPARATOR
696696
) {
697697
return (
698698
<li {...contextmenuNodeProps}>

packages/ve-contextmenu/src/util/constant.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export const INIT_DATA = {
1818
};
1919

2020
// contextmenu types
21-
export const CONTEXTMENU_TYPES = {
21+
export const CONTEXTMENU_NODE_TYPES = {
2222
// Separator
2323
SEPARATOR: "SEPARATOR",
2424
};

0 commit comments

Comments
 (0)