抖音c端
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

8 lines
440 B

  1. <view class="tab-bar" tt:if="{{list.length!=0}}">
  2. <view class="tab-bar-border"></view>
  3. <view tt:for="{{list}}" tt:key="index" class="tab-bar-item" data-path="{{item.pagePath}}" data-index="{{index}}" bindtap="navigateTo">
  4. <image src="{{selected === index ? item.selectedIconPath : item.iconPath}}"></image>
  5. <view style="color: {{selected === index ? selectedColor : color}}">{{item.text}}</view>
  6. </view>
  7. </view>