mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-20 19:32:15 +00:00
refactor(editor): Standardize how we use defineEmits in components using the composition API (no-changelog) (#9934)
This commit is contained in:
@@ -12,7 +12,7 @@ type Props = {
|
||||
const props = defineProps<Props>();
|
||||
const visible = defineModel<boolean>();
|
||||
const emit = defineEmits<{
|
||||
(e: 'confirmDelete', value?: string): void;
|
||||
confirmDelete: [value?: string];
|
||||
}>();
|
||||
|
||||
const locale = useI18n();
|
||||
|
||||
@@ -22,8 +22,8 @@ const model = defineModel<(ProjectSharingData | null) | ProjectSharingData[]>({
|
||||
required: true,
|
||||
});
|
||||
const emit = defineEmits<{
|
||||
(event: 'projectAdded', value: ProjectSharingData): void;
|
||||
(event: 'projectRemoved', value: ProjectSharingData): void;
|
||||
projectAdded: [value: ProjectSharingData];
|
||||
projectRemoved: [value: ProjectSharingData];
|
||||
}>();
|
||||
|
||||
const selectedProject = ref(Array.isArray(model.value) ? '' : model.value?.id ?? '');
|
||||
|
||||
Reference in New Issue
Block a user