ソースを参照

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) {
         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)