浏览代码

fix: destroyOnClose失效修复

杨凯旋 5 年之前
父节点
当前提交
79b4fd9305
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/packages/popup/popup.vue

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

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