Dreamacro 8 anni fa
parent
commit
b86fc3e13c
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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');
       }
     },