refactor: add uploadFileList

This commit is contained in:
Net 2024-08-27 12:53:44 +07:00 committed by Methapon Metanipat
parent ae88c19964
commit b36a92c050

View file

@ -12,6 +12,8 @@ import {
DeleteButton, DeleteButton,
UndoButton, UndoButton,
} from 'components/button'; } from 'components/button';
import UploadFile from 'src/components/upload-file/UploadFile.vue';
import { uploadFileList } from '../../constant';
const item = defineModel<NonNullable<CustomerCreate['customerBranch']>[number]>( const item = defineModel<NonNullable<CustomerCreate['customerBranch']>[number]>(
'customerBranch', 'customerBranch',
@ -160,10 +162,16 @@ defineProps<{
/> />
</q-tab-panel> </q-tab-panel>
<q-tab-panel name="attachment"> <q-tab-panel name="attachment">
<EmployerFormAttachment <UploadFile
:dropdown-list="uploadFileList"
v-model:file="item.file"
hide-action
/>
<!-- <EmployerFormAttachment
:readonly="readonly" :readonly="readonly"
v-model:attachment="item.file" v-model:attachment="item.file"
/> /> -->
</q-tab-panel> </q-tab-panel>
</q-tab-panels> </q-tab-panels>
</div> </div>