feat: fly-navbar 图标加圆形背景色

This commit is contained in:
Burt
2024-01-09 09:23:25 +08:00
parent 2878a4fe22
commit e6253d84fd
2 changed files with 17 additions and 3 deletions

View File

@@ -1,6 +1,10 @@
<template>
<fly-navbar />
<view class="m-4"> 需要设置页面 "navigationStyle": "custom" </view>
<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>
<route lang="json5">
@@ -8,3 +12,8 @@
style: { navigationStyle: 'custom' },
}
</route>
<script lang="ts" setup>
// 获取屏幕边界到安全区域距离
const { safeAreaInsets } = uni.getSystemInfoSync()
</script>