defineModel不提供v-model道具时生成的本地ref,直接修改子属性,无法触发 #10663
Answered
by
LcLoveStudy
tetezi
asked this question in
Help/Questions
-
defineModel不提供v-model道具时生成的本地ref,直接修改子属性,无法触发,但当我传入v-model道具时能正常运行。SFC Link我看了下源码,好像是因为本地模式的defineModel只创建了ref而不是代理吗?不太懂求讲解,还有这个是bug吗?还是为了语法规范故意而为之?我目前的临时写法是这样,但感觉怪怪的,有什么更好的方法推荐吗头好痛 |
Beta Was this translation helpful? Give feedback.
Answered by
LcLoveStudy
May 10, 2024
Replies: 1 comment
Answer selected by
baiwusanyu-c
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
这个问题尤大在官网说明了