feat: lazy load select options
This commit is contained in:
parent
dee1bab91c
commit
5e206e2432
1 changed files with 3 additions and 1 deletions
|
|
@ -44,6 +44,7 @@ const attributesForm = defineModel<AttributesForm>('attributesForm', {
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
const isExpand = ref(false);
|
||||||
const formData = ref<AttributesForm>(defaultForm);
|
const formData = ref<AttributesForm>(defaultForm);
|
||||||
|
|
||||||
function triggerUndo() {
|
function triggerUndo() {
|
||||||
|
|
@ -75,6 +76,7 @@ function assignToForm() {
|
||||||
<template>
|
<template>
|
||||||
<q-expansion-item
|
<q-expansion-item
|
||||||
dense
|
dense
|
||||||
|
v-model="isExpand"
|
||||||
class="overflow-hidden bordered q-my-sm full-width"
|
class="overflow-hidden bordered q-my-sm full-width"
|
||||||
switch-toggle-side
|
switch-toggle-side
|
||||||
style="border-radius: var(--radius-2)"
|
style="border-radius: var(--radius-2)"
|
||||||
|
|
@ -111,7 +113,7 @@ function assignToForm() {
|
||||||
</nav>
|
</nav>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<main class="row">
|
<main class="row" v-if="isExpand">
|
||||||
<section class="col-12">
|
<section class="col-12">
|
||||||
<FormGroupHead>
|
<FormGroupHead>
|
||||||
{{ $t('duty.text', { subject: $t('general.customer') }) }}
|
{{ $t('duty.text', { subject: $t('general.customer') }) }}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue