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.
25 lines
386 B
25 lines
386 B
2 years ago
|
<template>
|
||
|
<view :style="{ height: statusBarHeight }" class="uni-status-bar">
|
||
|
<slot />
|
||
|
</view>
|
||
|
</template>
|
||
|
|
||
|
<script>
|
||
|
export default {
|
||
|
name: 'UniStatusBar',
|
||
|
data() {
|
||
|
return {
|
||
|
statusBarHeight: 20
|
||
|
}
|
||
|
},
|
||
|
mounted() {
|
||
|
this.statusBarHeight = uni.getSystemInfoSync().statusBarHeight + 'px'
|
||
|
}
|
||
|
}
|
||
|
</script>
|
||
|
|
||
2 years ago
|
<style scoped>
|
||
2 years ago
|
.uni-status-bar {
|
||
|
height: 20px;
|
||
|
}
|
||
2 years ago
|
</style>
|