Parcourir la source

fix implement

Dreamacro il y a 8 ans
Parent
commit
b86fc3e13c
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      packages/date-picker/src/panel/date.vue

+ 1 - 1
packages/date-picker/src/panel/date.vue

@@ -345,7 +345,7 @@
       },
 
       afterLeave() {
-        this.$refs.timepicker.handleConfirm();
+        this.$refs.timepicker && this.$refs.timepicker.$emit('pick');
         this.$emit('dodestroy');
       }
     },