diff --git a/examples/docs/en-US/progress.md b/examples/docs/en-US/progress.md index d208d8f9f..58ca755ce 100644 --- a/examples/docs/en-US/progress.md +++ b/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 | diff --git a/examples/docs/es/progress.md b/examples/docs/es/progress.md index cae68474b..d7fb21d01 100644 --- a/examples/docs/es/progress.md +++ b/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 | diff --git a/examples/docs/zh-CN/progress.md b/examples/docs/zh-CN/progress.md index 3e2b1e9c1..a6b1b9c9f 100644 --- a/examples/docs/zh-CN/progress.md +++ b/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 | diff --git a/types/progress.d.ts b/types/progress.d.ts index d60d50140..933347c4b 100644 --- a/types/progress.d.ts +++ b/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