Skip to content

Commit

Permalink
Docs: add format attribute description to the progress component (#20641
Browse files Browse the repository at this point in the history
)
  • Loading branch information
cs1707 committed Jan 4, 2021
1 parent 3d7c3d7 commit d216a25
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
3 changes: 2 additions & 1 deletion examples/docs/en-US/progress.md
Expand Up @@ -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 || '' |
| width | the canvas width of circle progress bar | number || 126 |
| 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 |
| format | custom text format | function(percentage) |||
3 changes: 2 additions & 1 deletion examples/docs/es/progress.md
Expand Up @@ -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 || '' |
| width | ancho del canvas que contiene la barra de progreso circula | number || 126 |
| 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 |
| format | personalizar el formato de texto estableciendo format | function(percentage) |||
5 changes: 3 additions & 2 deletions examples/docs/fr-FR/progress.md
Expand Up @@ -4,7 +4,7 @@ Progress est utilisé pour afficher la progression d'une opération et informer

### 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
<el-progress :percentage="50"></el-progress>
<el-progress :percentage="100" :format="format"></el-progress>
Expand Down Expand Up @@ -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 || '' |
| width | La largeur du canvas dans le cas d'une barre circulaire. | number || 126 |
| 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 |
| format | Vous pouvez personnaliser le format du texte en définissant le format | function(percentage) |||
3 changes: 2 additions & 1 deletion examples/docs/zh-CN/progress.md
Expand Up @@ -174,4 +174,5 @@ Progress 组件可通过 `type` 属性来指定使用环形进度条,在环形
| color | 进度条背景色(会覆盖 status 状态颜色) | string/function/array || '' |
| width | 环形进度条画布宽度(只在 type 为 circle 或 dashboard 时可用) | number | | 126 |
| show-text | 是否显示进度条文字内容 | boolean || true |
| stroke-linecap | circle/dashboard 类型路径两端的形状 | string | butt/round/square | round |
| stroke-linecap | circle/dashboard 类型路径两端的形状 | string | butt/round/square | round |
| format | 指定进度条文字内容 | function(percentage) |||

0 comments on commit d216a25

Please sign in to comment.