1.0.6 • Published 3 years ago
@ozo/demo v1.0.6
demo component
@ozo/demo
用于组件的 demo 编写
API
块布局:DemoShow, SectionCard, Section, Block, Card, CardLite
参数名 | 说明 | 必填 | 类型 | 默认值 | 备注 |
---|---|---|---|---|---|
className | 自定义类 | 否 | string | “” | 所有组件 |
style | 自定义样式 | 否 | object | {} | 所有组件 |
flex | 启用 flex 布局,纵向主轴 | 否 | bool | false | 仅 Section,Block |
title | 标题 | 否 | string | “” | 仅 SectionCard,Section,Block |
tips | 额外提示 | 否 | string | “” | 仅 Section,Block |
full | 铺满横向空间 | 否 | bool | false | 仅 SectionCard |
两侧留白 WingBlank
参数名 | 说明 | 必填 | 类型 | 默认值 | 备注 |
---|---|---|---|---|---|
className | 自定义类 | 否 | string | “” | |
style | 自定义样式 | 否 | object | {} | |
padWidth | 留白宽度 | 否 | number | 15 | 默认单位 px,可通过 style 重置 |
行间留白 WhiteSpace
参数名 | 说明 | 必填 | 类型 | 默认值 | 备注 |
---|---|---|---|---|---|
className | 自定义类 | 否 | string | “” | |
style | 自定义样式 | 否 | object | {} | |
height | 留白高度 | 否 | number | 10 | 默认单位 px,可通过 style 重置 |