feat: รับ defineProps data

This commit is contained in:
Net 2024-06-07 18:03:17 +07:00
parent f3a0e2ba6c
commit 50ed9559f4

View file

@ -2,6 +2,8 @@
import { onMounted, ref, watch } from 'vue';
import AppBox from './app/AppBox.vue';
import { Customer } from 'src/stores/customer/types';
defineProps<{
title: string;
category?: string;
@ -15,6 +17,8 @@ defineProps<{
submit?: (...args: unknown[]) => void;
close?: (...args: unknown[]) => void;
undo?: (...args: unknown[]) => void;
data: Customer | undefined;
}>();
const drawerOpen = defineModel<boolean>('drawerOpen', {