Slider support value null
This commit is contained in:
parent
eb3e1619f7
commit
c9a33a082c
1 changed files with 2 additions and 1 deletions
|
@ -181,7 +181,8 @@
|
|||
}
|
||||
},
|
||||
data () {
|
||||
const val = this.checkLimits(Array.isArray(this.value) ? this.value : [this.value]);
|
||||
let val = this.checkLimits(Array.isArray(this.value) ? this.value : [this.value]);
|
||||
if (this.range && this.value === null) val = [0, 0];
|
||||
return {
|
||||
prefixCls: prefixCls,
|
||||
currentValue: val,
|
||||
|
|
Loading…
Add table
Reference in a new issue