fix: apply ESLint rule vue/require-macro-variable-name

This commit is contained in:
iamsivin
2024-07-26 12:47:47 +05:30
parent 51ab7d4f9e
commit 0b2477c47e
11 changed files with 42 additions and 32 deletions
@@ -12,7 +12,7 @@ const props = defineProps({
},
});
const emits = defineEmits(['change', 'delete']);
const emit = defineEmits(['change', 'delete']);
const hasImageLoaded = ref(false);
const imageLoadedError = ref(false);
@@ -35,14 +35,14 @@ const openFileInput = () => {
const onImageUpload = event => {
const [file] = event.target.files;
emits('change', {
emit('change', {
file,
url: file ? URL.createObjectURL(file) : null,
});
};
const onAvatarDelete = () => {
emits('delete');
emit('delete');
};
</script>