提交 c9a33a08 编写于 作者: View Design's avatar View Design

Slider support value null

上级 eb3e1619
......@@ -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,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册