upload.wxml 730 B

123456789101112131415161718192021
  1. <!--components/upload/upload.wxml-->
  2. <view >
  3. <view wx:if="{{source === 'messageFile'}}">
  4. <t-button size="small" bind:tap="handleClick">{{language['选择文件']||'选择文件'}}</t-button>
  5. <t-cell wx:for="{{originFiles}}" wx:key="attachmentid" title="{{language['合同']||'合同'}}" note="{{item.document}}" bordered="{{true}}">
  6. <view class="small colorError" slot="note" data-item="{{item}}" bindtap="deleteFile">
  7. {{language['删除']||'删 除'}}
  8. </view>
  9. </t-cell>
  10. </view>
  11. <t-upload
  12. wx:else
  13. files="{{originFiles}}"
  14. gridConfig="{{gridConfig}}"
  15. bind:add="handleAdd"
  16. bind:success="handleSuccess"
  17. bind:remove="handleRemove"
  18. />
  19. </view>
  20. <!-- bindtap="handleClick" -->