advent22/ui/src/components/CalendarDoor.vue

31 lines
604 B
Vue
Raw Normal View History

2022-10-30 01:27:46 +00:00
<template>
2022-10-30 03:10:07 +00:00
<ImageModal v-model="modal_visible" :imageUrl="image_url" />
2022-10-30 03:04:25 +00:00
<button class="button" @click="modal_visible = true">
2022-10-30 01:27:46 +00:00
Türken {{ day + 1 }}
2022-10-30 03:04:25 +00:00
</button>
2022-10-30 01:27:46 +00:00
</template>
<script lang="ts">
import { Vue, Options } from "vue-class-component";
2022-10-30 03:04:25 +00:00
import ImageModal from "./ImageModal.vue";
2022-10-30 01:27:46 +00:00
@Options({
2022-10-30 03:04:25 +00:00
components: {
ImageModal,
},
2022-10-30 01:27:46 +00:00
props: {
day: Number,
},
})
export default class CalendarDoor extends Vue {
day!: number;
2022-10-30 03:04:25 +00:00
modal_visible = false;
2022-10-30 03:10:07 +00:00
private get image_url(): string {
return "http://localhost:8000/api/days/picture/" + this.day;
}
2022-10-30 01:27:46 +00:00
}
</script>
<style>
</style>