|
|
@@ -1,10 +1,9 @@
|
|
|
<!-- custom-tab-bar/index.vue -->
|
|
|
<template>
|
|
|
- <view class="custom-tab-bar" v-if="show">
|
|
|
- <view class="tab-bar-item" v-for="(item, index) in list" :key="index" @click="switchTab(item, index)">
|
|
|
- <text class="tab-text" :class="{ active: selectedIndex == index }">
|
|
|
- {{ item.text }}
|
|
|
- </text>
|
|
|
+ <view class="ezy-custom-tabbar" v-if="show">
|
|
|
+ <view class="tabbar-item-box" v-for="(item, index) in list" :key="index" @click="switchTab(item, index)">
|
|
|
+ <view class="tabbar-item" :style="{ backgroundImage: 'url(' + (selectedIndex == index ? item.selectedIconPath : item.iconPath) + ')' }">
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</template>
|