<a-time-picker :default-open-value="moment('00:00', 'HH:mm')" @change="bbStartChange" slot="extra" style="width: 40%" format="HH:mm" v-model="baibanEndTime" />
怎么给baibanEndTime赋值,打开页面就能显示时间?
<a-time-picker :default-open-value="moment('00:00', 'HH:mm')" @change="bbStartChange" slot="extra" style="width: 40%" format="HH:mm" v-model="baibanEndTime" />
怎么给baibanEndTime赋值,打开页面就能显示时间?
import moment from 'moment'
export default {
data(){
baibanEndTime: moment(new Date(), 'HH:mm')
} ,
methods:{
moment,
}
}