mirror of https://github.com/ElemeFE/element
Slider: add props debounce
parent
a033db4297
commit
48074f2eee
|
@ -237,6 +237,7 @@
|
|||
| range | 是否为范围选择 | boolean | — | false |
|
||||
| vertical | 是否竖向模式 | boolean | — | false |
|
||||
| height | Slider 高度,竖向模式时必填 | String | — | — |
|
||||
| debounce | 输入时的去抖延迟,毫秒,show-input等于true时有效 | number | — | 300 |
|
||||
|
||||
### Events
|
||||
| 事件名称 | 说明 | 回调参数 |
|
||||
|
|
|
@ -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
|
||||
}
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in New Issue