123456789101112131415161718 |
- <view class="wux-class {{ classes.wrap }}">
- <view class="{{ classes.files }}">
- <block wx:if="{{ listType === 'picture-card' && showUploadList && uploadFileList.length }}">
- <block wx:for="{{ uploadFileList }}" wx:for-item="file" wx:key="uid">
- <view class="{{ classes.file }} {{ file.status ? prefixCls + '__file--' + file.status : '' }}" data-file="{{ file }}" data-index="{{ index }}" bindtap="onPreview">
- <video id="{{ file.uid }}" class="{{ classes.thumb }}" src="{{ file.url }}" wx:if="{{ isVideo }}" />
- <image class="{{ classes.thumb }}" src="{{ file.url }}" wx:else />
- <view class="{{ classes.remove }}" data-file="{{ file }}" data-index="{{ index }}" catchtap="onRemove" wx:if="{{ showRemoveIcon }}"></view>
- </view>
- </block>
- </block>
- <view class="{{ classes.select }}" bindtap="onSelect" wx:if="{{ uploadMax === -1 || uploadMax > uploadFileList.length }}">
- <view class="{{ classes.button }}">
- <slot></slot>
- </view>
- </view>
- </view>
- </view>
|