Skip to content
On this page

鼠标右击弹窗

基础用法


ContextMenu 属性

属性名说明类型可选值默认值
menus菜单列表array{label: '打印(P)...',tip: 'Ctrl+P', icon: {node: Top,option: {color: 'red',},},click: () => window.print(),}
menusStyle菜单样式Object-
menusItemClass菜单列表 classstring-
position偏移量Object{x: 0, y 0}
minWidth最小宽度Number, String1none
maxWidth最大宽度Number, String1none
zIndexNumber, String13
direction弹出位置Stringright,leftright
open打开状态Booleantrue, falsefalse