feat: refs #8388 add hasFile prop to VnDms component
gitea/salix-front/pipeline/pr-dev Build queued...
Details
gitea/salix-front/pipeline/pr-dev Build queued...
Details
This commit is contained in:
parent
97003e19ef
commit
028477ecbe
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue