riku
2024-08-12 65124213af664a68ad88ce7f6dcb133116d7702f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<view class="filter-item {{customClass}}" bind:tap="handleSort">
  <text style="color: {{sorts !== '' ? textColor : '' }}">{{text}}</text>
  <view class="filter-sort">
    <t-icon
      prefix="wr"
      name="arrow_drop_up"
      size="18rpx"
      style="color:{{sorts === 'asc' ? iconColor : '#bbb'}}"
    />
    <t-icon
      prefix="wr"
      name="arrow_drop_down"
      size="18rpx"
      style="color:{{sorts === 'desc' ? iconColor : '#bbb'}}"
    />
  </view>
</view>