2020
10-28
10-28
ant-design-vue 时间选择器赋值默认时间的操作
我就废话不多说了,大家还是直接看代码吧~<template><div><a-range-pickershow-timeformat="YYYY/MM/DDHH:mm:ss":value="[this.moment(startTime,dateFormat),this.moment(endTime,dateFormat)]"//关键代码@change="onChangeTime"></a-range-picker></div></template><script>importMomentfrom'moment'exportdefault{data(){this.dateFormat='YYYY/MM/DDHH:mm:ss'return{startTime:'20...
继续阅读 >