<import src="voice.wxml" />
<import src="extra.wxml" />
<template name="chat-input">
    <view class="input-flex-column" catchtap="">
        <view class="input-text-voice-super">
            
            <block wx:if="{{showVoicePart}}">
                  <view class="emoji iconfont icon-emoji" catchtap="emojiShowHide"></view>
                <image src="../../image/chat/voice/{{inputObj.inputStatus==='voice'?'keyboard':'voice'}}.png"
                       class="extra-btn-style" bindtap="emojis" />
            </block>

            <!-- <block wx:if="{{showVoicePart}}">
                <image src="../../image/chat/voice/{{inputObj.inputStatus==='voice'?'keyboard':'voice'}}.png"
                       class="extra-btn-style" bindtap="changeInputWayEvent" />
                <block wx:if="{{inputObj.inputStatus==='voice'}}">
                    <template is="voice" data="{{voiceObj:inputObj.voiceObj,canUsePress:inputObj.canUsePress}}" />
                </block>
            </block> -->
            <input wx:if="{{inputObj.inputStatus==='text'}}"
                   class="chat-input-style" style="margin-left:{{showVoicePart?0:16}}rpx;"
                   maxlength="500" confirm-type="send" value="{{textMessage}}" bindconfirm="chatInputSendTextMessage" bindfocus="chatInputBindFocusEvent" bindblur="chatInputBindBlurEvent" bindinput="chatInputGetValueEvent"/>
            <view hover-class="press-style-opacity">
                <view wx:if="{{inputObj.inputType==='text'}}" class="chat-input-send-button-style" style="background-color: {{inputObj.inputStyle.sendButtonBgColor}};color: {{inputObj.inputStyle.sendButtonTextColor}};" catchtap="chatInputSendTextMessage02">发送</view>
                <image wx:else class="extra-btn-style"
                       src="../../image/chat/extra.png" catchtap="chatInputExtraClickEvent" />
            </view>


        </view>
        <block wx:if="{{inputObj.extraObj.chatInputShowExtra}}">
            <view class="list-divide-line" />
            <template is="chat-extra-function-part"
                      data="{{chat$input$extra$arr:inputObj.extraObj.chatInputExtraArr}}" />
        </block>
<!-- 
     <block >
     <view>1111</view>
        </block> -->
    </view>

</template>


