导航菜单
- Source:
Members
(inner) props
- Source:
Properties:
| Name | Type | Attributes | Default | Description | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
data |
Array.<Object> |
<optional> |
菜单项对象数组 Properties
|
|||||||||||||||||||||||||
reverse |
boolean |
<optional> |
水平翻转 |
|||||||||||||||||||||||||
router |
boolean |
<optional> |
开启路由跳转 |
|||||||||||||||||||||||||
strokeWidth |
number |
<optional> |
1
|
描边宽度 |
||||||||||||||||||||||||
defaultActive |
string | number |
<optional> |
默认选择菜单项目,可以设置菜单项的key或索引 |
属性参数
(inner) slots
- Source:
Properties:
| Name | Type | Description |
|---|---|---|
default |
string | 作用域插槽,参数:item 菜单项对象,index 菜单项索引 |
插槽
Events
click
- Source:
点击菜单时触发
Parameters:
| Name | Type | Description |
|---|---|---|
item |
object | 菜单项对象 |
index |
number | 菜单项索引 |