feat: lazy load select options

This commit is contained in:
Methapon2001 2024-11-27 15:38:09 +07:00
parent dee1bab91c
commit 5e206e2432

View file

@ -44,6 +44,7 @@ const attributesForm = defineModel<AttributesForm>('attributesForm', {
},
});
const isExpand = ref(false);
const formData = ref<AttributesForm>(defaultForm);
function triggerUndo() {
@ -75,6 +76,7 @@ function assignToForm() {
<template>
<q-expansion-item
dense
v-model="isExpand"
class="overflow-hidden bordered q-my-sm full-width"
switch-toggle-side
style="border-radius: var(--radius-2)"
@ -111,7 +113,7 @@ function assignToForm() {
</nav>
</template>
<main class="row">
<main class="row" v-if="isExpand">
<section class="col-12">
<FormGroupHead>
{{ $t('duty.text', { subject: $t('general.customer') }) }}