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