<el-date-picker
class="wid100"
size="mini"
v-model="addYear"
@change="changeYear"
format="yyyy年"
value-format="yyyy"
type="year"
placeholder="选择年"
:picker-options="{ disabledDate: (t) => t.getTime() < Date.now() }"
>
</el-date-picker>
element ui 中el-date-picker控制时间禁止状态
于 2022-02-08 13:59:06 首次发布