Slider support value null

This commit is contained in:
梁灏 2021-09-15 17:10:38 +08:00
parent eb3e1619f7
commit c9a33a082c

View file

@ -181,7 +181,8 @@
} }
}, },
data () { 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 { return {
prefixCls: prefixCls, prefixCls: prefixCls,
currentValue: val, currentValue: val,