2022-10-30 01:27:46 +00:00
|
|
|
<template>
|
2023-09-22 19:02:51 +00:00
|
|
|
<SVGRect
|
|
|
|
style="cursor: pointer"
|
2023-11-04 01:31:49 +00:00
|
|
|
:variant="visible || hovered ? 'primary' : undefined"
|
2023-09-22 19:02:51 +00:00
|
|
|
:rectangle="door.position"
|
2023-11-04 01:31:49 +00:00
|
|
|
@mouseover="hovered = true"
|
|
|
|
@mouseout="hovered = false"
|
2023-09-22 19:02:51 +00:00
|
|
|
>
|
2023-10-27 14:40:25 +00:00
|
|
|
<div class="has-text-danger">{{ door.day }}</div>
|
2023-09-22 19:02:51 +00:00
|
|
|
</SVGRect>
|
2022-10-30 01:27:46 +00:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
2023-09-07 02:08:56 +00:00
|
|
|
import { Door } from "@/lib/door";
|
2023-09-06 16:25:35 +00:00
|
|
|
import { Options, Vue } from "vue-class-component";
|
2023-09-07 00:41:38 +00:00
|
|
|
|
2023-09-07 02:08:56 +00:00
|
|
|
import SVGRect from "./SVGRect.vue";
|
2022-10-30 01:27:46 +00:00
|
|
|
|
|
|
|
@Options({
|
2023-09-07 00:41:38 +00:00
|
|
|
components: {
|
|
|
|
SVGRect,
|
|
|
|
},
|
2022-10-30 01:27:46 +00:00
|
|
|
props: {
|
2023-09-07 00:41:38 +00:00
|
|
|
door: Door,
|
2023-10-27 14:40:25 +00:00
|
|
|
visible: {
|
|
|
|
type: Boolean,
|
|
|
|
default: false,
|
|
|
|
},
|
2022-10-30 01:27:46 +00:00
|
|
|
},
|
|
|
|
})
|
2023-01-24 23:18:09 +00:00
|
|
|
export default class extends Vue {
|
2023-09-07 00:41:38 +00:00
|
|
|
public door!: Door;
|
2023-10-27 14:40:25 +00:00
|
|
|
public visible!: boolean;
|
2023-11-04 01:31:49 +00:00
|
|
|
|
|
|
|
public hovered = false;
|
2022-10-30 01:27:46 +00:00
|
|
|
}
|
|
|
|
</script>
|