Skip to content

Commit e82e4be

Browse files
authored
docs(descriptions): [API] fix type definition (#5459)
1 parent 4c83c64 commit e82e4be

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

components/divider/index.en-US.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ A divider line separates different content.
1616

1717
| Property | Description | Type | Default | Version |
1818
| --- | --- | --- | --- | --- |
19-
| dashed | whether line is dashed | Boolean | false | |
20-
| orientation | position of title inside divider | enum: `left` `right` `center` | `center` | |
19+
| dashed | whether line is dashed | boolean | false | |
20+
| orientation | position of title inside divider | `left` \| `right` \| `center` | `center` | |
2121
| orientationMargin | The margin-left/right between the title and its closest border, while the `orientation` must be `left` or `right` | string \| number | - | 3.0 |
2222
| plain | Divider text show as plain style | boolean | true | 2.2.0 |
23-
| type | direction type of divider | enum: `horizontal` `vertical` | `horizontal` | |
23+
| type | direction type of divider | `horizontal` \| `vertical` | `horizontal` | |

components/divider/index.zh-CN.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ cover: https://gw.alipayobjects.com/zos/alicdn/5swjECahe/Divider.svg
1717

1818
| 参数 | 说明 | 类型 | 默认值 | 版本 |
1919
| --- | --- | --- | --- | --- |
20-
| dashed | 是否虚线 | Boolean | false | |
21-
| orientation | 分割线标题的位置 | enum: `left` `right` | `center` | |
20+
| dashed | 是否虚线 | boolean | false | |
21+
| orientation | 分割线标题的位置 | `left` \| `right` \| `center` | `center` |
2222
| orientationMargin | 标题和最近 left/right 边框之间的距离,去除了分割线,同时 `orientation` 必须为 `left``right` | string \| number | - | 3.0 |
2323
| plain | 文字是否显示为普通正文样式 | boolean | false | 2.2.0 |
24-
| type | 水平还是垂直类型 | enum: `horizontal` `vertical` | `horizontal` | |
24+
| type | 水平还是垂直类型 | `horizontal` \| `vertical` | `horizontal` | |

0 commit comments

Comments
 (0)