mint-ui
mint-ui copied to clipboard
在使用DatePicker组件时,怎么设置它的startDate和endDate?我每次在data下定义一个日期对象(如'beginDate:new Date(),')时,然后再绑定(用' startDate=“{beginDate}” '的方式),总是说对象的类型不是Date类型,是String!是我的数据绑定有问题?
Mint UI version
Device model
Reproduction Link
What is Expected?
What is actually happening?
:startDate="beginDate"
可以传值的时候, 在值上面用new Date()来处理一下.确保你传的值是Date类型