Progress: update docs for color prop (#10358)

pull/10360/head
杨奕 2018-03-26 11:43:19 +08:00 committed by GitHub
parent 5d6fe5eb2c
commit 8c2afa5759
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 3 deletions

View File

@ -59,6 +59,6 @@ In this case the percentage takes no additional space.
| stroke-width | the width of progress bar | number | — | 6 |
| text-inside | whether to place the percentage inside progress bar, only works when `type` is 'line' | boolean | — | false |
| status | the current status of progress bar | string | success/exception | — |
| color | the color of progress bar, can override the color of the current status | string | — | — |
| color | background color of progress bar. Overrides `status` prop | string | — | — |
| width | the canvas width of circle progress bar | number | — | 126 |
| show-text | whether to show percentage | boolean | — | true |

View File

@ -57,5 +57,6 @@ En este caso el porcentage no toma espacio adicional.
| stroke-width | ancho de la barra de progreso | number | — | 6 |
| text-inside | mostrar el porcentaje dentro de la barra de progreso, solo funciona cuando `type` es 'line' | boolean | — | false |
| status | estado actual de la barra de progreso | string | success/exception | — |
| color | background color of progress bar. Overrides `status` prop | string | — | — |
| width | ancho del canvas que contiene la barra de progreso circula | number | — | 126 |
| show-text | mostrar porcentaje | boolean | — | true |

View File

@ -61,8 +61,8 @@
| **percentage** | **百分比(必填)** | number | 0-100 | 0 |
| type | 进度条类型 | string | line/circle | line |
| stroke-width | 进度条的宽度,单位 px | number | — | 6 |
| text-inside | 进度条显示文字内置在进度条内(只在 type=line 时可用) | Boolean | — | false |
| text-inside | 进度条显示文字内置在进度条内(只在 type=line 时可用) | boolean | — | false |
| status | 进度条当前状态 | string | success/exception | — |
| color | 进度条颜色(自定义时会覆盖 status 状态颜色) | string | — | — |
| color | 进度条背景色(会覆盖 status 状态颜色) | string | — | — |
| width | 环形进度条画布宽度(只在 type=circle 时可用) | number | | 126 |
| show-text | 是否显示进度条文字内容 | boolean | — | true |

3
types/progress.d.ts vendored
View File

@ -20,6 +20,9 @@ export declare class ElProgress extends ElementUIComponent {
/** The current status of progress bar */
status: ProgressStatus
/** Background color of progress bar. Overrides `status` prop */
color: string
/** The canvas width of circle progress bar */
width: number