<template>
<view class="tabbar-container">
<block>
<view class="tabbar-item" v-for="(item, index) in tabbarList"
:class="[item.centerItem ? ' center-item' : '']" @click="changeItem(item)">
<view class="item-top">
<image :class="item.id ==2 ?'':'imgs'" :src="currentItem == item.id ? item.selectIcon : item.icon">
</image>
</view>
<view class="item-bottom" :class="[currentItem == item.id ? 'item-active' : '']">
<text>{
{ item.text }}</text>
</view>
</view>
</block>
</view>
<
小程序自定义底部圆形凸起导航栏
最新推荐文章于 2024-05-28 00:15:00 发布