Skip to content
On this page

lc-vue-biz-menu

封装的菜单组件

安装

bash
npm i lc-vue-biz-menu

依赖

  • vue@3.x
  • element-plus@2.x

DEMO

Api

Attributes

属性名说明类型默认值
menuData菜单数据MenuItem[][]
menuIndex选中的菜单indexString-
isCollapse是否折叠Booleanfalse
model菜单展示模式horizontal / verticalvertical

Events

事件名说明类型
select菜单激活回调index: 选中菜单项的 index

Type

ts
interface MenuItem {
  key: string,
  label: string,
  icon?: string,
  subPages?: string[],
  children?: MenuItem[]
}