index.wxml 1002 B

123456789101112131415161718192021222324252627282930313233
  1. <!--components/w-field/index.wxml-->
  2. <van-field
  3. class="w-field {{ labelAlign }}"
  4. type="{{ type }}"
  5. model:value="{{ innerValue }}"
  6. input-align="{{ inputAlign }}"
  7. placeholder="{{ placeholder }}"
  8. placeholder-style="{{ placeholderStyle }}"
  9. label="{{ label }}"
  10. is-link="{{ isLink }}"
  11. border="{{ border }}"
  12. disabled="{{ disabled }}"
  13. readonly="{{ readonly }}"
  14. clearable="{{ clearable }}"
  15. clickable="{{ clickable }}"
  16. maxlength="{{ maxlength }}"
  17. autosize="{{ autosize }}"
  18. show-word-limit="{{ showWordLimit }}"
  19. center="{{ center }}"
  20. title-width="{{ titleWidth }}"
  21. bind:input="onInput"
  22. bind:change="onChange"
  23. bind:blur="onBlur"
  24. >
  25. <!-- <slot name="icon" slot="left-icon" /> -->
  26. <label for="{{ name }}" wx:if="{{ label }}" name="title" slot="title">
  27. {{ label }}
  28. </label>
  29. <slot name="input" slot="input" />
  30. <slot name="right-icon" slot="right-icon" />
  31. <slot name="icon" slot="icon" />
  32. <slot name="button" slot="button" />
  33. </van-field>