textarea.wxml 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. <wxs src="../wxs/utils.wxs" module="utils" />
  2. <wxs src="./index.wxs" module="computed" />
  3. <textarea
  4. id="{{ name }}"
  5. class="{{ utils.bem('field__control', [inputAlign, type, { disabled, error }]) }} input-class"
  6. fixed="{{ fixed }}"
  7. focus="{{ focus }}"
  8. cursor="{{ cursor }}"
  9. value="{{ innerValue }}"
  10. auto-focus="{{ autoFocus }}"
  11. disabled="{{ disabled || readonly }}"
  12. maxlength="{{ maxlength }}"
  13. placeholder="{{ placeholder }}"
  14. placeholder-style="{{ placeholderStyle }}"
  15. placeholder-class="{{ utils.bem('field__placeholder', { error, disabled }) }}"
  16. auto-height="{{ !!autosize }}"
  17. style="{{ computed.inputStyle(autosize) }}"
  18. cursor-spacing="{{ cursorSpacing }}"
  19. adjust-position="{{ adjustPosition }}"
  20. show-confirm-bar="{{ showConfirmBar }}"
  21. hold-keyboard="{{ holdKeyboard }}"
  22. selection-end="{{ selectionEnd }}"
  23. selection-start="{{ selectionStart }}"
  24. disable-default-padding="{{ disableDefaultPadding }}"
  25. bindinput="onInput"
  26. bindtap="onClickInput"
  27. bindblur="onBlur"
  28. bindfocus="onFocus"
  29. bindconfirm="onConfirm"
  30. bindlinechange="onLineChange"
  31. bindkeyboardheightchange="onKeyboardHeightChange"
  32. />