prop typing
This commit is contained in:
parent
d599d4c23e
commit
5a274de64f
4 changed files with 11 additions and 11 deletions
|
@ -11,8 +11,8 @@ export default class Clock extends Vue {
|
||||||
private formatted = "";
|
private formatted = "";
|
||||||
private interval?: number;
|
private interval?: number;
|
||||||
|
|
||||||
@Prop()
|
@Prop({ required: true })
|
||||||
public format!: string;
|
private readonly format!: string;
|
||||||
|
|
||||||
private update(): void {
|
private update(): void {
|
||||||
this.formatted = DateTime.now()
|
this.formatted = DateTime.now()
|
||||||
|
|
|
@ -23,11 +23,11 @@ import { Component, Prop, Vue } from "vue-property-decorator";
|
||||||
|
|
||||||
@Component
|
@Component
|
||||||
export default class THWLogo extends Vue {
|
export default class THWLogo extends Vue {
|
||||||
@Prop()
|
@Prop({ required: true })
|
||||||
public above!: string;
|
private readonly above!: string;
|
||||||
|
|
||||||
@Prop()
|
@Prop({ required: true })
|
||||||
public below!: string;
|
private readonly below!: string;
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
@ -15,8 +15,8 @@ import { Component, Prop, Vue } from "vue-property-decorator";
|
||||||
|
|
||||||
@Component
|
@Component
|
||||||
export default class TickerBar extends Vue {
|
export default class TickerBar extends Vue {
|
||||||
@Prop()
|
@Prop({ required: true })
|
||||||
public content!: string;
|
private readonly content!: string;
|
||||||
|
|
||||||
get marqueeDuration(): string {
|
get marqueeDuration(): string {
|
||||||
// 10 seconds + another second per 7 chars
|
// 10 seconds + another second per 7 chars
|
||||||
|
|
|
@ -41,17 +41,17 @@ export default class TitleBar extends Vue {
|
||||||
@Prop({
|
@Prop({
|
||||||
default: "Technisches Hilfswerk",
|
default: "Technisches Hilfswerk",
|
||||||
})
|
})
|
||||||
public logo_above!: string;
|
private readonly logo_above!: string;
|
||||||
|
|
||||||
@Prop({
|
@Prop({
|
||||||
default: "OV Musterstadt",
|
default: "OV Musterstadt",
|
||||||
})
|
})
|
||||||
public logo_below!: string;
|
private readonly logo_below!: string;
|
||||||
|
|
||||||
@Prop({
|
@Prop({
|
||||||
default: "TITLE",
|
default: "TITLE",
|
||||||
})
|
})
|
||||||
public title!: string;
|
private readonly title!: string;
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue