u-cell-item.wxml
1.6 KB
<view class="{{['u-cell','data-v-65423b64',(borderBottom)?'u-border-bottom':'',(borderTop)?'u-border-top':'',(center)?'u-col-center':'',(required)?'u-cell--required':'']}}" style="{{'background-color:'+(bgColor)+';'}}" hover-stay-time="150" hover-class="{{hoverClass}}" data-event-opts="{{[['tap',[['click',['$event']]]]]}}" bindtap="__e"><block wx:if="{{icon}}"><u-icon class="u-cell__left-icon-wrap data-v-65423b64" vue-id="43042f10-1" size="{{iconSize}}" name="{{icon}}" custom-style="{{iconStyle}}" bind:__l="__l"></u-icon></block><block wx:else><view class="u-flex data-v-65423b64"><slot name="icon"></slot></view></block><view class="u-cell_title data-v-65423b64" style="{{$root.s0}}"><block wx:if="{{title!==''}}"><block class="data-v-65423b64">{{title}}</block></block><block wx:else><slot name="title"></slot></block><block wx:if="{{label||$slots.label}}"><view class="u-cell__label data-v-65423b64" style="{{$root.s1}}"><block wx:if="{{label!==''}}"><block class="data-v-65423b64">{{label}}</block></block><block wx:else><slot name="label"></slot></block></view></block></view><view class="u-cell__value data-v-65423b64" style="{{$root.s2}}"><block wx:if="{{value!==''}}"><block class="u-cell__value data-v-65423b64">{{value}}</block></block><block wx:else><slot></slot></block></view><block wx:if="{{$slots['right-icon']}}"><view class="u-flex u-cell_right data-v-65423b64"><slot name="right-icon"></slot></view></block><block wx:if="{{arrow}}"><u-icon class="u-icon-wrap u-cell__right-icon-wrap data-v-65423b64" style="{{$root.s3}}" vue-id="43042f10-2" name="arrow-right" bind:__l="__l"></u-icon></block></view>