提交 c83ef736 编写于 作者: A AmyFoxFN

fix(date-picker): min update #256

上级 515859eb
......@@ -154,7 +154,7 @@
return this.valueArray[i] && item.value === this.valueArray[i]
})
selectedIndex[i] = index !== -1 ? index : 0
data = data[selectedIndex[i]].children
data = data[selectedIndex[i]] && data[selectedIndex[i]].children
}
return selectedIndex
......@@ -189,7 +189,7 @@
}
if (count < this.columnCount - 1 && i < 5) {
(item.children || item).forEach(subItem => {
!subItem.children && this._generateData(i + 1, count + 1, subItem)
(!subItem.children || subItem.isMin || subItem.isMax) && this._generateData(i + 1, count + 1, subItem)
})
}
},
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册