why "defineModel" API work so weird? #11088
Replies: 6 comments 1 reply
-
Beta Was this translation helpful? Give feedback.
-
Can someone help me? Thanks a lot.😊 |
Beta Was this translation helpful? Give feedback.
-
Can you change a variable name |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
You should never update the v-model value in a child component due to one-way-data-flow, you can update it in parent component instead. Why nextTick outputs 104: |
Beta Was this translation helpful? Give feedback.
-
You're right, it does not seem to work like a normal
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm a new Vuer, my Vue version is <3.4+> and I found the
defineModel API
in the Official Doc. But there must be something I missed.Below is My Parent.vue Component
And the Chiled.vue Component:
Beta Was this translation helpful? Give feedback.
All reactions