2021-04-11 02:55:26 +02:00
|
|
|
<template>
|
2021-07-04 18:20:09 +02:00
|
|
|
<div class="bool" :class="value ? 'enabled' : 'disabled'">
|
|
|
|
<sprite v-if="!$slots.default" :src="value ? 'check' : 'close'"></sprite>
|
|
|
|
<slot></slot>
|
2021-04-11 02:55:26 +02:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
props: {
|
|
|
|
value: {}
|
|
|
|
},
|
|
|
|
|
|
|
|
computed: {
|
|
|
|
t() {
|
|
|
|
return this.value ? 'Ja' : 'Nein';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
</script>
|