refactor: handle qr code
This commit is contained in:
parent
d6c8f0240a
commit
d90d392cfc
3 changed files with 18 additions and 4 deletions
|
|
@ -173,9 +173,10 @@ watch(
|
||||||
|
|
||||||
<div
|
<div
|
||||||
class="bordered q-mr-sm rounded"
|
class="bordered q-mr-sm rounded"
|
||||||
:class="{ 'cursor-pointer': !readonly }"
|
:class="{ 'pointer-none': readonly }"
|
||||||
>
|
>
|
||||||
<ImageHover
|
<ImageHover
|
||||||
|
:readonly="readonly"
|
||||||
:img="book.bankUrl"
|
:img="book.bankUrl"
|
||||||
@view="() => $emit('viewQr', i)"
|
@view="() => $emit('viewQr', i)"
|
||||||
@edit="
|
@edit="
|
||||||
|
|
@ -347,4 +348,8 @@ watch(
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<style scoped lang="scss"></style>
|
<style scoped lang="scss">
|
||||||
|
.pointer-none {
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
|
||||||
|
|
@ -44,7 +44,11 @@ defineEmits<{
|
||||||
style="z-index: 1; cursor: pointer"
|
style="z-index: 1; cursor: pointer"
|
||||||
@mouseover="showOverlay = true"
|
@mouseover="showOverlay = true"
|
||||||
@mouseleave="showOverlay = false"
|
@mouseleave="showOverlay = false"
|
||||||
@click.stop="$emit('view')"
|
@click.stop="
|
||||||
|
() => {
|
||||||
|
if (readonly === false) $emit('view');
|
||||||
|
}
|
||||||
|
"
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
v-if="img"
|
v-if="img"
|
||||||
|
|
@ -108,7 +112,11 @@ defineEmits<{
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
class="upload-overlay absolute-bottom flex items-center justify-center"
|
class="upload-overlay absolute-bottom flex items-center justify-center"
|
||||||
@click.stop="$emit('edit')"
|
@click.stop="
|
||||||
|
() => {
|
||||||
|
if (readonly === false) $emit('edit');
|
||||||
|
}
|
||||||
|
"
|
||||||
>
|
>
|
||||||
{{
|
{{
|
||||||
labelAction === undefined
|
labelAction === undefined
|
||||||
|
|
|
||||||
|
|
@ -159,6 +159,7 @@ async function downloadImage(url: string) {
|
||||||
v-close-popup
|
v-close-popup
|
||||||
/>
|
/>
|
||||||
<SaveButton
|
<SaveButton
|
||||||
|
:label="$t('general.confirm')"
|
||||||
outlined
|
outlined
|
||||||
@click="$emit('save', inputFile?.files?.[0] || null, imageUrl)"
|
@click="$emit('save', inputFile?.files?.[0] || null, imageUrl)"
|
||||||
/>
|
/>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue