eo-sidebar
<eo-sidebar>
侧边栏
Examples
Basic
Properties
Name | Description | Type | Default | Required |
---|---|---|---|---|
menu | 菜单数据 | SidebarMenuType | ||
hiddenFixedIcon | 是否隐藏固定按钮 | boolean | ||
expandedState | 侧栏状态 | ExpandedState | ||
position | 设置定位方式:静态定位或固定定 位。 | "static" | "fixed" | "fixed" |
Events
Name | Description | Event Detail |
---|---|---|
actual.width.change | 宽度变化时触发 | number - 当前宽度 |
expanded.state.change | 侧栏状态变化时触发 | ExpandedState - 侧栏状态 |
Type references
ExpandedStateenum
Collapsed = "collapsed",
Hovered = "hovered",
Expanded = "expanded",