• 只能选择未来时间
<el-date-picker
v-model="ruleForm.year"
value-format="yyyy"
type="year"
placeholder="选择年份"
:picker-options="timeOption"
style="width: 100%"
/>

<script>
timeOption: {
disabledDate(date) {
return date.getTime() <= Date.now()
}
}
</script>