From 028477ecbeb760559f8999aa9f77bdab6f52d01c Mon Sep 17 00:00:00 2001 From: jorgep Date: Mon, 24 Mar 2025 11:12:15 +0100 Subject: [PATCH] feat: refs #8388 add hasFile prop to VnDms component --- src/components/common/VnDms.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/common/VnDms.vue b/src/components/common/VnDms.vue index e667e1558..8f5cc73c4 100644 --- a/src/components/common/VnDms.vue +++ b/src/components/common/VnDms.vue @@ -35,6 +35,10 @@ const $props = defineProps({ type: String, default: null, }, + hasFile: { + type: Boolean, + default: false, + }, }); const warehouses = ref(); @@ -49,7 +53,7 @@ onMounted(() => { if (!$props.formInitialData) { dms.value.description = $props.description ?? t($props.model + 'Description', dms.value); - dms.value.hasFile = false; + dms.value.hasFile = $props.hasFile; } }); function onFileChange(files) {