ソースを参照

Merge branch 'master' of http://39.106.184.70:3000/ctop/adsp-vue

zhuxinbo 5 年 前
コミット
c61970e4ce
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) {