Files
xo_user_client/components/status-bar-height/status-bar-height.vue
2025-04-25 09:49:53 +08:00

27 lines
631 B
Vue

<template>
<view :class="theme_view">
<view :style="{ height: statusBarHeight }" class="status-bar-height"></view>
</view>
</template>
<script>
const app = getApp();
export default {
data() {
return {
theme_view: app.globalData.get_theme_value_view(),
statusBarHeight: 20
};
},
components: {},
props: {},
mounted() {
this.statusBarHeight = uni.getSystemInfoSync().statusBarHeight + 'px';
},
methods: {}
};
</script>
<style>
.status-bar-height {
height: 20px;
}
</style>