We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a36d9d commit ae53ca6Copy full SHA for ae53ca6
src/components/UploadFile/src/UploadFile.vue
@@ -32,6 +32,25 @@
32
格式为 <b style="color: #f56c6c">{{ fileType.join('/') }}</b> 的文件
33
</div>
34
</template>
35
+ <template #file="row">
36
+ <div class="flex items-center">
37
+ <span>{{ row.file.name }}</span>
38
+ <div class="ml-10px">
39
+ <el-link
40
+ :href="row.file.url"
41
+ :underline="false"
42
+ download
43
+ target="_blank"
44
+ type="primary"
45
+ >
46
+ 下载
47
+ </el-link>
48
+ </div>
49
50
+ <el-button link type="danger" @click="handleRemove(row.file)"> 删除</el-button>
51
52
53
+ </template>
54
</el-upload>
55
56
0 commit comments