<wxs src="./chat-sender.wxs" module="_this"/><view class="class {{classPrefix}}" style="{{_this._style([style, customStyle, inputStyle])}}" bindtap="handleOutsideClick"><view class="{{classPrefix}}__header" style="{{(attachmentsProps.items && attachmentsProps.items.length > 0)?'margin-top:-8rpx;':''}}"><block wx:if="{{attachmentsProps.items && attachmentsProps.items.length > 0}}"><view class="{{classPrefix}}__attachments"><attachments items="{{attachmentsProps.items}}" removable="{{attachmentsProps.removable}}" imageViewer="{{attachmentsProps.imageViewer}}" bind:fileClick="handleFileClick" bind:remove="handleFileRemove"></attachments></view></block><block wx:else><slot name="header"/></block></view><view class="{{classPrefix}}__actions"><view class="{{classPrefix}}__textarea"><slot name="input-prefix"/><textarea class="{{classPrefix}}__textarea--control" style="{{_this.textareaStyle(textareaProps.autosize)}}" disabled="{{disabled}}" auto-height="{{!!textareaProps.autosize}}" confirm-type="send" adjust-position="{{adjustPosition}}" disable-default-padding="{{false}}" cursor-spacing="30" maxlength="-1" value="{{value}}" bindchange="textChange" bindfocus="focusFn" bindblur="blurFn" bindtap="handlerClick" bindinput="textChange" bindkeyboardheightchange="onkeyboardheightchange" bindconfirm="handleSendClick">
|