index.wxml 1011 B

12345678910111213141516171819202122232425262728
  1. <!-- input/input.wxml -->
  2. <label class='form-item {{disabled? "disabled": ""}}'>
  3. <view class='default-border {{border? "border": ""}} l-class'>
  4. <view class='mask' wx:if="{{disabled}}"></view>
  5. <!-- 小程序表单组件 -->
  6. <textarea
  7. class="textarea l-inner-class"
  8. type="{{type}}"
  9. value="{{ value }}"
  10. password="{{type==='password'}}"
  11. placeholder="{{placeholder}}"
  12. maxlength="{{maxlength}}"
  13. placeholder-class="pls-class"
  14. placeholder-style="{{placeholderStyle}}"
  15. disabled="{{disabled}}"
  16. focus="{{focus}}"
  17. auto-height="{{autoHeight}}"
  18. bindinput="handleInputChange"
  19. bindfocus="handleInputFocus"
  20. bindblur="handleInputBlur"
  21. bindconfirm="handleInputConfirm"
  22. />
  23. <view
  24. class="indicator"
  25. wx:if="{{indicator}}">{{value.length + '/' + maxlength}}</view>
  26. </view>
  27. </label>
  28. <l-error-tip l-error-text-class="l-error-text l-error-text-class" errorText="{{errorText}}" wx:if="{{errorText}}"/>