mirror of
https://github.com/youzan/vant.git
synced 2025-10-20 10:44:59 +00:00
[improvement] Tab: optimize animated tab (#2302)
This commit is contained in:
@@ -93,14 +93,13 @@
|
||||
<demo-block :title="$t('title8')">
|
||||
<van-tabs
|
||||
animated
|
||||
class="animated-tabs"
|
||||
>
|
||||
<van-tab
|
||||
:title="$t('tab') + index"
|
||||
v-for="index in tabs"
|
||||
:key="index"
|
||||
>
|
||||
<div class="custom-content-wrap">{{ $t('content') }} {{ index }}</div>
|
||||
{{ $t('content') }} {{ index }}
|
||||
</van-tab>
|
||||
</van-tabs>
|
||||
</demo-block>
|
||||
@@ -214,16 +213,5 @@ export default {
|
||||
padding: 50px 20px;
|
||||
}
|
||||
}
|
||||
|
||||
.animated-tabs {
|
||||
.van-tab__pane {
|
||||
padding: 0 20px;
|
||||
}
|
||||
}
|
||||
|
||||
.custom-content-wrap {
|
||||
height: 60px;
|
||||
line-height: 60px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
Reference in New Issue
Block a user