feat: callback รูป ของ สาขา

This commit is contained in:
Net 2024-07-03 09:44:31 +07:00
parent 78600be0ea
commit e490d0a492
2 changed files with 20 additions and 6 deletions

View file

@ -21,7 +21,16 @@ defineEmits<{
style="min-height: 150px"
>
<div class="col-12 flex flex-center" v-if="image">
<q-img :src="image as string" style="width: 150px; height: 150px" />
<q-img :src="image as string" style="width: 150px; height: 150px">
<template #error>
<div
style="background: none"
class="full-width full-height items-center justify-center flex"
>
<q-img src="/no-data.png" width="5rem" />
</div>
</template>
</q-img>
</div>
<div class="col-12 flex flex-center q-py-md" v-if="!readonly">
<q-btn

View file

@ -22,11 +22,16 @@ defineEmits<{
class="col-9 row q-mt-lg branch-form-show-qr-code"
>
<div class="col-12 flex flex-center">
<q-img
v-if="qr"
:src="qr as string"
style="width: 150px; height: 150px"
/>
<q-img v-if="qr" :src="qr as string" style="width: 150px; height: 150px">
<template #error>
<div
style="background: none"
class="full-width full-height items-center justify-center flex"
>
<q-img src="/no-data.png" width="5rem" />
</div>
</template>
</q-img>
<q-btn
@click="$emit('upload')"