24 lines
463 B
Vue
24 lines
463 B
Vue
<template>
|
|
<div>
|
|
<input
|
|
type="checkbox"
|
|
:id="id"
|
|
name="set-name"
|
|
class="switch-input"
|
|
:checked='currentValue'
|
|
v-model="currentValue"
|
|
@change="$emit('change', currentValue)"
|
|
>
|
|
<label
|
|
:for="id"
|
|
class="switch-label"
|
|
:class="{compact}"
|
|
>
|
|
{{ label }}
|
|
</label>
|
|
</div>
|
|
</template>
|
|
|
|
<script src="./ft-toggle-switch.js" />
|
|
<style scoped lang="sass" src="./ft-toggle-switch.sass" />
|