项目初始化
This commit is contained in:
16
sheep/ui/su-status-bar/su-status-bar.vue
Normal file
16
sheep/ui/su-status-bar/su-status-bar.vue
Normal file
@@ -0,0 +1,16 @@
|
||||
<!-- 自定义状态栏 -->
|
||||
<template>
|
||||
<view :style="{ height: statusBarHeight }" class="uni-status-bar"><slot /></view>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import sheep from '@/sheep';
|
||||
|
||||
const statusBarHeight = sheep.$platform.device.statusBarHeight + 'px';
|
||||
</script>
|
||||
<style lang="scss">
|
||||
.uni-status-bar {
|
||||
// width: 750rpx;
|
||||
height: var(--status-bar-height);
|
||||
}
|
||||
</style>
|
Reference in New Issue
Block a user