mint-ui icon indicating copy to clipboard operation
mint-ui copied to clipboard

在使用DatePicker组件时,怎么设置它的startDate和endDate?我每次在data下定义一个日期对象(如'beginDate:new Date(),')时,然后再绑定(用' startDate=“{beginDate}” '的方式),总是说对象的类型不是Date类型,是String!是我的数据绑定有问题?

Open WonderfulFuture opened this issue 9 years ago • 2 comments

Mint UI version

Device model

Reproduction Link

What is Expected?

What is actually happening?

WonderfulFuture avatar Feb 22 '17 10:02 WonderfulFuture

:startDate="beginDate"

Leopoldthecoder avatar Feb 22 '17 10:02 Leopoldthecoder

可以传值的时候, 在值上面用new Date()来处理一下.确保你传的值是Date类型

george-wayne-dev avatar Oct 30 '18 07:10 george-wayne-dev