Add fullscreen image to ImageBlock
This commit is contained in:
parent
34ad9927a7
commit
0a67c322be
|
|
@ -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>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue