refactor: handle qr code

This commit is contained in:
Thanaphon Frappet 2024-12-06 15:32:47 +07:00
parent d6c8f0240a
commit d90d392cfc
3 changed files with 18 additions and 4 deletions

View file

@ -44,7 +44,11 @@ defineEmits<{
style="z-index: 1; cursor: pointer"
@mouseover="showOverlay = true"
@mouseleave="showOverlay = false"
@click.stop="$emit('view')"
@click.stop="
() => {
if (readonly === false) $emit('view');
}
"
>
<div
v-if="img"
@ -108,7 +112,11 @@ defineEmits<{
>
<div
class="upload-overlay absolute-bottom flex items-center justify-center"
@click.stop="$emit('edit')"
@click.stop="
() => {
if (readonly === false) $emit('edit');
}
"
>
{{
labelAction === undefined