refactor(editor): Standardize how we use defineEmits in components using the composition API (no-changelog) (#9934)

This commit is contained in:
Ricardo Espinoza
2024-07-04 03:30:51 -04:00
committed by GitHub
parent 7a3c127b2c
commit cef177455e
96 changed files with 212 additions and 222 deletions

View File

@@ -26,8 +26,8 @@ const props = defineProps<Props>();
const assignment = ref<AssignmentValue>(props.modelValue);
const emit = defineEmits<{
(event: 'update:model-value', value: AssignmentValue): void;
(event: 'remove'): void;
'update:model-value': [value: AssignmentValue];
remove: [];
}>();
const ndvStore = useNDVStore();

View File

@@ -27,10 +27,7 @@ interface Props {
const props = withDefaults(defineProps<Props>(), { isReadOnly: false });
const emit = defineEmits<{
(
event: 'valueChanged',
value: { name: string; node: string; value: AssignmentCollectionValue },
): void;
valueChanged: [value: { name: string; node: string; value: AssignmentCollectionValue }];
}>();
const i18n = useI18n();

View File

@@ -12,7 +12,7 @@ interface Props {
const props = defineProps<Props>();
const emit = defineEmits<{
(event: 'update:model-value', type: string): void;
'update:model-value': [type: string];
}>();
const i18n = useI18n();