textarea.wxml 1.0 KB

123456789101112131415161718192021222324252627282930
  1. <view class="{{classPrefix}} {{prefix}}-class">
  2. <view class="{{classPrefix}}__name {{prefix}}-class-label">
  3. <view wx:if="{{ label && label.length > 0 }}">{{ label }}</view>
  4. <slot wx:else name="label" />
  5. </view>
  6. <view class="{{classPrefix}}__wrapper">
  7. <textarea
  8. disabled="{{disabled}}"
  9. placeholder="{{placeholder}}"
  10. class="{{classPrefix}}__wrapper-textarea {{prefix}}-class-textarea"
  11. placeholder-class="{{classPrefix}}__placeholder"
  12. value="{{value}}"
  13. auto-focus="{{autofocus}}"
  14. focus="{{focus}}"
  15. cursor-spacing="{{cursorSpacing}}"
  16. auto-height="{{autosize}}"
  17. adjust-position="{{adjustPosition}}"
  18. confirm-type="{{confirmType}}"
  19. confirm-hold="{{confirmHold}}"
  20. bindinput="onInput"
  21. bindfocus="onFocus"
  22. bindblur="onBlur"
  23. bindconfirm="onConfirm"
  24. bindlinechange="onLineChange"
  25. />
  26. <view wx:if="{{maxcharacter || maxlength}}" class="{{classPrefix}}__count">
  27. {{count }} / {{maxcharacter || maxlength}}
  28. </view>
  29. </view>
  30. </view>