- 创建代码忽略文件列表 (.gitignore) - 设置代码格式化规则 (.prettierrc)- 添加各种样式文件,包括背景、边框、按钮、卡片等组件样式 - 创建暗黑主题样式文件 - 添加表单和代码样式文件
17 lines
379 B
Vue
17 lines
379 B
Vue
<!-- 自定义状态栏 -->
|
|
<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>
|