Add classes the proper way
This commit is contained in:
parent
fec233fab7
commit
59a922578b
|
@ -11,7 +11,8 @@
|
||||||
>
|
>
|
||||||
<label
|
<label
|
||||||
:for="id"
|
:for="id"
|
||||||
:class='(compact ? "compact " : "")+"switch-label"'
|
class="switch-label"
|
||||||
|
:class="{compact}"
|
||||||
>
|
>
|
||||||
{{ label }}
|
{{ label }}
|
||||||
</label>
|
</label>
|
||||||
|
|
Loading…
Reference in New Issue