You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
377 B
20 lines
377 B
<template>
|
|
<view class="x-status-bar" :style="xStatusBarStyle"></view>
|
|
</template>
|
|
|
|
<script setup>
|
|
const res = uni.getSystemInfoSync()
|
|
const statusBarHeight = ref(res.statusBarHeight)
|
|
|
|
const xStatusBarStyle = computed(() => {
|
|
return {
|
|
height: statusBarHeight.value
|
|
}
|
|
})
|
|
</script>
|
|
|
|
<style lang="scss">
|
|
.x-status-bar {
|
|
height: var(--status-bar-height);
|
|
}
|
|
</style>
|