26 lines
788 B
Vue
26 lines
788 B
Vue
<template>
|
|
<div class="cert-attachments">
|
|
<AttachmentUploadField
|
|
ref="field"
|
|
:model-value="modelValue || ''"
|
|
:disabled="readonly"
|
|
folder="pl/plan-cert"
|
|
:hint="hint"
|
|
@update:model-value="$emit('update:modelValue', $event)"
|
|
/>
|
|
</div>
|
|
</template>
|
|
<script setup lang="ts">
|
|
import AttachmentUploadField from '@/components/business/attachment-upload-field/index.vue'
|
|
defineProps<{ modelValue?: string; readonly?: boolean; hint?: string }>()
|
|
defineEmits<{ 'update:modelValue': [string] }>()
|
|
const field = ref<InstanceType<typeof AttachmentUploadField>>()
|
|
defineExpose({ hasUploading: () => field.value?.hasUploading() ?? false })
|
|
</script>
|
|
<style scoped lang="scss">
|
|
.cert-attachments {
|
|
width: 100%;
|
|
min-width: 0;
|
|
}
|
|
</style>
|