Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
manulife-weapp
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
hookehuyr
2026-01-30 21:04:06 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
2e29a1c118ef8cbe10f7d7cfaff417b54571431e
2e29a1c1
1 parent
99ff6968
refactor(TabBar): 格式化模板代码并调整注释结构
将模板中的长属性拆分为多行以提升可读性 调整 handleTabClick 函数内的注释格式,使其更清晰
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
17 deletions
src/components/TabBar.vue
src/components/TabBar.vue
View file @
2e29a1c
<!--
* @Date: 2026-01-29 20:33:23
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2026-01-30 2
0:13:36
* @LastEditTime: 2026-01-30 2
1:03:18
* @FilePath: /manulife-weapp/src/components/TabBar.vue
* @Description: 通用底部导航栏组件,用于页面底部固定导航栏,展示页面标题。
-->
<template>
<view class="fixed bottom-0 left-0 w-full bg-white shadow-[0_-4rpx_16rpx_rgba(0,0,0,0.05)] pb-[env(safe-area-inset-bottom)] z-50">
<view class="flex items-center justify-around py-[32rpx]">
<view
class="flex-1 flex flex-col items-center justify-center"
v-for="(item, index) in tabs"
:key="index"
@tap="handleTabClick(item)"
>
<IconFont
:name="item.icon"
:class="[current === item.key ? 'text-blue-600' : 'text-gray-400']"
size="24"
/>
<text
class="text-[20rpx] mt-[8rpx]"
:class="[current === item.key ? 'text-blue-600' : 'text-gray-400']"
>{{ item.label }}</text>
class="fixed bottom-0 left-0 w-full bg-white shadow-[0_-4rpx_16rpx_rgba(0,0,0,0.05)] pb-[env(safe-area-inset-bottom)] z-50">
<view class="flex items-center justify-around py-[32rpx]">
<view class="flex-1 flex flex-col items-center justify-center" v-for="(item, index) in tabs" :key="index"
@tap="handleTabClick(item)">
<IconFont :name="item.icon" :class="[current === item.key ? 'text-blue-600' : 'text-gray-400']" size="24" />
<text class="text-[20rpx] mt-[8rpx]" :class="[current === item.key ? 'text-blue-600' : 'text-gray-400']">{{
item.label }}</text>
</view>
</view>
</view>
...
...
Please
register
or
login
to post a comment