a-range-picker:

<a-range-picker
   showTime
   :placeholder="['开始时间', '结束时间']"
   format="YYYY-MM-DD HH:mm:ss"
   :value="createValue"
   @change="createChange"
 />
  
data() {
    return {
        createValue: [],
    }
}

选择时间时:

createChange(dates, dateStrings) {
    this.createValue = dates;
    this.params.beginTime = dateStrings[0]
    this.params.endTime = dateStrings[1]
},

清空设置this.createValue=[];即可  

a-date-picker:

<a-date-picker
  v-model="timeValue"
  format="YYYY-MM-DD HH:mm:ss"
  showTime
  @change="onChange"
/>
data() {
    return {
        timeValue: undefined,
    }
}

清空设置this.timeValue=undefined;即可  

相关文章:

  • 2022-12-23
  • 2021-12-30
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-22
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-08-28
  • 2022-12-23
  • 2022-12-23
  • 2021-12-02
  • 2022-12-23
  • 2021-12-02
相关资源
相似解决方案