目前根据业务只进行了切片功能,暂时没有断点续传、秒传。
效果图:
<template>
<el-upload
ref="uploadRef"
v-show="showCollection.showUpload"
class="upload-demo"
action="#"
:auto-upload="false"
:on-change="onChange"
:on-remove="onRemove"
:limit="props.limit"
:on-exceed="handleExceed"
:file-list="props.fileList"
>
<template #trigger>
<div class="uploadBtn">
<slot>
<img src="@/assets/imgs/upload-file.png" alt="">
<span>添加</span>
</slot>
</div>
</template>
</el-upload>
<!-- 进度条 -->
<div v-if="showCollection.showProgress" class="progressBox">
<el-progress
:text-inside="true"
:stroke-width="15"
:status="progress == 100 ? 'success' : ''"
:percentage="progress"
/>
<el-icon>
<SuccessFilled color="#00A058" v-if="showCollection.showSuccess" />
<Loading color="#98