refactor(tab): update nav padding

This commit is contained in:
zhongnan 2020-07-31 12:21:58 +08:00 committed by neverland
parent 6635eba0a9
commit 8027f46f3f
2 changed files with 6 additions and 3 deletions

View File

@ -406,7 +406,7 @@ export default createComponent({
<div
ref="nav"
role="tablist"
class={bem('nav', [type])}
class={bem('nav', [type, { complete: !ellipsis }])}
style={this.navStyle}
>
{this.slots('nav-left')}

View File

@ -62,8 +62,6 @@
}
.van-tabs__nav {
padding-right: 8px;
padding-left: 8px;
overflow-x: auto;
overflow-y: hidden;
-webkit-overflow-scrolling: touch;
@ -71,6 +69,11 @@
&::-webkit-scrollbar {
display: none;
}
&--complete {
padding-right: 8px;
padding-left: 8px;
}
}
}
}