2020-07-28 10:03:53 +08:00
|
|
|
---
|
|
|
|
title: Divider 分割线
|
2021-01-07 23:35:03 +08:00
|
|
|
description:
|
2020-07-28 10:03:53 +08:00
|
|
|
type: 0
|
|
|
|
group: ⚙ 组件
|
|
|
|
menuName: Divider 分割线
|
2021-01-07 23:35:03 +08:00
|
|
|
icon:
|
2020-07-28 10:03:53 +08:00
|
|
|
order: 42
|
|
|
|
---
|
2021-01-07 23:35:03 +08:00
|
|
|
|
2020-07-28 10:03:53 +08:00
|
|
|
## 基本用法
|
|
|
|
|
2021-01-07 23:35:03 +08:00
|
|
|
```schema: scope="body"
|
2020-07-28 10:03:53 +08:00
|
|
|
{
|
|
|
|
"type": "divider"
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
## 不同样式
|
|
|
|
|
2021-01-07 23:35:03 +08:00
|
|
|
```schema: scope="body"
|
2020-07-28 10:03:53 +08:00
|
|
|
[
|
|
|
|
{
|
|
|
|
"type": "divider"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "divider",
|
|
|
|
"lineStyle": "solid"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
```
|
|
|
|
|
|
|
|
## 属性表
|
|
|
|
|
|
|
|
| 属性名 | 类型 | 默认值 | 说明 |
|
|
|
|
| --------- | -------- | ---------- | ----------------------------------- |
|
2022-05-06 08:10:21 +08:00
|
|
|
| type | `string` | | `"divider"` 指定为 分割线 渲染器 |
|
2020-07-28 10:03:53 +08:00
|
|
|
| className | `string` | | 外层 Dom 的类名 |
|
|
|
|
| lineStyle | `string` | `"dashed"` | 分割线的样式,支持`dashed`和`solid` |
|