refactor(editor): Rename $emits to emits where we use defineEmits (no-changelog) (#9959)

This commit is contained in:
Ricardo Espinoza
2024-07-06 13:54:36 -04:00
committed by GitHub
parent d1821eba92
commit 1ae64ec4fb
18 changed files with 71 additions and 61 deletions

View File

@@ -35,7 +35,7 @@ const props = withDefaults(defineProps<NoticeProps>(), {
fullContent: '',
});
const $emit = defineEmits<{
const emit = defineEmits<{
action: [key: string];
}>();
@@ -75,7 +75,7 @@ const onClick = (event: MouseEvent) => {
} else if (canTruncate.value && anchorKey === 'toggle-expand') {
showFullContent.value = !showFullContent.value;
} else {
$emit('action', anchorKey);
emit('action', anchorKey);
}
}
};