mirror of
https://github.com/hay-kot/homebox.git
synced 2024-11-24 17:45:41 +00:00
95ab14b866
* format readme * update logo * format html * add logo to docs * repository for document and document tokens * add attachments type and repository * autogenerate types via scripts * use autogenerated types * attachment type updates * add insured and quantity fields for items * implement HasID interface for entities * implement label updates for items * implement service update method * WIP item update client side actions * check err on attachment * finish types for basic items editor * remove unused var * house keeping
35 lines
819 B
Vue
35 lines
819 B
Vue
<template>
|
|
<div v-if="!inline" class="form-control w-full">
|
|
<label class="label cursor-pointer">
|
|
<span class="label-text"> {{ label }}</span>
|
|
<input v-model="value" type="checkbox" class="checkbox" />
|
|
</label>
|
|
</div>
|
|
<div v-else class="label cursor-pointer sm:grid sm:grid-cols-4 sm:items-start sm:gap-4">
|
|
<label>
|
|
<span class="label-text">
|
|
{{ label }}
|
|
</span>
|
|
</label>
|
|
<input v-model="value" type="checkbox" class="checkbox" />
|
|
</div>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
const props = defineProps({
|
|
modelValue: {
|
|
type: Boolean,
|
|
default: false,
|
|
},
|
|
inline: {
|
|
type: Boolean,
|
|
default: false,
|
|
},
|
|
label: {
|
|
type: String,
|
|
default: "",
|
|
},
|
|
});
|
|
|
|
const value = useVModel(props, "modelValue");
|
|
</script>
|