MyComponent was clicked
diff --git a/example-project/vue-app/src/components/Input.vue b/example-project/vue-app/src/components/Input.vue index 3a88e54a..3b12afd4 100644 --- a/example-project/vue-app/src/components/Input.vue +++ b/example-project/vue-app/src/components/Input.vue @@ -8,24 +8,18 @@ export default defineComponent({ MyInput, }, setup() { - const inputEvent = ref(''); + const inputValue = ref(''); const changeEvent = ref(''); - const handleInput = (ev) => { - console.log('handleInput', ev.target.value); - inputEvent.value = ev.target.value; - }; - const handleChange = (ev) => { console.log('handleChange', ev.target.value); changeEvent.value = ev.detail.value; }; return { - inputEvent, + inputValue, changeEvent, - handleInput, - handleChange, + handleChange }; }, }); @@ -40,12 +34,12 @@ export default defineComponent({Input Event: {{ inputEvent }}
+Input v-model: {{ inputValue }}
Change Event: {{ changeEvent }}