Skip to content

MenuBar 应用菜单栏 ​

AuMenuBar 用于桌面应用窗口顶部的命令菜单。

基础用法 ​

菜单项结构 ​

字段说明类型
label菜单或命令名称string
command业务命令标识unknown
children子菜单项Array
icon菜单项前导图标Component
accelerator仅用于展示的快捷键提示string
disabled是否禁用boolean
typecheckbox 表示复选命令,separator 表示分隔线string
checked复选命令是否选中boolean

Attributes ​

属性说明类型默认值
items根菜单及 children 命令项Array[]
draggable将根菜单后的空白区域设为窗口拖拽区booleanfalse

Events ​

事件名说明参数
select选择可执行叶子菜单项(item)
open打开根菜单(item, index)
close关闭根菜单(item, index)

Aurora Plus · Vue 3 Component Library