问题:
使用时间组件,显示框正常显示,绑定的参数格式未转换,已使用format(输入框的格式)和value-format(绑定值格式)
原因:
可能受版本影响
解决方法:
chang事件
<el-date-picker value-format="yyyy-MM-dd HH:mm:ss" format="yyyy-MM-dd HH:mm:ss"
v-model="startTime" type="datetime" @change="startdatetime" placeholder="选择日期时间">
</el-date-picker>
methods:{
startdatetime(val){
this.startTime=val;
},
}