0
0
Fork 0

Add action to qfile icon

This commit is contained in:
William Buezas 2024-02-08 08:01:16 -03:00
parent 4dc31bfdce
commit c8153b6414
1 changed files with 7 additions and 1 deletions

View File

@ -40,6 +40,7 @@ const thermographsOptions = ref([]);
const dmsTypesOptions = ref([]);
const companiesOptions = ref([]);
const warehousesOptions = ref([]);
const inputFileRef = ref(null);
const thermographForm = reactive({
thermographId: null,
@ -300,13 +301,18 @@ const updateThermograph = async () => {
<VnRow class="row q-gutter-md q-mb-md">
<div class="col">
<QFile
ref="inputFileRef"
:label="t('travel.thermographs.file')"
multiple
:accept="allowedFileTypes"
v-model="thermographForm.files"
>
<template #append>
<QIcon name="vn:attach" class="cursor-pointer">
<QIcon
name="vn:attach"
class="cursor-pointer"
@click="inputFileRef.pickFiles()"
>
<QTooltip>{{ t('Select files') }}</QTooltip>
</QIcon>
</template>