瀏覽代碼

'修改日期'

魏志佳 5 年之前
父節點
當前提交
6f543655b7
共有 1 個文件被更改,包括 6 次插入3 次删除
  1. 6 3
      src/components/DatePicker.vue

+ 6 - 3
src/components/DatePicker.vue

@@ -141,10 +141,13 @@ export default {
     },
     handleClose(e) {
         console.log(e)
-        if(!e.target.nodeType){
-            this.$parent.opendateClose()
-        }
+        // if(!e.target.nodeType){
+        //     this.$parent.opendateClose()
+        // }
             // this.$parent.opendateClose()
+            if(e.target.className.indexOf('ant-calendar')==-1){
+                this.$parent.opendateClose()
+            }
       
     },
     disabledDate(current) {