未验证 提交 d216a252 编写于 作者: 好多大米 提交者: GitHub

Docs: add format attribute description to the progress component (#20641)

上级 3d7c3d71
...@@ -170,4 +170,5 @@ You also can specify `type` attribute to `dashboard` to use dashboard progress b ...@@ -170,4 +170,5 @@ You also can specify `type` attribute to `dashboard` to use dashboard progress b
| color | background color of progress bar. Overrides `status` prop | string/function/array | — | '' | | color | background color of progress bar. Overrides `status` prop | string/function/array | — | '' |
| width | the canvas width of circle progress bar | number | — | 126 | | width | the canvas width of circle progress bar | number | — | 126 |
| show-text | whether to show percentage | boolean | — | true | | show-text | whether to show percentage | boolean | — | true |
| stroke-linecap | circle/dashboard type shape at the end path | string | butt/round/square | round | | stroke-linecap | circle/dashboard type shape at the end path | string | butt/round/square | round |
\ No newline at end of file | format | custom text format | function(percentage) | — | — |
\ No newline at end of file
...@@ -168,4 +168,5 @@ Puede utilizar el atributo `color` para establecer el color de la barra de progr ...@@ -168,4 +168,5 @@ Puede utilizar el atributo `color` para establecer el color de la barra de progr
| color | color de fondo de la barra de progreso. Sobrescribe la propiedad `status` | string/function/array | — | '' | | color | color de fondo de la barra de progreso. Sobrescribe la propiedad `status` | string/function/array | — | '' |
| width | ancho del canvas que contiene la barra de progreso circula | number | — | 126 | | width | ancho del canvas que contiene la barra de progreso circula | number | — | 126 |
| show-text | mostrar porcentaje | boolean | — | true | | show-text | mostrar porcentaje | boolean | — | true |
| stroke-linecap | circle/dashboard tipo de diseño al final del camino | string | butt/round/square | round | | stroke-linecap | circle/dashboard tipo de diseño al final del camino | string | butt/round/square | round |
\ No newline at end of file | format | personalizar el formato de texto estableciendo format | function(percentage) | — | — |
\ No newline at end of file
...@@ -4,7 +4,7 @@ Progress est utilisé pour afficher la progression d'une opération et informer ...@@ -4,7 +4,7 @@ Progress est utilisé pour afficher la progression d'une opération et informer
### Barre de progression linéaire ### Barre de progression linéaire
:::demo Utilisez l'attribut `percentage` pour indiquer le pourcentage. Cet attribut est **requis** et doit être compris entre 0 et 100. You can custom text format by setting `format`. :::demo Utilisez l'attribut `percentage` pour indiquer le pourcentage. Cet attribut est **requis** et doit être compris entre 0 et 100. Vous pouvez personnaliser le format du texte en définissant le `format`.
```html ```html
<el-progress :percentage="50"></el-progress> <el-progress :percentage="50"></el-progress>
<el-progress :percentage="100" :format="format"></el-progress> <el-progress :percentage="100" :format="format"></el-progress>
...@@ -171,4 +171,5 @@ Vous pouvez également spécifier l'attribut `type` de `dashboard` pour utiliser ...@@ -171,4 +171,5 @@ Vous pouvez également spécifier l'attribut `type` de `dashboard` pour utiliser
| color | La couleur de fon de la barre. Écrase `status`. | string/function/array | — | '' | | color | La couleur de fon de la barre. Écrase `status`. | string/function/array | — | '' |
| width | La largeur du canvas dans le cas d'une barre circulaire. | number | — | 126 | | width | La largeur du canvas dans le cas d'une barre circulaire. | number | — | 126 |
| show-text | Si le pourcentage doit être affiché. | boolean | — | true | | show-text | Si le pourcentage doit être affiché. | boolean | — | true |
| stroke-linecap | circle/dashboard type shape at the end path | string | butt/round/square | round | | stroke-linecap | circle/dashboard type shape at the end path | string | butt/round/square | round |
\ No newline at end of file | format | Vous pouvez personnaliser le format du texte en définissant le format | function(percentage) | — | — |
\ No newline at end of file
...@@ -174,4 +174,5 @@ Progress 组件可通过 `type` 属性来指定使用环形进度条,在环形 ...@@ -174,4 +174,5 @@ Progress 组件可通过 `type` 属性来指定使用环形进度条,在环形
| color | 进度条背景色(会覆盖 status 状态颜色) | string/function/array | — | '' | | color | 进度条背景色(会覆盖 status 状态颜色) | string/function/array | — | '' |
| width | 环形进度条画布宽度(只在 type 为 circle 或 dashboard 时可用) | number | | 126 | | width | 环形进度条画布宽度(只在 type 为 circle 或 dashboard 时可用) | number | | 126 |
| show-text | 是否显示进度条文字内容 | boolean | — | true | | show-text | 是否显示进度条文字内容 | boolean | — | true |
| stroke-linecap | circle/dashboard 类型路径两端的形状 | string | butt/round/square | round | | stroke-linecap | circle/dashboard 类型路径两端的形状 | string | butt/round/square | round |
\ No newline at end of file | format | 指定进度条文字内容 | function(percentage) | — | — |
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册