vue element 时间选择框小于当前日期不可选

笑着哭i 提交于 2020-11-30 20:53:09
<template>
     < el-date-picker
              v-model = " time_ "
              type = "date"
             : picker-options = " option "
              value-format = "yyyy-MM-dd"
              placeholder = "请选择日期" >
     </ el-date-picker >
</template>
 
<script>
export defalut{
    data(){
        return{
            option : {
                     disabledDate : (time) =>  {
                         return  time. getTime ()  <   Date . now () - 1   *   24   *   3600   *   1000
                    }
                },
        }
}
}
</script>
 
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!