Skip to content

Commit 2f71f26

Browse files
committed
update(uni-ui): 修复uni-fab在tabbar页面位置不正确的Bug
1 parent 3459512 commit 2f71f26

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

components/uni-fab/uni-fab.vue

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,9 @@
225225
.uni-fab--leftBottom {
226226
left: 5px;
227227
bottom: 20px;
228+
/* #ifdef H5 */
229+
bottom: calc(20px + var(--window-bottom));
230+
/* #endif */
228231
padding: 10px;
229232
}
230233
@@ -240,6 +243,9 @@
240243
.uni-fab--rightBottom {
241244
right: 5px;
242245
bottom: 20px;
246+
/* #ifdef H5 */
247+
bottom: calc(20px + var(--window-bottom));
248+
/* #endif */
243249
padding: 10px;
244250
}
245251
@@ -269,6 +275,9 @@
269275
.uni-fab__circle--leftBottom {
270276
left: 15px;
271277
bottom: 30px;
278+
/* #ifdef H5 */
279+
bottom: calc(30px + var(--window-bottom));
280+
/* #endif */
272281
}
273282
274283
.uni-fab__circle--leftTop {
@@ -282,6 +291,9 @@
282291
.uni-fab__circle--rightBottom {
283292
right: 15px;
284293
bottom: 30px;
294+
/* #ifdef H5 */
295+
bottom: calc(30px + var(--window-bottom));
296+
/* #endif */
285297
}
286298
287299
.uni-fab__circle--rightTop {

0 commit comments

Comments
 (0)