Files
shanxia2.0/web-admin/src/views/m/pl/plan-cert/CertAttachments.vue
T
2026-10-19 18:28:02 +08:00

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>