<el-config-provider :locale="locale">
<el-date-picker v-model="selectDate" type="daterange" range-separator="-" start-placeholder="Start date" end-placeholder="End date" :disabled-date="disableDate" :default-value="Date.now() - 30 * 24 * 3600 * 1000" value-format="YYYY-MM-DD" unlink-panels />
</el-config-provider>
日期截止当前
function disableDate(){
return Date.now() < time.getTime()
}
中文
import { zhCn } from 'element-plus/es/locale'
return { locale: zhCn }
右侧当前月
:default-value="Date.now() - 30 * 24 * 3600 * 1000"
标签:return,locale,element,时间,Date,zhCn,选择器
From: https://www.cnblogs.com/shallow-dreamer/p/17181723.html