2021-04-11 02:55:26 +02:00
|
|
|
<template>
|
2021-07-04 18:20:09 +02:00
|
|
|
<div class="bool" :class="value ? 'enabled' : 'disabled'">
|
2022-02-12 15:22:22 +01:00
|
|
|
<svg-sprite v-if="!$slots.default" :src="value ? 'check' : 'close'"></svg-sprite>
|
2021-07-04 18:20:09 +02:00
|
|
|
<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>
|