Slider: add props debounce

pull/6814/merge
fanzhaobing 2017-09-01 18:15:46 +08:00 committed by 杨奕
parent a033db4297
commit 48074f2eee
2 changed files with 6 additions and 0 deletions

View File

@ -237,6 +237,7 @@
| range | 是否为范围选择 | boolean | — | false |
| vertical | 是否竖向模式 | boolean | — | false |
| height | Slider 高度,竖向模式时必填 | String | — | — |
| debounce | 输入时的去抖延迟毫秒show-input等于true时有效 | number | — | 300 |
### Events
| 事件名称 | 说明 | 回调参数 |

View File

@ -11,6 +11,7 @@
:controls="showInputControls"
:min="min"
:max="max"
:debounce="debounce"
size="small">
</el-input-number>
<div class="el-slider__runway"
@ -101,6 +102,10 @@
},
height: {
type: String
},
debounce: {
type: Number,
default: 300
}
},