mirror of
https://code.lenaisten.de/Lenaisten/advent22.git
synced 2024-12-23 13:13:00 +00:00
move "hover title" to Calendar instead
This commit is contained in:
parent
3b22f09a13
commit
e5364ff94d
3 changed files with 7 additions and 2 deletions
|
@ -10,6 +10,7 @@
|
|||
:key="`door-${index}`"
|
||||
:door="door"
|
||||
:visible="store.is_touch_device"
|
||||
:title="$advent22.name_door(door.day)"
|
||||
@click="door_click(door.day)"
|
||||
/>
|
||||
</ThouCanvas>
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
variant="primary"
|
||||
:visible="store.is_touch_device || force_visible"
|
||||
:rectangle="door.position"
|
||||
:title="$advent22.name_door(door.day)"
|
||||
>
|
||||
<div class="has-text-danger">{{ door.day }}</div>
|
||||
</SVGRect>
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
xmlns="http://www.w3.org/1999/xhtml"
|
||||
:class="`px-4 is-flex is-align-items-center is-justify-content-center is-size-1 has-text-weight-bold ${extra_classes}`"
|
||||
style="height: inherit"
|
||||
v-bind="$attrs"
|
||||
:title="title"
|
||||
>
|
||||
<slot name="default" />
|
||||
</div>
|
||||
|
@ -38,6 +38,10 @@ type BulmaVariant =
|
|||
default: false,
|
||||
},
|
||||
rectangle: Rectangle,
|
||||
title: {
|
||||
type: String,
|
||||
required: false,
|
||||
},
|
||||
},
|
||||
})
|
||||
export default class extends Vue {
|
||||
|
@ -46,6 +50,7 @@ export default class extends Vue {
|
|||
private variant!: BulmaVariant;
|
||||
private visible!: boolean;
|
||||
public rectangle!: Rectangle;
|
||||
public title?: string;
|
||||
|
||||
public get extra_classes(): string {
|
||||
let result = this.variant;
|
||||
|
|
Loading…
Reference in a new issue