refactor: add submitPersonal
This commit is contained in:
parent
1164748e1b
commit
2993cf0f02
3 changed files with 116 additions and 5 deletions
|
|
@ -17,6 +17,7 @@ withDefaults(
|
|||
submit?: (...args: unknown[]) => void;
|
||||
close?: (...args: unknown[]) => void;
|
||||
undo?: (...args: unknown[]) => void;
|
||||
beforeClose?: (...args: unknown[]) => boolean;
|
||||
}>(),
|
||||
{
|
||||
showEdit: true,
|
||||
|
|
@ -42,6 +43,7 @@ function reset() {
|
|||
no-swipe-open
|
||||
@before-hide="reset"
|
||||
@hide="close"
|
||||
@update:model-value="(v) => (drawerOpen = beforeClose ? beforeClose() : v)"
|
||||
:width="$q.screen.gt.xs ? windowSize * 0.85 : windowSize"
|
||||
v-model="drawerOpen"
|
||||
behavior="mobile"
|
||||
|
|
@ -139,7 +141,12 @@ function reset() {
|
|||
class="close-btn"
|
||||
:class="{ dark: $q.dark.isActive }"
|
||||
type="reset"
|
||||
@click="close"
|
||||
@click="
|
||||
() => {
|
||||
drawerOpen = beforeClose ? beforeClose() : !drawerOpen;
|
||||
close?.();
|
||||
}
|
||||
"
|
||||
resetValidation
|
||||
/>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue