mirror of
https://code.lenaisten.de/Lenaisten/advent22.git
synced 2024-12-23 13:13:00 +00:00
trim "get classes"
This commit is contained in:
parent
a715e761a9
commit
641492339a
1 changed files with 1 additions and 11 deletions
|
@ -1,6 +1,6 @@
|
|||
<template>
|
||||
<rect
|
||||
:class="classes"
|
||||
:class="focused ? 'focus' : ''"
|
||||
:x="rectangle.left"
|
||||
:y="rectangle.top"
|
||||
:width="rectangle.width"
|
||||
|
@ -24,16 +24,6 @@ import { Rectangle } from "./rectangles";
|
|||
export default class Rect extends Vue {
|
||||
private focused!: boolean;
|
||||
private rectangle!: Rectangle;
|
||||
|
||||
private get classes(): string {
|
||||
let result: string[] = [];
|
||||
|
||||
if (this.focused) {
|
||||
result.push("focus");
|
||||
}
|
||||
|
||||
return result.join(" ");
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
|
|
Loading…
Reference in a new issue