advent22/ui/src/components/CalendarDoor.vue

23 lines
422 B
Vue
Raw Normal View History

2022-10-30 01:27:46 +00:00
<template>
<button class="button" @click="on_click">Türken {{ day + 1 }}</button>
2022-10-30 01:27:46 +00:00
</template>
<script lang="ts">
import { Vue, Options } from "vue-class-component";
@Options({
props: {
day: Number,
},
})
2023-01-24 23:18:09 +00:00
export default class extends Vue {
2022-10-30 01:27:46 +00:00
day!: number;
2022-10-30 03:10:07 +00:00
2023-01-17 14:28:11 +00:00
private on_click() {
2023-01-24 23:14:13 +00:00
this.$advent22.api_get_blob(`days/image/${this.day}`, (data) => {
2022-11-16 01:37:52 +00:00
this.$emit("openDoor", data);
});
}
2022-10-30 01:27:46 +00:00
}
</script>