<!--components/upload/upload.wxml-->
<view >
  <view wx:if="{{source === 'messageFile'}}">
    <t-button size="small" bind:tap="handleClick">选择文件</t-button>

    <t-cell wx:for="{{originFiles}}" wx:key="attachmentid" title="合同" note="{{item.document}}" bordered="{{true}}">
     <view class="small colorError" slot="note" data-item="{{item}}" bindtap="deleteFile">
        删 除
     </view>
    </t-cell>
  </view>
  <t-upload
    wx:else
    files="{{originFiles}}"
    gridConfig="{{gridConfig}}"
    bind:add="handleAdd"
    bind:success="handleSuccess"
    bind:remove="handleRemove"
  />
</view>
<!-- bindtap="handleClick" -->