Browse Source

fix(popup): update hide animation

suzigang 3 years ago
parent
commit
24e1e7498a
2 changed files with 1 additions and 6 deletions
  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);
         emit('update:visible', true);
         state.zIndex = ++_zIndex;
         state.zIndex = ++_zIndex;
         if (props.destroyOnClose) {
         if (props.destroyOnClose) {
-          setTimeout(() => {
-            state.showSlot = true;
-          }, +props.duration * 1000);
+          state.showSlot = true;
         }
         }
         emit('open');
         emit('open');
       };
       };

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

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