Divider 分割线
- 区隔内容的分割线
何时使用
- 对不同段落的文本进行分割。
Divider基本用法
基础用法: 对段落的文本进行分割。 在左侧的自定义文案 在右侧的自定义文案 文案的颜色 文案的背景颜色 垂直的分割线
虚线
自定义分割线颜色
自定义文案
北京
上海
广州
广州
广州
北京
上海
成都
Divider参数
| 参数 | 类型 | 默认 | 说明 |
|---|---|---|---|
| color | string | -- | 设置分割线的颜色 |
| direction | DirectionType | horizontal | 设置分割线方向 |
| border-style | BorderStyleType | solid | 设置分隔符样式 |
| content-position | ContentPositionType | center | 设置分割线文案的位置 |
| content-color | string | -- | 设置分割线文案的颜色 |
| content-background-color | string | -- | 设置分割线文案的背景颜色 |
Divider类型定义
DirectionType
ts
export type DirectionType = 'horizontal' | 'vertical';BorderStyleType
ts
export type BorderStyleType = 'dashed' | 'solid';ContentPositionType
ts
export type ContentPositionType = 'left' | 'right' | 'center';