Skip to content

Commit

Permalink
fix(Tabs): fixed the problem of not being able to scroll under skyline
Browse files Browse the repository at this point in the history
  • Loading branch information
anlyyao committed Oct 10, 2024
1 parent fcfec5a commit e29268a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/tabs/tabs.less
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/tabs/tabs.wxml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
type="list"
bind:scroll="onScroll"
>
<view class="{{_.cls(classPrefix + '__nav', [placement])}}" aria-role="tablist">
<view class="{{_.cls(classPrefix + '__nav', [placement, ['evenly', spaceEvenly]])}}" aria-role="tablist">
<view
wx:for="{{tabs}}"
wx:key="index"
Expand Down

0 comments on commit e29268a

Please sign in to comment.