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"
},
computed: {
localValue: {
get() {
return this.property.value
},
set(value) {
this.$emit("input", value)
}
},
prettyDescription() {
var d = this.property.description ? this.property.description : this.property.name
if (this.property.unit_name) {

View file

@ -13,26 +13,11 @@
</template>
<style scoped>
.form-control-inline {
display: inline;
width: auto;
}
.taglist {
display: flex;
flex-wrap: wrap;
gap: 0.3rem;
}
.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;
padding: .25rem;
}
</style>

View file

@ -17,20 +17,10 @@
placeholder="Enter description" v-model="item.description"></textarea>
</div>
<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>
<tag-field :value="item.tags"></tag-field>
</div>
<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>
<property-field :value="item.properties"></property-field>
</div>