blob: 07f8cc82182af319bb581f1abd84484854493709 (
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 `/gallery${this.image.path}`;
}
}
</script>
<style lang="scss">
</style>
|