slot -> prop

This commit is contained in:
Jörn-Michael Miehe 2022-09-12 13:02:03 +00:00
parent 7f67007a12
commit add9214f6b
2 changed files with 10 additions and 6 deletions

View file

@ -1,9 +1,7 @@
<template>
<v-app>
<v-main>
<TitleBar>
<div v-html="title_html" />
</TitleBar>
<TitleBar :title="title_html" />
<HelloWorld />
</v-main>
<TickerBar :content="ticker_html" />

View file

@ -5,9 +5,10 @@
<THWLogo :above="logo_above" :below="logo_below" />
</div>
<div class="d-flex justify-center text-center mx-auto text-h6 text-md-h5">
<slot> <h1>TITLE</h1> </slot>
</div>
<div
class="d-flex justify-center text-center mx-auto text-h6 text-md-h5"
v-html="title"
/>
<div class="d-none d-sm-flex justify-end text-right text-no-wrap">
<div class="flex-column">
@ -46,6 +47,11 @@ export default class TitleBar extends Vue {
default: "OV Musterstadt",
})
public logo_below!: string;
@Prop({
default: "TITLE",
})
public title!: string;
}
</script>