右键菜单组件
- Source:
Members
(inner) props
- Source:
Properties:
Name | Type | Attributes | Default | Description | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
theme |
string |
<optional> |
light
|
主题配色,可选 'light', 'dark' |
||||||||||||||||||||||||||||
data |
Array |
<optional> |
菜单项数据,[{icon, label, info, disabled, divider, children}] Properties
|
|||||||||||||||||||||||||||||
disabled |
boolean |
<optional> |
禁用菜单 |
|||||||||||||||||||||||||||||
zIndex |
number |
<optional> |
1000
|
显示层级 |
||||||||||||||||||||||||||||
触发菜单容器,支持选择器和函数,默认 |
String | HTMLElement | function | document.body |
||||||||||||||||||||||||||||||
manual |
boolean |
<optional> |
手动模式,需要自行调用show 、hide 方法 |
属性参数
Events
click
- Source:
点击菜单项时触发
Parameters:
Name | Type | Description |
---|---|---|
item |
Object | 菜单项数据 |
vm |
Object | 菜单项实例 |