index.wxml 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <view class="wux-class {{ classes.wrap }}">
  2. <view class="{{ classes.label }}" wx:if="{{ label }}">{{ label }}</view>
  3. <block wx:else>
  4. <slot></slot>
  5. </block>
  6. <view class="{{ classes.control }}">
  7. <input
  8. class="{{ classes.item }}"
  9. value="{{ inputValue }}"
  10. type="{{ type }}"
  11. password="{{ !internalVisible ? password : false }}"
  12. placeholder="{{ placeholder }}"
  13. placeholder-style="{{ internalPlaceholderStyle }}"
  14. placeholder-class="{{ placeholderClass }}"
  15. disabled="{{ disabled || readOnly }}"
  16. maxlength="{{ maxlength }}"
  17. cursor-spacing="{{ cursorSpacing }}"
  18. focus="{{ focus }}"
  19. confirm-type="{{ confirmType }}"
  20. always-embed="{{ alwaysEmbed }}"
  21. confirm-hold="{{ confirmHold }}"
  22. cursor="{{ cursor }}"
  23. selection-start="{{ selectionStart }}"
  24. selection-end="{{ selectionEnd }}"
  25. adjust-position="{{ adjustPosition }}"
  26. hold-keyboard="{{ holdKeyboard }}"
  27. safe-password-cert-path="{{ safePasswordCertPath }}"
  28. safe-password-length="{{ safePasswordLength }}"
  29. safe-password-time-stamp="{{ safePasswordTimeStamp }}"
  30. safe-password-nonce="{{ safePasswordNonce }}"
  31. safe-password-salt="{{ safePasswordSalt }}"
  32. safe-password-custom-hash="{{ safePasswordCustomHash }}"
  33. bindinput="onChange"
  34. bindfocus="onFocus"
  35. bindblur="onBlur"
  36. bindconfirm="onConfirm"
  37. bindkeyboardheightchange="onKeyboardHeightChange"
  38. bindnicknamereview="onNicknameReview"
  39. >
  40. <keyboard-accessory class="{{ classes.keyboardAccessory }}" style="max-height: 200px;">
  41. <slot name="keyboard-accessory"></slot>
  42. </keyboard-accessory>
  43. </input>
  44. </view>
  45. <view class="{{ classes.clear }}" bindtap="onClear" wx:if="{{ shouldShowClear }}">
  46. <icon type="clear" color="#B2B2B2" size="14" />
  47. </view>
  48. <view class="{{ classes.eye }}" bindtap="onInternalVisibleChange" wx:if="{{ password && visibilityToggle }}"></view>
  49. <view class="{{ classes.error }}" bindtap="onError" wx:if="{{ error }}">
  50. <icon type="warn" color="#ef473a" size="14" />
  51. </view>
  52. <view class="{{ classes.extra }}" wx:if="{{ extra }}">{{ extra }}</view>
  53. <block wx:else>
  54. <slot name="footer"></slot>
  55. </block>
  56. </view>