时间限定范围: <el-date-picker type="date" placeholder="选择日期" v-model="addForm.Birthday" :picker-options="pickerOptions"></el-date-picker> pickerOptions:{ disabledDate(time) { return time.getTime() <util.formatDateTime().End||time.getTime() > util.formatDateTime().Start; } } //util:限制选择范围7~13岁 formatDateTime:function(){ let time=new Date(); let y = time.getFullYear(); let m = time.getMonth() + 1; let d = time.getDate(); m = m < 10 ? ('0' + m) : m; d = d < 10 ? ('0' + d) : d; let start, end; start= new Date(y-7 + '/' + m + '/' + d).getTime(); end=new Date(y-20 + '/' + m + '/' + d).getTime(); return { Start:start, End:end } }