Skip to content

Commit

Permalink
Slider: add explains about "input" event in Chinese (ElemeFE#15545)
Browse files Browse the repository at this point in the history
  • Loading branch information
范文杰 committed May 16, 2019
1 parent 16a6059 commit c83b412
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
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

0 comments on commit c83b412

Please sign in to comment.