textarea.wxml 1.0KB

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