# Layout 布局

# 引入

import { H3Layout } from '@lateinos/awesome-ui';

@Component({
  components: {
    H3Layout
  }
})

# 与Antd的区别

与Antd区别是该组件为氚云项目布局规范实现的,可认为该组件是业务组件。

# sider收起及展开

# Api

# 作为组件

参数 说明 类型 默认值
wrapperCls 包裹sider content sider的容器class,不是整个容器 string ''
leftCollapsed 左边 sider 是否收起 boolean false
rightCollapsed 右边 sider 是否收起 boolean false
leftSiderWidth 左边 sider 宽度 number|string 240
rightSiderWidth 右边 sider 宽度 number|string 240
mainType 'auto-space'效果为布局一'fixed'效果为布局三'auto'效果是不限制,仅在left和rightslot都未使用情况下生效 'auto-space'|'fixed'|'auto' 'auto-space'

# 事件

暂无

# slots

名称 说明
header 布局 header slot
left 布局左边 sider slot
right 布局右边 sider slot