Skip to content

Commit

Permalink
fix(cell): resolve right-icon not work
Browse files Browse the repository at this point in the history
  • Loading branch information
LeeJim committed Apr 2, 2022
1 parent 4f8e01f commit b33b032
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions src/cell/cell.wxml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,7 @@
bind:tap="onClick"
>
<view class="{{classPrefix}}__left {{prefix}}-class-left">
<image
wx:if="{{ image }}"
class="{{classPrefix}}__left-image t-class-image"
src="{{ image }}"
/>
<image wx:if="{{ image }}" class="{{classPrefix}}__left-image t-class-image" src="{{ image }}" />
<slot wx:else name="left-icon" />
</view>
<view class="{{classPrefix}}__title {{prefix}}-class-title">
Expand All @@ -22,9 +18,7 @@
</view>

<view class="{{classPrefix}}__description {{prefix}}-class-description">
<view wx:if="{{ description }}" class="{{classPrefix}}__description-text"
>{{description}}</view
>
<view wx:if="{{ description }}" class="{{classPrefix}}__description-text">{{description}}</view>
<slot wx:else name="description" />
</view>
</view>
Expand All @@ -36,6 +30,9 @@

<view class="{{classPrefix}}__right {{prefix}}-class-right">
<t-icon wx:if="{{ arrow }}" name="chevron-right" class="{{classPrefix}}__right-icon" />
<slot wx:else name="right-icon" />
<block wx:else>
<t-icon name="{{rightIcon}}" class="{{classPrefix}}__right-icon" />
<slot name="right-icon" />
</block>
</view>
</view>

0 comments on commit b33b032

Please sign in to comment.