<el-date-picker
v-model="dateArr"
class="createDate"
type="datetimerange"
:range-separator="$t('languageI18n.to')"
:start-placeholder="$t('languageI18n.startDate')"
:end-placeholder="$t('languageI18n.endDate')"
value-format="yyyy-MM-dd HH:mm:ss"
:picker-options="expireTimeOption"
:default-time="['00:00:00', '23:59:59']"
/>
在data里面这么写可以控制不选择当下之前的日期
expireTimeOption: {
disabledDate(date) {
return date.getTime() < Date.now() - 24 * 60 * 60 * 1000
}
},