Skip to content

Commit 5684874

Browse files
authored
fix(tabbar):自定义tabbar后,h5 页面没有高度样式导致空白 (#17857)
1 parent 5fd52a3 commit 5684874

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

packages/taro-router/src/style.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,12 @@ ${
5555
}
5656
${
5757
enableTabBar ? `
58+
.taro-tabbar__container {
59+
height:100%;
60+
}
61+
.taro-tabbar__panel {
62+
height: 100%;
63+
}
5864
.taro-tabbar__container > .taro-tabbar__panel {
5965
overflow: hidden;
6066
}
@@ -75,7 +81,7 @@ ${
7581
.taro_router > .taro_page.taro_page_show.taro_page_stationed:not(.taro_page_shade):not(.taro_tabbar_page):not(:last-child) {
7682
display: none;
7783
}`
78-
}
84+
}
7985
`
8086
addStyle(css)
8187
}

0 commit comments

Comments
 (0)