Explorar el Código

fix: 修复ios下date-time-popup数据同步不及时问题

cuiyalong hace 1 año
padre
commit
6a0e16c336
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  1. 5 0
      src/components/selector/date-time-group/date-time-popup.vue

+ 5 - 0
src/components/selector/date-time-group/date-time-popup.vue

@@ -8,6 +8,7 @@
       :safe-area-inset-bottom="true"
       :safe-area-inset-bottom="true"
       get-container="body"
       get-container="body"
       :style="popup.style"
       :style="popup.style"
+      @close="onPopupClose"
     >
     >
       <PopupLayout
       <PopupLayout
         title="请选择开始时间"
         title="请选择开始时间"
@@ -45,6 +46,7 @@
       :safe-area-inset-bottom="true"
       :safe-area-inset-bottom="true"
       get-container="body"
       get-container="body"
       :style="popup.style"
       :style="popup.style"
+      @close="onPopupClose"
     >
     >
       <PopupLayout
       <PopupLayout
         title="请选择结束时间"
         title="请选择结束时间"
@@ -263,6 +265,9 @@ export default {
       this.startSyncValue()
       this.startSyncValue()
       this.onChange()
       this.onChange()
     },
     },
+    onPopupClose() {
+      this.startSyncValue()
+    },
     onChange() {
     onChange() {
       const value = this.getState()
       const value = this.getState()
       // if (this.debug) {
       // if (this.debug) {