dk-field.wxml 2.0 KB

123456789101112131415161718192021222324
  1. <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}}"
  2. input-class="{{inputClass}}" label-class="{{labelClass}}" right-icon-class="{{rightIconClass}}"
  3. bind:input="onInput" bind:change="onChange" bind:confirm="onConfirm" bind:focus="onFocus" bind:blur="onBlur">
  4. <!-- label 自定义输入框标签,如果设置了label属性则不生效
  5. left-icon 自定义输入框头部图标
  6. right-icon 自定义输入框尾部图标
  7. button 自定义输入框尾部按钮
  8. input 自定义输入框,使用此插槽后,与输入框相关的属性和事件将失效 -->
  9. <view slot="button">
  10. <slot name="button"></slot>
  11. </view>
  12. <view slot="label">
  13. <slot name="label"></slot>
  14. </view>
  15. <view slot="input">
  16. <slot name="input"></slot>
  17. </view>
  18. <view slot="right-icon">
  19. <slot name="right-icon"></slot>
  20. </view>
  21. <view slot="left-icon">
  22. <slot name="left-icon"></slot>
  23. </view>
  24. </van-field>