2019-05-01 15:07:08 +00:00
|
|
|
<template lang="pug">
|
|
|
|
extends model
|
|
|
|
|
|
|
|
block input
|
|
|
|
input(:id="id" type="checkbox" :checked="value" @change.stop="sendChange($event.target.checked)")
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
|
|
import { Component, Prop } from 'vue-property-decorator'
|
|
|
|
|
2019-05-03 15:03:13 +00:00
|
|
|
import BaseSetting from './BaseSetting'
|
2019-05-01 15:07:08 +00:00
|
|
|
|
|
|
|
@Component
|
2019-05-03 15:03:13 +00:00
|
|
|
export default class SettingBoolean extends BaseSetting {
|
2019-05-01 15:07:08 +00:00
|
|
|
|
|
|
|
@Prop(Boolean)
|
|
|
|
readonly value!: boolean
|
|
|
|
|
|
|
|
}
|
|
|
|
</script>
|