docs(descriptions): [API] fix type definition (#5459)

This commit is contained in:
bqy_fe 2022-04-09 09:39:39 +08:00 committed by GitHub
parent 4c83c64812
commit e82e4bed3e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 6 deletions

View File

@ -16,8 +16,8 @@ A divider line separates different content.
| Property | Description | Type | Default | Version |
| --- | --- | --- | --- | --- |
| dashed | whether line is dashed | Boolean | false | |
| orientation | position of title inside divider | enum: `left` `right` `center` | `center` | |
| dashed | whether line is dashed | boolean | false | |
| orientation | position of title inside divider | `left` \| `right` \| `center` | `center` | |
| orientationMargin | The margin-left/right between the title and its closest border, while the `orientation` must be `left` or `right` | string \| number | - | 3.0 |
| plain | Divider text show as plain style | boolean | true | 2.2.0 |
| type | direction type of divider | enum: `horizontal` `vertical` | `horizontal` | |
| type | direction type of divider | `horizontal` \| `vertical` | `horizontal` | |

View File

@ -17,8 +17,8 @@ cover: https://gw.alipayobjects.com/zos/alicdn/5swjECahe/Divider.svg
| 参数 | 说明 | 类型 | 默认值 | 版本 |
| --- | --- | --- | --- | --- |
| dashed | 是否虚线 | Boolean | false | |
| orientation | 分割线标题的位置 | enum: `left` `right` | `center` | |
| dashed | 是否虚线 | boolean | false | |
| orientation | 分割线标题的位置 | `left` \| `right` \| `center` | `center` |
| orientationMargin | 标题和最近 left/right 边框之间的距离,去除了分割线,同时 `orientation` 必须为 `left``right` | string \| number | - | 3.0 |
| plain | 文字是否显示为普通正文样式 | boolean | false | 2.2.0 |
| type | 水平还是垂直类型 | enum: `horizontal` `vertical` | `horizontal` | |
| type | 水平还是垂直类型 | `horizontal` \| `vertical` | `horizontal` | |