[bugfix] Tab: incorrect height when use animated prop

This commit is contained in:
陈嘉涵
2019-05-11 11:39:31 +08:00
parent 36f2b956f1
commit 1158a31cb1
6 changed files with 52 additions and 44 deletions

View File

@@ -91,9 +91,7 @@
</demo-block>
<demo-block :title="$t('title8')">
<van-tabs
animated
>
<van-tabs animated>
<van-tab
:title="$t('tab') + index"
v-for="index in tabs"
@@ -186,32 +184,12 @@ export default {
}
.van-tab__pane {
padding: 20px;
padding: 25px 20px;
background-color: @white;
}
.van-tabs--card .van-tab__pane {
background-color: transparent;
}
.custom-tabwrap .van-tab-active {
color: #20a0ff;
}
.custom-tabwrap .van-tabs-nav-bar {
background: #20a0ff;
}
.custom-pane {
height: 50px;
line-height: 50px;
text-align: center;
}
.van-doc-demo-block:last-child {
.van-tab__pane {
padding: 50px 20px;
}
}
}
</style>