vue2语法糖
vue2 :父组件<myinput v-modle="msg"></myinput>
<script>
export default {
name: 'Home',
components: {
myinput
},
data() {
return {
arr222: [
{ id: 1, n: 'id1', children: [{ id: 12, n: 'id12' }, { id: 13, n: 'id13', children: [{ id: 1222, n: 'id1222' }, { id: 12221, n: 'id12221' }] }] },
{ id: 2, n: 'id2', children: [{ id: 22, n: 'id22' }] },
{ id: 3, n: 'id3' }
],
msg:'hello'
}
},
methods:{
}
}
</script>
子组件:<template>
<div class="text1">
<!-- <input type="text" :value="num" @input="input1"> -->
<input type="text" :value="value" @input="input1">
<!-- <input type="text" :value=