Skip to content

Commit f001e31

Browse files
committed
wip(x): 支持设置 statusBarHeight
1 parent 94edbff commit f001e31

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/uni-mp-vue/src/plugin.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ function getStatusBarHeight() {
1414
} else if (typeof my !== 'undefined') {
1515
// @ts-expect-error
1616
return my.getWindowInfo().statusBarHeight
17+
} else if (typeof tt !== 'undefined') {
18+
return tt.getSystemInfoSync().statusBarHeight
19+
} else if (typeof xhs !== 'undefined') {
20+
return xhs.getSystemInfoSync().statusBarHeight
1721
}
1822
}
1923
// #endif

0 commit comments

Comments
 (0)