index.axml 1.3 KB

12345678910111213141516171819202122232425262728293031323334
  1. <view
  2. class="ant-textarea {{ disabled ? 'ant-textarea-disabled' : '' }} {{ className ? className : '' }} {{ selfFocus ? (focusClassName ? focusClassName : '') : '' }}"
  3. style="{{ style || '' }};{{ focusStyle || '' }}">
  4. <view class="ant-textarea-line">
  5. <textarea
  6. enableNative="{{ enableNative }}"
  7. name="{{ name }}"
  8. class="ant-textarea-content"
  9. disabled="{{ disabled }}"
  10. value="{{ state.value || '' }}"
  11. placeholder="{{ placeholder }}"
  12. placeholder-class="ant-textarea-placeholder {{ placeholderClassName ? placeholderClassName : '' }}"
  13. placeholder-style="{{ placeholderStyle ? placeholderStyle : '' }}"
  14. maxlength="{{ maxLength }}"
  15. focus="{{ focus }}"
  16. confirm-type="{{ confirmType }}"
  17. confirm-hold="{{ confirmHold }}"
  18. auto-height="{{ autoHeight }}"
  19. show-count="{{ showCount }}"
  20. controlled="{{ state.controlled }}"
  21. onInput="onChange"
  22. onConfirm="onConfirm"
  23. onFocus="onFocus"
  24. onBlur="onBlur" />
  25. <view
  26. a:if="{{ allowClear }}"
  27. class="ant-textarea-clear {{ state.value && state.value.length > 0 ? 'ant-textarea-clear-show' : 'ant-textarea-clear-hidden' }}"
  28. onTap="onClear">
  29. <icon
  30. className="ant-textarea-clear-icon"
  31. type="CloseCircleFill" />
  32. </view>
  33. </view>
  34. </view>