This commit is contained in:
ChuXun
2025-10-19 20:28:31 +08:00
parent c81f8a8b03
commit eaab9a762a
100 changed files with 23416 additions and 0 deletions

23
custom-tab-bar/index.wxml Normal file
View File

@@ -0,0 +1,23 @@
<view class="tab-bar">
<view
wx:for="{{list}}"
wx:key="index"
class="tab-item {{selected === index ? 'active' : ''}}"
data-path="{{item.pagePath}}"
data-index="{{index}}"
bindtap="switchTab"
>
<!-- Emoji图标 -->
<view class="tab-emoji {{selected === index ? 'emoji-bounce' : ''}}">
{{item.emoji}}
</view>
<!-- 文字标签 -->
<view class="tab-text" style="color: {{selected === index ? selectedColor : color}}">
{{item.text}}
</view>
<!-- 选中指示器 -->
<view class="tab-indicator" wx:if="{{selected === index}}"></view>
</view>
</view>