options3: {
disabledDate(date) {
let nowTime = new Date()
let month = nowTime.getMonth() + 1
let year = nowTime.getFullYear()
if (month - 1 == 0) {
year = year - 1;
month = 12;
}
return date && date.valueOf() < new Date(`${year}-${month}`);
}
},
vue中Iview日期组件,可选此月不可选过去的所有月份的options
最新推荐文章于 2023-03-28 15:06:50 发布