feat: add basic form customer

This commit is contained in:
Methapon2001 2024-08-05 15:09:36 +07:00
parent 0a745885ee
commit 6bb4256dec
8 changed files with 408 additions and 80 deletions

View file

@ -25,6 +25,7 @@ defineProps<{
editData?: (...args: unknown[]) => void;
deleteData?: (...args: unknown[]) => void;
show?: (...args: unknown[]) => void;
submit?: (...args: unknown[]) => void;
close?: (...args: unknown[]) => void;
undo?: (...args: unknown[]) => void;
@ -34,7 +35,7 @@ const modal = defineModel('modal', { default: false });
const currentTab = defineModel<string>('currentTab');
</script>
<template>
<q-dialog v-model="modal" @hide="close">
<q-dialog v-model="modal" @hide="close" @before-show="show">
<div
class="surface-1"
style="padding: 0; border-radius: var(--radius-2); height: 100%"
@ -199,7 +200,7 @@ const currentTab = defineModel<string>('currentTab');
<q-btn
id="cancelBtn"
unelevated
class="col btn-cancel-dialog"
class="col btn-cancel-dialog rounded"
color="grey-4"
text-color="grey-10"
@click="close"
@ -212,7 +213,7 @@ const currentTab = defineModel<string>('currentTab');
id="submitBtn"
type="submit"
color="primary"
class="q-px-md"
class="q-px-md rounded"
:label="$t('save')"
/>
</div>