清怨
清怨
  • 发布:2025-07-29 11:31
  • 更新:2025-07-29 11:31
  • 阅读:92

nvue元素动态类名

分类:uni-app x
<view class="tab-item" v-for="(item,index) in tabs" :key="index" class="{active:index == current ? true : false}"> <text class="tab-item-wrapper">
<text class="text">{{index == current}}{{index}}{{current}}</text>
<text class="slider" v-if="index == current"></text>
</text>
</view>

值能变,安卓类名改不过来,我真服了,社区一查很多人遇到这个问题,就是不修复,去他么的再也不用nvue了,真的服了,到处都是坑

2025-07-29 11:31 负责人:无 分享
已邀请:

要回复问题请先登录注册