feat: remove PropTypes helper from FilePreview
This commit is contained in:
parent
78811d916a
commit
0bc1832050
@ -19,17 +19,14 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import {type PropType, ref, shallowReactive, watchEffect} from 'vue'
|
import {ref, shallowReactive, watchEffect} from 'vue'
|
||||||
import AttachmentService from '@/services/attachment'
|
import AttachmentService from '@/services/attachment'
|
||||||
import type {IAttachment} from '@/modelTypes/IAttachment'
|
import type {IAttachment} from '@/modelTypes/IAttachment'
|
||||||
import {SUPPORTED_IMAGE_SUFFIX} from '@/models/attachment'
|
import {SUPPORTED_IMAGE_SUFFIX} from '@/models/attachment'
|
||||||
|
|
||||||
const props = defineProps({
|
const props = defineProps<{
|
||||||
modelValue: {
|
modelValue?: IAttachment
|
||||||
type: Object as PropType<IAttachment>,
|
}>()
|
||||||
default: undefined,
|
|
||||||
},
|
|
||||||
})
|
|
||||||
|
|
||||||
const attachmentService = shallowReactive(new AttachmentService())
|
const attachmentService = shallowReactive(new AttachmentService())
|
||||||
const blobUrl = ref<string | undefined>(undefined)
|
const blobUrl = ref<string | undefined>(undefined)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user