2024-02-04 16:00:27 +08:00

20 lines
583 B
Vue
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<route lang="json5">
{
style: { navigationBarTitleText: '自定义导航栏', navigationStyle: 'custom' },
}
</route>
<template>
<fly-navbar />
<view class="bg-green-300 min-h-20" :style="{ paddingTop: safeAreaInsets?.top + 'px' }">
<view class="p-4"> 自定义导航栏设置"navigationStyle":"custom" </view>
<view class="p-4"> 通常页面顶部有一个图片或背景色 </view>
</view>
<fly-content :line="20" />
</template>
<script lang="ts" setup>
// 获取屏幕边界到安全区域距离
const { safeAreaInsets } = uni.getSystemInfoSync()
</script>