<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() }
原文:https://www.cnblogs.com/sllzhj/p/11733631.html