parent
ad4558fba3
commit
8607307e17
2 changed files with 4 additions and 2 deletions
|
@ -967,7 +967,9 @@
|
||||||
|
|
||||||
this.$on('on-visible-change', (val) => {
|
this.$on('on-visible-change', (val) => {
|
||||||
if (val) {
|
if (val) {
|
||||||
this.handleResize();
|
this.$nextTick(()=>{
|
||||||
|
this.handleResize();
|
||||||
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<div :class="prefixCls" v-if="show" :style="contentStyle"><slot></slot></div>
|
<div :class="prefixCls" v-show="show" :style="contentStyle"><slot></slot></div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
const prefixCls = 'ivu-tabs-tabpane';
|
const prefixCls = 'ivu-tabs-tabpane';
|
||||||
|
|
Loading…
Add table
Reference in a new issue