refactor: add type define emits
This commit is contained in:
parent
e8971845cd
commit
46b69deb59
1 changed files with 8 additions and 5 deletions
|
|
@ -11,21 +11,16 @@ withDefaults(
|
||||||
defineProps<{
|
defineProps<{
|
||||||
data?: any;
|
data?: any;
|
||||||
title?: string;
|
title?: string;
|
||||||
|
|
||||||
dense?: boolean;
|
dense?: boolean;
|
||||||
outlined?: boolean;
|
outlined?: boolean;
|
||||||
readonly?: boolean;
|
readonly?: boolean;
|
||||||
separator?: boolean;
|
separator?: boolean;
|
||||||
typeProduct?: string;
|
typeProduct?: string;
|
||||||
|
|
||||||
isAddProduct?: boolean;
|
isAddProduct?: boolean;
|
||||||
action?: boolean;
|
action?: boolean;
|
||||||
|
|
||||||
index?: number;
|
index?: number;
|
||||||
isDisabled?: boolean;
|
isDisabled?: boolean;
|
||||||
|
|
||||||
noTimeImg?: boolean;
|
noTimeImg?: boolean;
|
||||||
|
|
||||||
priceDisplay?: {
|
priceDisplay?: {
|
||||||
price: boolean;
|
price: boolean;
|
||||||
agentPrice: boolean;
|
agentPrice: boolean;
|
||||||
|
|
@ -36,6 +31,14 @@ withDefaults(
|
||||||
action: false,
|
action: false,
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
||||||
|
defineEmits<{
|
||||||
|
(e: 'select', data: any): void;
|
||||||
|
(e: 'menuViewDetail'): void;
|
||||||
|
(e: 'menuEdit'): void;
|
||||||
|
(e: 'menuDelete'): void;
|
||||||
|
(e: 'toggleStatus', id: string): void;
|
||||||
|
}>();
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue