Skip to content

Commit 924dabc

Browse files
committed
fix(TabBar): 修复 IOS 上安全区域适配的问题
close #1293,#1289
1 parent b3fc455 commit 924dabc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/tab-bar/index.less

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@import "../../config/styles/_mixins.less";
2+
13
// 红点颜色
24
@red-dot-color: #ff474b;
35
@component: lu-tab-bar;
@@ -15,12 +17,14 @@
1517
background-color: white;
1618
background-size: 100% 100%;
1719
background-repeat: no-repeat;
20+
.safe-area-inset-bottom();
1821
}
1922

2023
.@{component}__item-wrapper {
2124
display: flex;
2225
height: 100%;
2326
justify-content: center;
27+
.safe-area-inset-bottom();
2428
}
2529

2630
.@{component}__item-container {

0 commit comments

Comments
 (0)