diff --git a/src/tabs/tabs.less b/src/tabs/tabs.less index b9645962f..7e6b66630 100644 --- a/src/tabs/tabs.less +++ b/src/tabs/tabs.less @@ -172,12 +172,15 @@ &__nav { position: relative; user-select: none; - width: 100%; display: flex; flex-wrap: nowrap; align-items: center; } + &__nav&__nav--evenly { + width: 100%; + } + &__track { position: absolute; font-weight: 600; diff --git a/src/tabs/tabs.wxml b/src/tabs/tabs.wxml index aaad21320..9008e9bd8 100644 --- a/src/tabs/tabs.wxml +++ b/src/tabs/tabs.wxml @@ -26,7 +26,7 @@ type="list" bind:scroll="onScroll" > - +