浏览代码

fix(popup): update hide animation

suzigang 3 年之前
父节点
当前提交
24e1e7498a
共有 2 个文件被更改,包括 1 次插入6 次删除
  1. 1 3
      src/packages/__VUE/popup/common.ts
  2. 0 3
      src/packages/__VUE/popup/index.scss

+ 1 - 3
src/packages/__VUE/popup/common.ts

@@ -57,9 +57,7 @@ export const component = (componentName: string) => {
         emit('update:visible', true);
         state.zIndex = ++_zIndex;
         if (props.destroyOnClose) {
-          setTimeout(() => {
-            state.showSlot = true;
-          }, +props.duration * 1000);
+          state.showSlot = true;
         }
         emit('open');
       };

+ 0 - 3
src/packages/__VUE/popup/index.scss

@@ -96,9 +96,6 @@
   overflow-y: auto;
   background-color: $white;
   -webkit-overflow-scrolling: touch;
-  .nut-popup__content-wrapper {
-    height: 100%;
-  }
   &__close-icon {
     position: absolute !important;
     z-index: 1;