u-form-item.wxml 1.7 KB
<view class="{{['u-form-item','data-v-006449ec',(elBorderBottom)?'u-border-bottom':'',($root.m0)?'u-form-item__border-bottom--error':'']}}"><view class="u-form-item__body data-v-006449ec" style="{{'flex-direction:'+(elLabelPosition=='left'?'row':'column')+';'}}"><view class="u-form-item--left data-v-006449ec" style="{{'width:'+(uLabelWidth)+';'+('flex:'+('0 0 '+uLabelWidth)+';')+('margin-bottom:'+(elLabelPosition=='left'?0:'10rpx')+';')}}"><block wx:if="{{required||leftIcon||label}}"><view class="u-form-item--left__content data-v-006449ec"><block wx:if="{{required}}"><text class="u-form-item--left__content--required data-v-006449ec">*</text></block><block wx:if="{{leftIcon}}"><view class="u-form-item--left__content__icon data-v-006449ec"><u-icon vue-id="0c23f188-1" name="{{leftIcon}}" custom-style="{{leftIconStyle}}" class="data-v-006449ec" bind:__l="__l"></u-icon></view></block><view class="u-form-item--left__content__label data-v-006449ec" style="{{$root.s0}}">{{''+label+''}}</view></view></block></view><view class="u-form-item--right u-flex data-v-006449ec"><view class="u-form-item--right__content data-v-006449ec"><view class="u-form-item--right__content__slot  data-v-006449ec"><slot></slot></view><block wx:if="{{$slots.right||rightIcon}}"><view class="u-form-item--right__content__icon u-flex data-v-006449ec"><block wx:if="{{rightIcon}}"><u-icon vue-id="0c23f188-2" custom-style="{{rightIconStyle}}" name="{{rightIcon}}" class="data-v-006449ec" bind:__l="__l"></u-icon></block><slot name="right"></slot></view></block></view></view></view><block wx:if="{{$root.m1}}"><view class="u-form-item__message data-v-006449ec" style="{{'padding-left:'+(elLabelPosition=='left'?$root.g0:'0')+';'}}">{{validateMessage}}</view></block></view>