docs(progress): api table (#652)

* docs(progress): 完善进度组件的说明文档

* docs(popconfirm): 修改弹出确认组件的一部分参数说明
This commit is contained in:
songjianet 2021-07-27 00:09:40 +08:00 committed by GitHub
parent 6b68d9c075
commit 60493f3eb7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 27 additions and 27 deletions

View File

@ -20,24 +20,24 @@ processing
| Name | Type | Default | Description |
| --- | --- | --- | --- |
| border-radius | `number \| string` | `undefined` | `'line'` typed progress's border-radius. Keep half of default height if not passed. |
| circle-gap | `number` | `1` | The gap bewteen circles when type is `'multiple-circle'`, suppose viewbox size is `100` |
| color | `string \| string[]` | `undefined` | |
| circle-gap | `number` | `1` | The gap between circles when type is `'multiple-circle'`, suppose `viewbox` size is `100`. |
| color | `string \| string[]` | `undefined` | Progress color. |
| fill-border-radius | `number \| string` | `undefined` | `'line'` typed progress's fill's border-radius. Keep `border-radius` if not passed. |
| height | `number` | `undefined` | `'line'` typed progress's height. Keep default height if not passed. |
| indicator-placement | `'inside' \| 'inside-label' \| 'outside'` | `'outside'` | |
| indicator-text-color | `string` | `undefined` | |
| percentage | `number \| Array<number>` | `0` | |
| processing | `boolean` | `false` | |
| rail-color | `string \| string[]` | `undefined` | |
| rail-style | `string \| CSS \| Array<string \| CSS>` | `undefined` | |
| show-indicator | `boolean` | `true` | |
| status | `'default' \| 'success' \| 'error' \| 'warning' \| 'info'` | `'default'` | |
| stroke-width | `number` | `7` | |
| type | `'line' \| 'circle' \| 'multiple-circle'` | `line` | |
| unit | `string` | `%` | |
| indicator-placement | `'inside' \| 'inside-label' \| 'outside'` | `'outside'` | Indicator placement. |
| indicator-text-color | `string` | `undefined` | Indicator text color. |
| percentage | `number \| Array<number>` | `0` | Percentage value. |
| processing | `boolean` | `false` | Processing status. |
| rail-color | `string \| string[]` | `undefined` | Rail color. |
| rail-style | `string \| CSS \| Array<string \| CSS>` | `undefined` | Rail style. |
| show-indicator | `boolean` | `true` | Whether to display indicators. |
| status | `'default' \| 'success' \| 'error' \| 'warning' \| 'info'` | `'default'` | Progress status. |
| stroke-width | `number` | `7` | Progress width. |
| type | `'line' \| 'circle' \| 'multiple-circle'` | `line` | Progress type. |
| unit | `string` | `%` | Progress unit. |
## Slots
| Name | Parameters | Description |
| ------- | ---------- | ----------------------------------------------- |
| default | `()` | Content will replace default indicatior content |
| default | `()` | Content will replace default indicator content. |

View File

@ -20,21 +20,21 @@ processing
| 名称 | 类型 | 默认值 | 说明 |
| --- | --- | --- | --- |
| border-radius | `number \| string` | `undefined` | `'line'` 类型进度条的圆角半径,不填写则维持高度的一半 |
| circle-gap | `number` | `1` | 当类型是 `'multiple-circle'` 的时候圈之间的距离,假设 viewbox 的尺寸是 100 |
| color | `string \| string[]` | `undefined` | |
| circle-gap | `number` | `1` | 当类型是 `'multiple-circle'` 的时候圈之间的距离,假设 `viewbox` 的尺寸是 `100` |
| color | `string \| string[]` | `undefined` | 进度条颜色 |
| fill-border-radius | `number \| string` | `undefined` | `'line'` 类型进度条填充的圆角半径,不填写则维持 `border-radius` |
| height | `number` | `undefined` | `'line'` 类型进度条的高度,不填写则维持默认高度 |
| indicator-placement | `'inside' \| 'inside-label' \| 'outside'` | `'outside'` | |
| indicator-text-color | `string` | `undefined` | |
| percentage | `number \| Array<number>` | `0` | |
| processing | `boolean` | `false` | |
| rail-color | `string \| string[]` | `undefined` | |
| rail-style | `string \| CSS \| Array<string \| CSS>` | `undefined` | |
| show-indicator | `boolean` | `true` | |
| status | `'default' \| 'success' \| 'error' \| 'warning' \| 'info'` | `'default'` | |
| stroke-width | `number` | `7` | |
| type | `'line' \| 'circle' \| 'multiple-circle'` | `line` | |
| unit | `string` | `%` | |
| indicator-placement | `'inside' \| 'inside-label' \| 'outside'` | `'outside'` | 设置指标位置 |
| indicator-text-color | `string` | `undefined` | 指标文本颜色 |
| percentage | `number \| Array<number>` | `0` | 百分比的值 |
| processing | `boolean` | `false` | 处理中状态 |
| rail-color | `string \| string[]` | `undefined` | 轨道的颜色 |
| rail-style | `string \| CSS \| Array<string \| CSS>` | `undefined` | 轨道的对象 |
| show-indicator | `boolean` | `true` | 是否显示指标 |
| status | `'default' \| 'success' \| 'error' \| 'warning' \| 'info'` | `'default'` | 进度条状态 |
| stroke-width | `number` | `7` | 进度条宽度 |
| type | `'line' \| 'circle' \| 'multiple-circle'` | `line` | 进度条类型 |
| unit | `string` | `%` | 进度条单位 |
## Slots