blob: 04d29d9059c15bec305fc5ba5a04b32512330b3b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
<template>
<div>
<strong>Image: {{image.path}}</strong>
<img :src="imageSrc" />
</div>
</template>
<script lang="ts">
import { Component, Vue, Prop } from "vue-property-decorator";
@Component
export default class GalleryImage extends Vue {
@Prop({ required: true }) readonly image!: Gallery.Image;
get imageSrc() {
return `${process.env.VUE_APP_DATA_URL}${this.image.path}`;
}
}
</script>
<style lang="scss">
</style>
|