mall-app-b/peach/components/p-status-bar/p-status-bar.vue

16 lines
364 B
Vue
Raw Permalink Normal View History

2024-04-30 17:45:03 +08:00
<!-- 自定义状态栏 -->
<template>
<view :style="{ height: statusBarHeight }" class="uni-status-bar"><slot /></view>
</template>
<script setup>
import peach from '@/peach'
const statusBarHeight = peach.$platform.device.statusBarHeight + 'px'
</script>
<style lang="scss">
.uni-status-bar {
height: var(--status-bar-height);
}
</style>