element-ui 中(el-date-picker)多种输出格式

178 阅读1分钟

element-ui 中(el-date-picker)多种输出格式

首先:这是默认的输出样式

image.png 下边是可以选择的输出样式

<el-date-picker
 v-date-format
 v-model="form.applicantBirthday"
 type="date"
 placeholder="请选择日期时间"
 format="yyyy年MM月dd日"
 value-format="yyyy-MM-dd"
 :picker-options="pickerOptions"
>
</el-date-picker>

这是加上了value-format="yyyy-MM-dd"后的输出样式

image.png