This commit is contained in:
j3d1 2023-06-17 10:55:36 +02:00
parent 509dfb24ec
commit d28a2eacf1
3 changed files with 9 additions and 26 deletions

View file

@ -85,6 +85,14 @@ export default {
event: "modelChange" event: "modelChange"
}, },
computed: { computed: {
localValue: {
get() {
return this.property.value
},
set(value) {
this.$emit("input", value)
}
},
prettyDescription() { prettyDescription() {
var d = this.property.description ? this.property.description : this.property.name var d = this.property.description ? this.property.description : this.property.name
if (this.property.unit_name) { if (this.property.unit_name) {

View file

@ -13,26 +13,11 @@
</template> </template>
<style scoped> <style scoped>
.form-control-inline {
display: inline;
width: auto;
}
.taglist { .taglist {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
gap: 0.3rem; gap: 0.3rem;
} padding: .25rem;
.form-control-xsm {
min-height: calc(.6rem);
padding: .0rem .5rem;
font-size: .6rem;
border-radius: .1rem;
}
input[type=number].form-control-xsm{
padding: 0 0 0 .5rem;
} }
</style> </style>

View file

@ -17,20 +17,10 @@
placeholder="Enter description" v-model="item.description"></textarea> placeholder="Enter description" v-model="item.description"></textarea>
</div> </div>
<div class="mb-3"> <div class="mb-3">
<ul>
<li v-for="tag in item.tags" :key="tag">
{{ tag }}
</li>
</ul>
<label for="tags" class="form-label">Tags</label> <label for="tags" class="form-label">Tags</label>
<tag-field :value="item.tags"></tag-field> <tag-field :value="item.tags"></tag-field>
</div> </div>
<div class="mb-3"> <div class="mb-3">
<ul>
<li v-for="property in item.properties" :key="property">
{{ property.name }}: {{ property.value }}
</li>
</ul>
<label for="property" class="form-label">Property</label> <label for="property" class="form-label">Property</label>
<property-field :value="item.properties"></property-field> <property-field :value="item.properties"></property-field>
</div> </div>