ソースを参照

fix implement

Dreamacro 8 年 前
コミット
b86fc3e13c
1 ファイル変更1 行追加1 行削除
  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');
       }
     },