跳到主要内容

eo-sidebar

<eo-sidebar>

侧边栏

Examples

Basic

Playground

Properties

NameDescriptionTypeDefaultRequired
menu

菜单数据

SidebarMenuType
hiddenFixedIcon

是否隐藏固定按钮

boolean
expandedState

侧栏状态

ExpandedState
position

设置定位方式:静态定位或固定定位。

"static" | "fixed" "fixed"

Events

NameDescriptionEvent Detail
actual.width.change

宽度变化时触发

number - 当前宽度
expanded.state.change

侧栏状态变化时触发

ExpandedState - 侧栏状态

Type references

ExpandedStateenum

Collapsed = "collapsed",
Hovered = "hovered",
Expanded = "expanded",