From 60493f3eb729dc809af8dbba31fdea470f1d6e88 Mon Sep 17 00:00:00 2001 From: songjianet <1778651752@qq.com> Date: Tue, 27 Jul 2021 00:09:40 +0800 Subject: [PATCH] docs(progress): api table (#652) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * docs(progress): 完善进度组件的说明文档 * docs(popconfirm): 修改弹出确认组件的一部分参数说明 --- src/progress/demos/enUS/index.demo-entry.md | 28 ++++++++++----------- src/progress/demos/zhCN/index.demo-entry.md | 26 +++++++++---------- 2 files changed, 27 insertions(+), 27 deletions(-) diff --git a/src/progress/demos/enUS/index.demo-entry.md b/src/progress/demos/enUS/index.demo-entry.md index f2ff62a9a..8fd07d713 100644 --- a/src/progress/demos/enUS/index.demo-entry.md +++ b/src/progress/demos/enUS/index.demo-entry.md @@ -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` | `0` | | -| processing | `boolean` | `false` | | -| rail-color | `string \| string[]` | `undefined` | | -| rail-style | `string \| CSS \| Array` | `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` | `0` | Percentage value. | +| processing | `boolean` | `false` | Processing status. | +| rail-color | `string \| string[]` | `undefined` | Rail color. | +| rail-style | `string \| CSS \| Array` | `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. | diff --git a/src/progress/demos/zhCN/index.demo-entry.md b/src/progress/demos/zhCN/index.demo-entry.md index 53cefd0d9..5a0f3e32a 100644 --- a/src/progress/demos/zhCN/index.demo-entry.md +++ b/src/progress/demos/zhCN/index.demo-entry.md @@ -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` | `0` | | -| processing | `boolean` | `false` | | -| rail-color | `string \| string[]` | `undefined` | | -| rail-style | `string \| CSS \| Array` | `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` | `0` | 百分比的值 | +| processing | `boolean` | `false` | 处理中状态 | +| rail-color | `string \| string[]` | `undefined` | 轨道的颜色 | +| rail-style | `string \| CSS \| Array` | `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