mirror of
https://github.com/keven1024/015.git
synced 2026-05-27 07:29:37 +00:00
23 lines
615 B
Vue
23 lines
615 B
Vue
<script lang="ts" setup>
|
|
import FileShareResult from '@/components/Result/FileShareResult.vue'
|
|
|
|
const props = defineProps<{
|
|
data: { file: File, config: any, file_handle_type: string, file_id: string }
|
|
}>()
|
|
|
|
// console.log(props.data)
|
|
|
|
const handleList = [
|
|
{ component: FileShareResult, key: 'file-share' },
|
|
// { component: FileShareResult, key: 'file-share' },
|
|
]
|
|
const handleComponent = computed(() => {
|
|
return handleList.find((item) => item.key === props?.data?.file_handle_type)?.component
|
|
})
|
|
|
|
</script>
|
|
<template>
|
|
<div class="">
|
|
<component :is="handleComponent" :data="data" />
|
|
</div>
|
|
</template> |