Skip to content

Commit

Permalink
Docs: fix a type error in document of steps component. (#17555)
Browse files Browse the repository at this point in the history
  • Loading branch information
haoranyu authored Apr 13, 2020
1 parent f3c76ee commit 4b869fb
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions examples/docs/en-US/steps.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Guide the user to complete tasks in accordance with the process. Its steps can b

Simple step bar.

:::demo Set `active` attribute with `Number` type, which indicates the index of steps and starts from 0. You can set `space` attribute when the width of the step needs to be fixed which accepts `Boolean` type. The unit of the `space` attribute is `px`. If not set, it is responsive. Setting the `finish-status` attribute can change the state of the steps that have been completed.
:::demo Set `active` attribute with `Number` type, which indicates the index of steps and starts from 0. You can set `space` attribute when the width of the step needs to be fixed which accepts `Number` type. The unit of the `space` attribute is `px`. If not set, it is responsive. Setting the `finish-status` attribute can change the state of the steps that have been completed.

```html
<el-steps :active="active" finish-status="success">
Expand Down Expand Up @@ -50,7 +50,7 @@ Shows the status of the step for each step.
```
:::

### Center
### Center

Title and desription can be centered.

Expand Down
4 changes: 2 additions & 2 deletions examples/docs/es/steps.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Guía al usuario para completar tareas de acuerdo con el proceso. Sus pasos pued

Barra de pasos simple.

:::demo Defina el atributo `active` con un valor de tipo `Number`, que indica el índice de pasos y comienza desde 0. Puede definir el atributo `space` cuando es necesario fijar el ancho del paso que acepta el tipo `Boolean`. La unidad del atributo `space` es px. Si no está configurado, es responsive. La configuración del atributo `finish-status` puede cambiar el estado de los pasos completados.
:::demo Defina el atributo `active` con un valor de tipo `Number`, que indica el índice de pasos y comienza desde 0. Puede definir el atributo `space` cuando es necesario fijar el ancho del paso que acepta el tipo `Number`. La unidad del atributo `space` es px. Si no está configurado, es responsive. La configuración del atributo `finish-status` puede cambiar el estado de los pasos completados.

```html
<el-steps :active="active" finish-status="success">
Expand Down Expand Up @@ -50,7 +50,7 @@ Muestra el estado del step para cada paso.
```
:::

### Centrado
### Centrado

El título y la descripción pueden estar centrados.

Expand Down
2 changes: 1 addition & 1 deletion examples/docs/fr-FR/steps.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Permet de guider l'utilisateur dans l'accomplissement de toutes les taches d'un

Voici une barre d'étapes basique.

:::demo Réglez l'attribut `active` avec une variable `Number`, qui indique l'index des étapes et commence à 0. L'attribut `space` permet de déterminer si l'espace entre les étapes doit être fixe à l'aide d'un `Boolean`. L'unité de `space` est `px`. Si cet attribut est absent, la barre sera responsive. L'attribut `finish-status` change le statut d'accomplissement des étapes.
:::demo Réglez l'attribut `active` avec une variable `Number`, qui indique l'index des étapes et commence à 0. L'attribut `space` permet de déterminer si l'espace entre les étapes doit être fixe à l'aide d'un `Number`. L'unité de `space` est `px`. Si cet attribut est absent, la barre sera responsive. L'attribut `finish-status` change le statut d'accomplissement des étapes.

```html
<el-steps :active="active" finish-status="success">
Expand Down
2 changes: 1 addition & 1 deletion examples/docs/zh-CN/steps.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

简单的步骤条。

:::demo 设置`active`属性,接受一个`Number`,表明步骤的 index,从 0 开始。需要定宽的步骤条时,设置`space`属性即可,它接受`Boolean`,单位为`px`,如果不设置,则为自适应。设置`finish-status`属性可以改变已经完成的步骤的状态。
:::demo 设置`active`属性,接受一个`Number`,表明步骤的 index,从 0 开始。需要定宽的步骤条时,设置`space`属性即可,它接受`Number`,单位为`px`,如果不设置,则为自适应。设置`finish-status`属性可以改变已经完成的步骤的状态。
```html
<el-steps :active="active" finish-status="success">
<el-step title="步骤 1"></el-step>
Expand Down

0 comments on commit 4b869fb

Please sign in to comment.