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"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
```
|
|
|
|
|
|
|
|
## 属性表
|
|
|
|
|
2023-09-04 14:58:20 +08:00
|
|
|
| 属性名 | 类型 | 默认值 | 说明 |
|
|
|
|
| --------- | -------- | ------------ | ------------------------------------------ |
|
|
|
|
| type | `string` | | `"divider"` 指定为 分割线 渲染器 |
|
|
|
|
| className | `string` | | 外层 Dom 的类名 |
|
|
|
|
| lineStyle | `string` | `dashed` | 分割线的样式,支持`dashed`和`solid` |
|
|
|
|
| direction | `string` | `horizontal` | 分割线的方向,支持`horizontal`和`vertical` |
|
|
|
|
| color | `string` | | 分割线的颜色 |
|
|
|
|
| rotate | `number` | | 分割线的旋转角度 |
|