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
@@ -4,15 +4,15 @@ defineProps({
readableTime: { type: String, default: '' },
});
const emits = defineEmits(['error']);
const emit = defineEmits(['error']);
const onVideoError = () => {
emits('error');
emit('error');
};
</script>
<template>
<div class="block relative max-w-full">
<div class="relative block max-w-full">
<video
class="w-full max-w-[250px] h-auto"
:src="url"
@@ -20,7 +20,7 @@ const onVideoError = () => {
@error="onVideoError"
/>
<span
class="text-xs absolute text-white dark:text-white right-3 bottom-1 whitespace-nowrap"
class="absolute text-xs text-white dark:text-white right-3 bottom-1 whitespace-nowrap"
>
{{ readableTime }}
</span>