Skip to content

Commit a932306

Browse files
authored
fix(tabs): remove scroll bar (#1844)
1 parent 9e97c39 commit a932306

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/tabs/tabs.less

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,10 @@
199199
}
200200

201201
&__scroll {
202+
&::-webkit-scrollbar {
203+
display: none;
204+
}
205+
202206
&--top,
203207
&--bottom {
204208
height: @tab-item-height;

src/tabs/tabs.wxml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,13 @@
1515
<view class="{{_.cls(classPrefix + '__wrapper', [theme])}}">
1616
<scroll-view
1717
class="{{_.cls(classPrefix + '__scroll', [placement])}}"
18+
enhanced
1819
enable-flex
1920
scroll-left="{{offset}}"
2021
scroll-x="{{isScrollX}}"
2122
scroll-y="{{isScrollY}}"
2223
scroll-with-animation
24+
show-scrollbar="{{false}}"
2325
>
2426
<view class="{{_.cls(classPrefix + '__nav', [placement])}}" aria-role="tablist">
2527
<view

0 commit comments

Comments
 (0)