<!--pages/list/list.wxml-->
<import src="../../modules/chat-page/chat-item.wxml"/>
<import src="../../modules/chat-page/chat-page-status.wxml"/>
<scroll-view
        style="height:{{pageHeight}}px;width: 100%;display: flex;flex-direction: column;padding-bottom: 120rpx;"
        scroll-y="true"
        scroll-top="{{scrollTopVal}}"
        bindtap="resetInputStatus">
<!-- <home-header-nav titleText="{{toName}}" showLeft="{{true}}"></home-header-nav> -->

    <block wx:for="{{chatItems}}" wx:key="{{id}}">
        <template is="chat-item"
                  data="{{length:chatItems.length,index:index,item:item}}"/>
    </block>

</scroll-view>
<chat-input
    id="chatInput"
    min-voice-time="{{1}}"
    max-voice-time="{{60}}"
    start-time-down="{{54}}"
    tabBarHeight="{{0}}"
    format="mp3"
    extra-array="{{extraArr}}"
    bind:extraClickEvent="onExtraClickEvent"
    bind:extraItemClickEvent="onExtraItemClickEvent"
    bind:voiceRecordEvent="onVoiceRecordEvent"
    bind:sendMessageEvent="onSendMessageEvent"></chat-input>
<!--<template is="chat-input" data="{{inputObj,textMessage,showVoicePart:true}}"/>-->
