added emit and val return to all costume elements

This commit is contained in:
ori agranat
2019-03-23 14:33:02 +02:00
parent 7c017f7d3a
commit 45a972da1f
4 changed files with 25 additions and 8 deletions

View File

@@ -5,7 +5,7 @@
<h4>{{title}}</h4>
</Col>
<col span="4">
<InputNumber :min="0" v-model="value" size="small"></InputNumber>
<InputNumber :min="0" v-model="value" size="small" @on-change="handleInput"></InputNumber>
</col>
</row>
</div>
@@ -17,7 +17,12 @@
props:['title'],
data() {
return {
value
content:this.value
}
},
methods: {
handleInput() {
this.$emit('input',this.value);
}
}
}