fix: 编译错误

This commit is contained in:
2023-07-21 04:30:18 +08:00
parent 735170b897
commit 7fe4908131
7 changed files with 38 additions and 28 deletions

View File

@ -14,10 +14,10 @@
</el-table-column>
<el-table-column align="center" :label="label2">
<template #default="{ row, $index }">
<download-link v-if="row.createdBy" :src="row" :file-name="row.name">
<DownloadLink v-if="row.createdBy" :src="row" :file-name="row.name">
{{ row.name }}
</download-link>
<upload-single-file
</DownloadLink>
<UploadSingleFile
v-else
:accept="accept"
:auto-upload="allLoading[`${row.id}`]"
@ -66,6 +66,9 @@
</template>
<script lang="ts" setup name="ThUploadTable">
import DownloadLink from '../download-link/index.vue'
import UploadSingleFile from '../upload-single-file/index.vue'
const props = withDefaults(defineProps<{
/** 上传格式 */
accept?: string