提交 2646584d 编写于 作者: D DCloud_LXH

fix(h5): picker year start question/156052

上级 61e642b5
......@@ -162,8 +162,8 @@ function getDefaultEndValue () {
function getYearStartEnd (props) {
const year = new Date().getFullYear()
let start = year - 61
let end = year + 61
let start = year - 150
let end = year + 150
if (props.start) {
const _year = new Date(props.start).getFullYear()
if (!isNaN(_year) && _year < start) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册