0
0
Fork 0

refactor: refs #6977 refactor VnImg

This commit is contained in:
Jon Elias 2024-06-24 08:30:06 +02:00
parent f41161a28e
commit 82cc844ddd
1 changed files with 7 additions and 3 deletions

View File

@ -44,7 +44,13 @@ onMounted(() => {});
<template>
<QImg :src="url" v-bind="$attrs" @click="show = !show" spinner-color="primary" />
<QDialog v-model="show" v-if="$props.zoomSize">
<QImg :src="url" class="img_zoom" v-bind="$attrs" spinner-color="primary" />
<QImg
:src="url"
size="full"
class="img_zoom"
v-bind="$attrs"
spinner-color="primary"
/>
</QDialog>
</template>
@ -56,8 +62,6 @@ onMounted(() => {});
border-radius: 50%;
}
.img_zoom {
width: 100%;
height: auto;
border-radius: 0%;
}
</style>