$ui/dv/my-dv-menu

导航菜单

Source:

Members

(inner) props

Source:
Properties:
Name Type Attributes Default Description
data Array.<Object> <optional>

菜单项对象数组

Properties
Name Type Attributes Description
key string | number <optional>

菜单项标识

text string <optional>

菜单项文本

icon string | object <optional>

图标配置

to string <optional>

跳转路由path,router为true时有效

width number <optional>

菜单项宽度,默认 200

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

菜单项索引