import dayjs from'dayjs';// 限制时间选择器只能选择今天及以后的日期constdisabledFn=(val:any)=>{return val.getTime()<=newDate().getTime()-8.64e7;};// 限制时间选择器只能选择30天之内的constdisabledFn=(current: any)=>{if(!startVal.value)returnfalse;let range =[dayjs(startVal.value).subtract(30,'day'),dayjs(startVal.value).add(30,'day')];let cur =dayjs(current);if(subData.value.timeStatus){return cur < range[0]|| cur > range[1];}else{returnfalse||false;}};