From 66ec61e66cf31508c08b30a28ee0bb64e45f87bb Mon Sep 17 00:00:00 2001 From: whycq <you@example.com> Date: 星期五, 23 九月 2022 00:16:14 +0800 Subject: [PATCH] # --- components/t-test/t-test.vue | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/t-test/t-test.vue b/components/t-test/t-test.vue index 1151edb..26eaefa 100644 --- a/components/t-test/t-test.vue +++ b/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); -- Gitblit v1.9.1