Skip to content

Commit

Permalink
Merge pull request #837 from Tencent/fix/tabs
Browse files Browse the repository at this point in the history
fix(Tabs): vertical content click event invalid
  • Loading branch information
LeeJim authored Sep 5, 2022
2 parents b8a273d + 1673ce4 commit 26eaeff
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/tabs/__test__/__snapshots__/index.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ exports[`tabs :base 1`] = `
container=""
disabled="{{false}}"
offsetTop=""
tClass="t-tabs__sticky"
zIndex="{{2}}"
bind:scroll="onTouchScroll"
>
Expand Down
4 changes: 4 additions & 0 deletions src/tabs/tabs.less
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,10 @@ page {

&.@{prefix}-tabs--left,
&.@{prefix}-tabs--right {
.@{prefix}-tabs__sticky {
width: @tab-item-width--vertical;
}

.@{prefix}-tabs__content-inner {
position: relative;
width: 100%;
Expand Down
1 change: 1 addition & 0 deletions src/tabs/tabs.wxml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

<view class="{{classPrefix}} {{classPrefix}}--{{placement}} {{prefix}}-class">
<t-sticky
t-class="{{classPrefix}}__sticky"
disabled="{{ !sticky }}"
z-index="{{ stickyProps.zIndex || '1' }}"
offset-top="{{ stickyProps.offsetTop }}"
Expand Down

0 comments on commit 26eaeff

Please sign in to comment.