123456789101112131415161718192021222324252627282930313233 |
- <view bindtap="handleTap" class="i-class i-cell {{ isLastCell ? 'i-cell-last' : '' }} {{ isLink ? 'i-cell-access' : '' }}">
- <view class="i-cell-icon">
- <slot name="icon"></slot>
- </view>
- <block wx:if="{{text}}">
- <view class="i-cell-bd">
- <view wx:if="{{ title }}" class="i-cell-text">{{ title }}</view>
- <view wx:if="{{ text.length>18 }}" class="i-cell-desc">{{ text }}</view>
- <slot></slot>
- </view>
- <view catchtap="navigateTo" class="i-cell-ft">
- <block wx:if="{{text.length<=18}}">{{ text }}</block>
- <block wx:else>
- <slot name="footer"></slot>
- </block>
- </view>
- </block>
- <block wx:else>
- <view class="i-cell-bd">
- <view wx:if="{{ title }}" class="i-cell-text">{{ title }}</view>
- <view wx:if="{{ label }}" class="i-cell-desc">{{ label }}</view>
- <slot></slot>
- </view>
- <view catchtap="navigateTo" class="i-cell-ft">
- <block wx:if="{{value}}">{{ value }}</block>
- <block wx:else>
- <slot name="footer"></slot>
- </block>
- </view>
- </block>
-
- </view>
|