el-date-picker 设置开始时间和结束时间
<el-date-picker
v-model="ruleForm.RECORDDATE"
type="date"
placeholder="日期"
format="YYYY/M/D"
value-format="YYYY/M/D"
style="width: 100%;"
:disabled-date="publishDateAfter"
>
</el-date-picker>
publishDateAfter(time){
return time.getTime() > Date.now();
}
const publishDateAfter = (time) => {
return time.getTime() > Date.now();
}
原文地址:https://blog.csdn.net/lfl18326162160/article/details/143571327
免责声明:本站文章内容转载自网络资源,如本站内容侵犯了原著者的合法权益,可联系本站删除。更多内容请关注自学内容网(zxcms.com)!