components/t-test/t-test.vue
@@ -1,7 +1,7 @@ <template> <view> <slot> <input style="background-color: azure;" v-model="val" @input="change(val)"> <input style="background-color: azure;" v-model="val" @input="input(val)"> </slot> </view> </template> @@ -29,7 +29,7 @@ }; }, methods: { change(val) { input(val) { this.val = val console.log(this.val); this.$emit('input',val);