Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slider: fix #15545 by adding explains about "input" event in Chinese #15588

Merged
merged 2 commits into from
Jun 24, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions examples/docs/en-US/slider.md
Original file line number Diff line number Diff line change
Expand Up @@ -237,4 +237,5 @@ Selecting a range of values is supported.
| Event Name | Description | Parameters |
|---------- |-------- |---------- |
| change | triggers when the value changes (if the mouse is being dragged, this event only fires when the mouse is released) | value after changing |
| input | triggers when the data changes (It'll be emitted in real time during sliding) | value after changing |

1 change: 1 addition & 0 deletions examples/docs/es/slider.md
Original file line number Diff line number Diff line change
Expand Up @@ -239,4 +239,5 @@ Se soporta la selección de un rango de valores.
| Nombre | Descripción | Parametros |
| ------ | ---------------------------------------- | ------------------------ |
| change | se dispara cuando el valor cambia (si el ratón está comenzando el arrastre este evento sólo se disparara cuando se suelte el ratón) | valor despues del cambio |
| input | triggers when the data changes (It'll be emitted in real time during sliding) | value after changing |

1 change: 1 addition & 0 deletions examples/docs/fr-FR/slider.md
Original file line number Diff line number Diff line change
Expand Up @@ -237,3 +237,4 @@ Vous pouvez sélectionner des intervalles de valeurs au lieu d'une valeur unique
| Nom | Description | Paramètres |
|---------- |-------- |---------- |
| change | Se déclenche quand la valeur change (si le changement est fait à la souris, se déclenche quand la souris redevient immobile). | La nouvelle valeur. |
| input | triggers when the data changes (It'll be emitted in real time during sliding) | value after changing |
1 change: 1 addition & 0 deletions examples/docs/zh-CN/slider.md
Original file line number Diff line number Diff line change
Expand Up @@ -234,3 +234,4 @@
| 事件名称 | 说明 | 回调参数 |
|---------- |-------- |---------- |
| change | 值改变时触发(使用鼠标拖曳时,只在松开鼠标后触发) | 改变后的值 |
| input | 数据改变时触发(使用鼠标拖曳时,活动过程实时触发) | 改变后的值 |
2 changes: 1 addition & 1 deletion packages/slider/src/main.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
v-if="showInput && !range"
class="el-slider__input"
ref="input"
@change="$nextTick(emitChange)"
@change="emitChange"
:step="step"
:disabled="sliderDisabled"
:controls="showInputControls"
Expand Down