Skip to content

Menu 菜单

侧边或顶部的导航菜单。

基础用法

loading

水平菜单

loading

子菜单

使用 NeoSubMenu 配合 NeoMenuItem 实现嵌套菜单。

loading

API

NeoMenu

属性说明类型
defaultActive默认激活的 indexstring
mode模式'horizontal' | 'vertical'
collapse是否折叠(垂直时)boolean
backgroundColor背景色string
textColor文字颜色string
activeTextColor激活项文字颜色string

NeoMenuItem

属性说明类型
index唯一标识string
disabled禁用boolean

NeoSubMenu

属性说明类型
index唯一标识(嵌套用 父-子string
title子菜单标题string
disabled禁用boolean

事件:select

MIT License