12345678910111213141516171819202122232425262728293031323334 |
- <view
- class="ant-textarea {{ disabled ? 'ant-textarea-disabled' : '' }} {{ className ? className : '' }} {{ selfFocus ? (focusClassName ? focusClassName : '') : '' }}"
- style="{{ style || '' }};{{ focusStyle || '' }}">
- <view class="ant-textarea-line">
- <textarea
- enableNative="{{ enableNative }}"
- name="{{ name }}"
- class="ant-textarea-content"
- disabled="{{ disabled }}"
- value="{{ state.value || '' }}"
- placeholder="{{ placeholder }}"
- placeholder-class="ant-textarea-placeholder {{ placeholderClassName ? placeholderClassName : '' }}"
- placeholder-style="{{ placeholderStyle ? placeholderStyle : '' }}"
- maxlength="{{ maxLength }}"
- focus="{{ focus }}"
- confirm-type="{{ confirmType }}"
- confirm-hold="{{ confirmHold }}"
- auto-height="{{ autoHeight }}"
- show-count="{{ showCount }}"
- controlled="{{ state.controlled }}"
- onInput="onChange"
- onConfirm="onConfirm"
- onFocus="onFocus"
- onBlur="onBlur" />
- <view
- a:if="{{ allowClear }}"
- class="ant-textarea-clear {{ state.value && state.value.length > 0 ? 'ant-textarea-clear-show' : 'ant-textarea-clear-hidden' }}"
- onTap="onClear">
- <icon
- className="ant-textarea-clear-icon"
- type="CloseCircleFill" />
- </view>
- </view>
- </view>
|