日期在双向绑定之后格式为:2019-07-03T16:00:00.000Z 想要的格式为2019-07-04
以下代码即可:
<DatePicker
:key=“formValidate.expiredTime”
format=“yyyy-MM-dd”
@on-change=‘formValidate.expiredTime=$event’
type=“datetime”
placeholder=“请选择到期日期”
v-model=“formValidate.expiredTime”
>