integrated_traffic_uniapp/node_modules/@dcloudio/uni-ui/lib/uni-nav-bar/uni-status-bar.vue

25 lines
404 B
Vue
Raw Normal View History

2024-02-06 15:39:22 +08:00
<template>
<view :style="{ height: statusBarHeight }" class="uni-status-bar">
<slot />
</view>
</template>
<script>
export default {
name: 'UniStatusBar',
data() {
return {
statusBarHeight: uni.getSystemInfoSync().statusBarHeight + 'px'
}
}
}
</script>
<style lang="scss" >
.uni-status-bar {
// width: 750rpx;
height: 20px;
// height: var(--status-bar-height);
}
</style>