This commit is contained in:
mo.duan 2019-09-12 13:48:44 +08:00
parent ad4558fba3
commit 8607307e17
2 changed files with 4 additions and 2 deletions

View file

@ -967,7 +967,9 @@
this.$on('on-visible-change', (val) => {
if (val) {
this.handleResize();
this.$nextTick(()=>{
this.handleResize();
});
}
});
},

View file

@ -1,5 +1,5 @@
<template>
<div :class="prefixCls" v-if="show" :style="contentStyle"><slot></slot></div>
<div :class="prefixCls" v-show="show" :style="contentStyle"><slot></slot></div>
</template>
<script>
const prefixCls = 'ivu-tabs-tabpane';