fix: 编译错误
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user