Vue.component('my-com',{
template:"<input ref='input' type='text' :value='value' @input='changeValue($event.target.value)'>",
props:['value'],
methods:{
changeValue:function(val){
this.$emit('input',val)
}
}
})
var app=new Vue({
el:'#app',
data:{
value:''
},
watch:{
value: function (qaz, aaa) {
console.log(qaz)
}
}
});
<div id="app">
<my-com v-model='value'></my-com>
</div>