implemented image preview in mobile and desktop
This commit is contained in:
parent
a6870a78d4
commit
c6e810742a
3 changed files with 23 additions and 5 deletions
|
|
@ -7,8 +7,15 @@
|
|||
:src="src"
|
||||
:cover="cover"
|
||||
:contain="contain"
|
||||
@click.stop="dialog = true"
|
||||
/>
|
||||
</div>
|
||||
<v-dialog
|
||||
v-model="dialog"
|
||||
:width="$vuetify.breakpoint.smAndUp ? '940px' : '90%'"
|
||||
>
|
||||
<v-img :src="src"/>
|
||||
</v-dialog>
|
||||
</message-outgoing>
|
||||
</template>
|
||||
|
||||
|
|
@ -24,6 +31,7 @@ export default {
|
|||
src: null,
|
||||
cover: true,
|
||||
contain: false,
|
||||
dialog: false
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue