vant 中的 van-datetime-picker 组件的事件调用及参数,获取时间
<van-datetime-picker v-model="currentStartTime" type="time" @change="changePre"></van-datetime-picker>
......
......
methods: { changePre(picker, value, colum) { let startTime = picker.getValues(); this.startTime = startTime[0] + ":" + startTime[1]; console.log(this.startTime); } }
小小的记录下,如果有启发请点推荐,谢谢!
FUCKING FRONT-END DEVELOPMENT