u-form-item.axml
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 a:if="{{required||leftIcon||label}}"><view class="u-form-item--left__content data-v-006449ec"><block a:if="{{required}}"><text class="u-form-item--left__content--required data-v-006449ec">*</text></block><block a:if="{{leftIcon}}"><view class="u-form-item--left__content__icon data-v-006449ec"><u-icon vue-id="0c37f1dc-1" name="{{leftIcon}}" custom-style="{{leftIconStyle}}" class="data-v-006449ec" onVueInit="__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 a:if="{{$slots.right||rightIcon}}"><view class="u-form-item--right__content__icon u-flex data-v-006449ec"><block a:if="{{rightIcon}}"><u-icon vue-id="0c37f1dc-2" custom-style="{{rightIconStyle}}" name="{{rightIcon}}" class="data-v-006449ec" onVueInit="__l"></u-icon></block><slot name="right"></slot></view></block></view></view></view><block a:if="{{$root.m1}}"><view class="u-form-item__message data-v-006449ec" style="{{'padding-left:'+(elLabelPosition=='left'?$root.g0:'0')+';'}}">{{validateMessage}}</view></block></view>