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() }

猜你喜欢

转载自www.cnblogs.com/sllzhj/p/11733631.html