Browse Source

fix: destroyOnClose失效修复

杨凯旋 5 years ago
parent
commit
79b4fd9305
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/packages/popup/popup.vue

+ 2 - 2
src/packages/popup/popup.vue

@@ -131,7 +131,7 @@ export default {
       if (this.opened) {
         return;
       }
-      if(this.closeOnClickOverlay){
+      if(this.destroyOnClose){
         this.showSlot = true;
       }
       this.opened = true;
@@ -207,7 +207,7 @@ export default {
           document.body.classList.remove('nut-overflow-hidden');
         }
       } 
-      if(this.closeOnClickOverlay){
+      if(this.destroyOnClose){
         setTimeout(()=>{
           this.showSlot = false;
         },this.duration*1000)