Skip to content

UserMenu 用户菜单 ​

头像和姓名,点开后是自定义项,末尾固定一项退出。

vue
<CkUserMenu name="值班长" role="甲班" :items="[{ key: 'profile', label: '个人设置' }]" @logout="onLogout" />

API ​

属性说明类型默认
name姓名string''
role副标题string''
avatar头像地址string''
items退出之前的菜单项ActionItem[][]
事件说明
select点了自定义项,参数为 key
logout点了退出