Add fullscreen image to ImageBlock
This commit is contained in:
parent
34ad9927a7
commit
0a67c322be
|
|
@ -1,10 +1,16 @@
|
|||
<template>
|
||||
<img :src="value.path" alt="" class="image-block">
|
||||
<img :src="value.path" alt="" class="image-block" @click="openFullscreen">
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
props: ['value']
|
||||
props: ['value'],
|
||||
methods: {
|
||||
openFullscreen() {
|
||||
this.$store.dispatch('showFullscreenImage', this.value.path);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
</script>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue