mirror of https://github.com/ElemeFE/element
Slider: add props debounce
parent
a033db4297
commit
48074f2eee
|
@ -237,6 +237,7 @@
|
||||||
| range | 是否为范围选择 | boolean | — | false |
|
| range | 是否为范围选择 | boolean | — | false |
|
||||||
| vertical | 是否竖向模式 | boolean | — | false |
|
| vertical | 是否竖向模式 | boolean | — | false |
|
||||||
| height | Slider 高度,竖向模式时必填 | String | — | — |
|
| height | Slider 高度,竖向模式时必填 | String | — | — |
|
||||||
|
| debounce | 输入时的去抖延迟,毫秒,show-input等于true时有效 | number | — | 300 |
|
||||||
|
|
||||||
### Events
|
### Events
|
||||||
| 事件名称 | 说明 | 回调参数 |
|
| 事件名称 | 说明 | 回调参数 |
|
||||||
|
|
|
@ -11,6 +11,7 @@
|
||||||
:controls="showInputControls"
|
:controls="showInputControls"
|
||||||
:min="min"
|
:min="min"
|
||||||
:max="max"
|
:max="max"
|
||||||
|
:debounce="debounce"
|
||||||
size="small">
|
size="small">
|
||||||
</el-input-number>
|
</el-input-number>
|
||||||
<div class="el-slider__runway"
|
<div class="el-slider__runway"
|
||||||
|
@ -101,6 +102,10 @@
|
||||||
},
|
},
|
||||||
height: {
|
height: {
|
||||||
type: String
|
type: String
|
||||||
|
},
|
||||||
|
debounce: {
|
||||||
|
type: Number,
|
||||||
|
default: 300
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue