antd-vue的date-picker时间选择限制
antd-vue的date-picker时间选择的四种限制:
import dayjs from 'dayjs';//必须引入
(1)当天之前的不可选(包括当天),如下图所示:
const disabledDate = current => {
return current&& current< dayjs().endOf('day');
};
(2)当天之前的不可选(不包括当天),如下图所示:
const disabledDate = current => {
return current && current < dayjs().subtract(1,"days").endO
共有 0 条评论