| 123456789101112131415161718192021222324 |
- <van-field name="{{ name }}" value="{{ value }}" center="{{center}}" label="{{label}}" size="{{ size }}" type="{{ type }}" fixed="{{ fixed }} " focus="{{ focus }}" placeholder="{{placeholder}}" border="{{ border }}" disabled="{{ disabled }}" readonly="{{ readonly }}" clearable="{{clearable}}" clickable="{{ clickable }}" required="{{required}}" center="{{center}}" password="{{password}}" maxlength="{{maxlength}}" title-width="{{titleWidth}}" placeholder="{{placeholder}}" placeholder-style="{{placeholderStyle}}" custom-style="{{customStyle}}" is-link="{{isLink}}" arrow-direction="{{arrowDirection}}" show-word-limit="{{showWordLimit}}" error="{{error}}" error-message="{{errorMessage}}" error-message-align="{{errorMessageAlign}}" input-align="{{inputAlign}}" autosize="{{autosize}}" left-icon="{{leftIcon}}" right-icon="{{rightIcon}}" confirm-type="{{cursorSpacing}}" confirm-hold="{{confirmHold}}" hold-keyboard="{{holdKeyboard}}" cursor-spacing="{{cursorSpacing}}" adjust-position="{{adjustPosition}}" show-confirm-bar="{{showConfirmBar}}" selection-start="{{ selectionStart }} " selection-end="{{ selectionEnd }} " auto-focus="{{autoFocus}}"
- input-class="{{inputClass}}" label-class="{{labelClass}}" right-icon-class="{{rightIconClass}}"
- bind:input="onInput" bind:change="onChange" bind:confirm="onConfirm" bind:focus="onFocus" bind:blur="onBlur">
- <!-- label 自定义输入框标签,如果设置了label属性则不生效
- left-icon 自定义输入框头部图标
- right-icon 自定义输入框尾部图标
- button 自定义输入框尾部按钮
- input 自定义输入框,使用此插槽后,与输入框相关的属性和事件将失效 -->
- <view slot="button">
- <slot name="button"></slot>
- </view>
- <view slot="label">
- <slot name="label"></slot>
- </view>
- <view slot="input">
- <slot name="input"></slot>
- </view>
- <view slot="right-icon">
- <slot name="right-icon"></slot>
- </view>
- <view slot="left-icon">
- <slot name="left-icon"></slot>
- </view>
- </van-field>
|