mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-19 02:51:14 +00:00
refactor(editor): Rename $emits to emits where we use defineEmits (no-changelog) (#9959)
This commit is contained in:
@@ -82,7 +82,7 @@ const props = withDefaults(defineProps<MenuProps>(), {
|
||||
});
|
||||
const $route = useRoute();
|
||||
|
||||
const $emit = defineEmits<{
|
||||
const emit = defineEmits<{
|
||||
select: [itemId: string];
|
||||
'update:modelValue': [itemId: string];
|
||||
}>();
|
||||
@@ -112,7 +112,7 @@ onMounted(() => {
|
||||
activeTab.value = props.items.length > 0 ? props.items[0].id : '';
|
||||
}
|
||||
|
||||
$emit('update:modelValue', activeTab.value);
|
||||
emit('update:modelValue', activeTab.value);
|
||||
});
|
||||
|
||||
const onSelect = (item: IMenuItem): void => {
|
||||
@@ -120,8 +120,8 @@ const onSelect = (item: IMenuItem): void => {
|
||||
activeTab.value = item.id;
|
||||
}
|
||||
|
||||
$emit('select', item.id);
|
||||
$emit('update:modelValue', item.id);
|
||||
emit('select', item.id);
|
||||
emit('update:modelValue', item.id);
|
||||
};
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user