0
0
Fork 0

feat: VnImg draggable

This commit is contained in:
Javier Segarra 2024-08-26 12:26:31 +02:00
parent 6c887c36b1
commit 9a48cb0742
1 changed files with 2 additions and 0 deletions

View File

@ -52,6 +52,7 @@ defineExpose({
</script> </script>
<template> <template>
<QImg <QImg
:draggable="true"
:class="{ zoomIn: zoom }" :class="{ zoomIn: zoom }"
:src="getUrl()" :src="getUrl()"
v-bind="$attrs" v-bind="$attrs"
@ -60,6 +61,7 @@ defineExpose({
/> />
<QDialog v-if="$props.zoom" v-model="show"> <QDialog v-if="$props.zoom" v-model="show">
<QImg <QImg
:draggable="true"
:src="getUrl(true)" :src="getUrl(true)"
v-bind="$attrs" v-bind="$attrs"
spinner-color="primary" spinner-color="primary"