Use WagtailImage in Image content block
This commit is contained in:
parent
9645aed5f2
commit
6d920c2358
|
|
@ -1,15 +1,18 @@
|
|||
<template>
|
||||
<img
|
||||
<wagtail-image
|
||||
:src="value.path"
|
||||
alt=""
|
||||
class="image-block"
|
||||
@click="openFullscreen"
|
||||
/>
|
||||
></wagtail-image>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import WagtailImage from '@/components/ui/WagtailImage.vue';
|
||||
|
||||
export default {
|
||||
props: ['value'],
|
||||
components: { WagtailImage },
|
||||
methods: {
|
||||
openFullscreen() {
|
||||
this.$store.dispatch('showFullscreenImage', this.value.path);
|
||||
|
|
|
|||
Loading…
Reference in New Issue