1、添加属性 :picker-options="pickerOptions" 2、定义pickerOptions-disabledDate pickerOptions: { disabledDate(time) { console.log(time); var year = new Date().getFullYear() return ( time.getFullYear() < year ) } } ,
标签:getFullYear,elementui,pickerOptions,year,选择,time,年度 From: https://www.cnblogs.com/wwwcf1982603555/p/16942392.html