input.wxml 928B

12345678910111213141516171819202122232425262728
  1. <input
  2. class="{{ utils.bem('field__control', [inputAlign, { disabled, error }]) }} input-class"
  3. type="{{ type }}"
  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 }) }}"
  13. confirm-type="{{ confirmType }}"
  14. confirm-hold="{{ confirmHold }}"
  15. hold-keyboard="{{ holdKeyboard }}"
  16. cursor-spacing="{{ cursorSpacing }}"
  17. adjust-position="{{ adjustPosition }}"
  18. selection-end="{{ selectionEnd }}"
  19. selection-start="{{ selectionStart }}"
  20. password="{{ password || type === 'password' }}"
  21. bindinput="onInput"
  22. bindtap="onClickInput"
  23. bindblur="onBlur"
  24. bindfocus="onFocus"
  25. bindconfirm="onConfirm"
  26. bindkeyboardheightchange="onKeyboardHeightChange"
  27. />