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 @@
</Col>
<col span="12">
<i-select v-model="value" size="small" style="width:400px" v-bind:placeholder="placeholdert">
<i-select v-model="value" size="small" style="width:400px" v-bind:placeholder="placeholdert" @on-change="handleInput">
<i-option v-for="item in list" :value="item" :key="item">{{item}}</i-option>
</i-select>
</col>
@@ -22,6 +22,12 @@
},
data() {
return {
content:this.value
}
},
methods: {
handleInput() {
this.$emit('input',this.value);
}
}
}