Browse Source

Progress: update docs for color prop (#10358)

杨奕 7 years ago
parent
commit
8c2afa5759

+ 1 - 1
examples/docs/en-US/progress.md

@@ -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 |

+ 1 - 0
examples/docs/es/progress.md

@@ -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        |

+ 2 - 2
examples/docs/zh-CN/progress.md

@@ -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 - 0
types/progress.d.ts

@@ -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