Commit 6a9b83c451c4126d6a687f794d68ac1a37ee09f4

Authored by Aresn
2 parents 5c2f982e cafa4e04

Merge branch '2.0' of https://github.com/iview/iview into 2.0

Showing 1 changed file with 4 additions and 1 deletions   Show diff stats
src/components/modal/modal.vue
@@ -4,7 +4,7 @@ @@ -4,7 +4,7 @@
4 <div :class="maskClasses" v-show="visible" @click="mask"></div> 4 <div :class="maskClasses" v-show="visible" @click="mask"></div>
5 </transition> 5 </transition>
6 <div :class="wrapClasses" @click="handleWrapClick"> 6 <div :class="wrapClasses" @click="handleWrapClick">
7 - <transition :name="transitionNames[0]"> 7 + <transition :name="transitionNames[0]" @after-leave="animationFinish">
8 <div :class="classes" :style="mainStyles" v-show="visible"> 8 <div :class="classes" :style="mainStyles" v-show="visible">
9 <div :class="[prefixCls + '-content']"> 9 <div :class="[prefixCls + '-content']">
10 <a :class="[prefixCls + '-close']" v-if="closable" @click="close"> 10 <a :class="[prefixCls + '-close']" v-if="closable" @click="close">
@@ -208,6 +208,9 @@ @@ -208,6 +208,9 @@
208 removeScrollEffect() { 208 removeScrollEffect() {
209 document.body.style.overflow = ''; 209 document.body.style.overflow = '';
210 this.resetScrollBar(); 210 this.resetScrollBar();
  211 + },
  212 + animationFinish() {
  213 + this.$emit('on-hidden');
211 } 214 }
212 }, 215 },
213 mounted () { 216 mounted () {