需要的效果
<el-date-pickerclass="selectstyle"v-model="year"value-format="yyyy"type="year":picker-options="disabledCli"placeholder="选择年">
</el-date-picker>
data() {return {disabledCli: {// 返回禁用时间disabledDate(time) {return time.getTime() < new Date('2016-8-1 00:00:00').getTime(); // 指定具体时间之前的日期禁用// return time.getTime() < Date.now(); // 可选未来},},}},