feat: image previews (#104)
Co-authored-by: lihbr <lihbr@users.noreply.github.com>
This commit is contained in:
parent
a812ea098f
commit
9df9c06f64
4 changed files with 36 additions and 13 deletions
|
@ -64,7 +64,12 @@ const aspectRatio = computed(() => {
|
|||
aspectRatio,
|
||||
}"
|
||||
border="~ base"
|
||||
object-cover rounded-lg
|
||||
object-cover
|
||||
rounded-lg
|
||||
@click="openImagePreviewDialog({
|
||||
src: attachment.url || attachment.previewUrl!,
|
||||
alt: attachment.description!,
|
||||
})"
|
||||
/>
|
||||
</template>
|
||||
</template>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue