show CalendarDoor on hover

This commit is contained in:
Jörn-Michael Miehe 2023-11-04 01:31:49 +00:00
parent b6e24dae9d
commit 6efa2aef9b

View file

@ -1,8 +1,10 @@
<template>
<SVGRect
style="cursor: pointer"
:variant="visible ? 'primary' : undefined"
:variant="visible || hovered ? 'primary' : undefined"
:rectangle="door.position"
@mouseover="hovered = true"
@mouseout="hovered = false"
>
<div class="has-text-danger">{{ door.day }}</div>
</SVGRect>
@ -29,5 +31,7 @@ import SVGRect from "./SVGRect.vue";
export default class extends Vue {
public door!: Door;
public visible!: boolean;
public hovered = false;
}
</script>