ant design vue 时间选择器只能到最大日期

 

<a-date-picker :disabledDate="disabledEndDate"  style="width: 100%" placeholder="请输入出生日期" />
//
设置可选最大日期 disabledEndDate (endValue) { const startValue = new Date() if (!endValue || !startValue) { return false } return startValue.valueOf() <= endValue.valueOf() }

 

posted @ 2019-10-24 17:32  甜甜宝宝  阅读(1537)  评论(0编辑  收藏  举报