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

antd-vue的date-picker时间选择限制最先出现在Python成神之路

版权声明:
作者:主机优惠
链接:https://www.techfm.club/p/19128.html
来源:TechFM
文章版权归作者所有,未经允许请勿转载。

THE END
分享
二维码
< <上一篇
下一篇>>