feat: รับ defineProps data
This commit is contained in:
parent
f3a0e2ba6c
commit
50ed9559f4
1 changed files with 4 additions and 0 deletions
|
|
@ -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', {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue