defineModel的值在子组件中修改后无法直接获取到 #10902
Unanswered
LcLoveStudy
asked this question in
Help/Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
父组件:
子组件:
我大概猜到是生命周期的原因,但是加上一个nextTick总感觉不够优雅。
因为在3.4之前的版本中emit('update:xxx')后就可以立刻获取到最新的值。
不知道尤大后面会不会修改。
Beta Was this translation helpful? Give feedback.
All reactions