Przeglądaj źródła

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

cuiyalong 1 rok temu
rodzic
commit
6a0e16c336

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

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