Add fullscreen image to ImageBlock

This commit is contained in:
Ramon Wenger 2019-03-13 16:33:57 +01:00
parent 34ad9927a7
commit 0a67c322be
1 changed files with 8 additions and 2 deletions

View File

@ -1,10 +1,16 @@
<template> <template>
<img :src="value.path" alt="" class="image-block"> <img :src="value.path" alt="" class="image-block" @click="openFullscreen">
</template> </template>
<script> <script>
export default { export default {
props: ['value'] props: ['value'],
methods: {
openFullscreen() {
this.$store.dispatch('showFullscreenImage', this.value.path);
}
}
} }
</script> </script>