Files
kangyuan-mobile/sheep/ui/su-status-bar/su-status-bar.vue
T
2026-05-26 15:52:30 +08:00

25 lines
485 B
Vue

<!-- 自定义状态栏 -->
<template>
<view class="status" :style="{ height: statusBarHeight, background: props.color }"></view>
</template>
<script setup>
import sheep from '@/sheep';
const statusBarHeight = sheep.$platform.device.statusBarHeight + 'px';
const props = defineProps({
color: {
type: String,
default: '#ffffff',
},
});
</script>
<style lang="scss">
.status {
width: 100%;
}
.uni-status-bar {
// width: 750rpx;
}
</style>