提交 4859b034 编写于 作者: Q qiang

fix: 修复多列 picker 显示错误的问题

上级 c15c4de7
......@@ -353,7 +353,9 @@ export default {
}
const length = this.valueSync.length = Math.max(val.length, this.range.length)
for (let index = 0; index < length; index++) {
this.valueSync.splice(index, 1, Number(val[index]) || Number(this.valueSync[index]) || 0)
const val0 = Number(val[index])
const val1 = Number(this.valueSync[index])
this.valueSync.splice(index, 1, isNaN(val0) ? (isNaN(val1) ? 0 : val1) : val0)
}
break
case mode.TIME:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册