31 lines
1.0 KiB
Plaintext
31 lines
1.0 KiB
Plaintext
|
<view class="{{classPrefix}} {{prefix}}-class">
|
||
|
<view class="{{classPrefix}}__name {{prefix}}-class-label">
|
||
|
<view wx:if="{{ label && label.length > 0 }}">{{ label }}</view>
|
||
|
<slot wx:else name="label" />
|
||
|
</view>
|
||
|
<view class="{{classPrefix}}__wrapper">
|
||
|
<textarea
|
||
|
disabled="{{disabled}}"
|
||
|
placeholder="{{placeholder}}"
|
||
|
class="{{classPrefix}}__wrapper-textarea {{prefix}}-class-textarea"
|
||
|
placeholder-class="{{classPrefix}}__placeholder"
|
||
|
value="{{value}}"
|
||
|
auto-focus="{{autofocus}}"
|
||
|
focus="{{focus}}"
|
||
|
cursor-spacing="{{cursorSpacing}}"
|
||
|
auto-height="{{autosize}}"
|
||
|
adjust-position="{{adjustPosition}}"
|
||
|
confirm-type="{{confirmType}}"
|
||
|
confirm-hold="{{confirmHold}}"
|
||
|
bindinput="onInput"
|
||
|
bindfocus="onFocus"
|
||
|
bindblur="onBlur"
|
||
|
bindconfirm="onConfirm"
|
||
|
bindlinechange="onLineChange"
|
||
|
/>
|
||
|
<view wx:if="{{maxcharacter || maxlength}}" class="{{classPrefix}}__count">
|
||
|
{{count }} / {{maxcharacter || maxlength}}
|
||
|
</view>
|
||
|
</view>
|
||
|
</view>
|