index.wxml 773 B

1234567891011121314
  1. <view class="l-form-item-class form-item-container {{'label-' + labelPlacement}} {{tipType === 'text' ? 'textHeight': ''}}">
  2. <view class="l-form-label-class label-text {{isRequired ? 'label-text-required': ''}} {{'label-text-' + labelPlacement+ '-' + alignItems}}" style="min-width: {{labelPlacement==='row' ? labelWidth : '100%'}};max-width: {{labelPlacement==='row' ? labelWidth : '100%'}}">
  3. <view wx:if="{{labelSlot}}">
  4. <slot name="label"/>
  5. </view>
  6. <view wx:else>
  7. {{label}}
  8. </view>
  9. </view>
  10. <view class="label-content l-form-content-class">
  11. <slot/>
  12. </view>
  13. <l-error-tip class="error-text" l-error-text-class="l-error-text-class" errorText="{{errorText}}" wx:if="{{errorText}}"/>
  14. </view>