1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- <view
- class="ant-input {{ disabled ? 'ant-input-disabled' : '' }} {{ className ? className : '' }} {{ selfFocus ? (focusClassName ? focusClassName : '') : '' }}"
- style="{{ style || '' }};{{ focusStyle || '' }}">
- <view class="ant-input-prefix">
- <slot name="prefix">{{ prefix }}</slot>
- </view>
- <view class="ant-input-line">
- <input
- enableNative="{{ enableNative }}"
- name="{{ name }}"
- class="ant-input-content"
- disabled="{{ disabled }}"
- value="{{ state.value }}"
- type="{{ type }}"
- cursor-spacing="{{ cursorSpacing }}"
- always-embed="{{ alwaysEmbed }}"
- cursor-color="{{ cursorColor }}"
- adjust-position="{{ adjustPosition }}"
- hold-keyboard="{{ holdKeyboard }}"
- password="{{ password }}"
- placeholder="{{ placeholder }}"
- placeholder-class="ant-input-placeholder {{ placeholderClassName ? placeholderClassName : '' }}"
- placeholder-style="{{ placeholderStyle ? placeholderStyle : '' }}"
- maxlength="{{ maxLength }}"
- focus="{{ focus }}"
- confirm-type="{{ confirmType }}"
- confirm-hold="{{ confirmHold }}"
- always-system="{{ alwaysSystem }}"
- controlled="{{ state.controlled }}"
- cursor="{{ cursor }}"
- selection-start="{{ selectionStart }}"
- selection-end="{{ selectionEnd }}"
- random-number="{{ randomNumber }}"
- bindinput="onChange"
- bindconfirm="onConfirm"
- bindfocus="onFocus"
- bindblur="onBlur" />
- <view
- wx:if="{{ allowClear }}"
- class="ant-input-clear {{ state.value && state.value.length > 0 ? 'ant-input-clear-show' : 'ant-input-clear-hidden' }}"
- bind:tap="onClear">
- <icon
- className="ant-input-clear-icon"
- type="CloseCircleFill" />
- </view>
- </view>
- <view class="ant-input-suffix">
- <slot name="suffix">{{ suffix }}</slot>
- </view>
- </view>
|