Elements

组件

布局 Layout

Layout:应用布局骨架。Root、Header、Sider、Content、Footer 组成常见管理端结构,并使用纸墨表面。Root 是全高 grid;声明 `sider` 后,列方向会根据侧栏所在边缘调整。

#基础用法

layout/basic Vue React
The workbench

The content area takes the flow's full measure and holds it to a readable column.

Below the flow the footer rests at the foot of the grid, however little content there is.

By Sages Elements — the paper-and-ink system.

layout/controlled-collapse Vue React
The workbench

The rail folds on the caller's word and resizes by hand — drag the hairline at its edge, or hold an arrow key.

By Sages Elements — the paper-and-ink system.

#属性

#LayoutRoot

属性类型默认值描述
siderString as PropType<"start" | "end">undefined—

#LayoutSider

属性类型默认值描述
collapsedBooleanfalse—
widthString"16rem"—
collapsedWidthString"3.5rem"—
resizableBooleanfalse—
minWidthString"12rem"—
maxWidthString"24rem"—