<import src="./time.wxml"/>
<import src="./custom.wxml"/>
<import src="./word.wxml"/>
<template name="chat-item">
    <view  class="chat-item">
        <block wx:if="{{item.type!=='custom'}}">
            <template is="chat-time" data="{{showTime: item.showTime,time:item.time}}"/>
            <template is="chat-word"
                      data="{{...item, index: index}}"/>
        </block>
        <block wx:else>
            <template is="chat-custom" data="{{content:item.content}}"/>
        </block>
    </view>
</template>
