defineExpose #7480
Unanswered
RosApr
asked this question in
Help/Questions
defineExpose
#7480
Replies: 2 comments
-
please provide a minimal repro. |
Beta Was this translation helpful? Give feedback.
0 replies
-
为何父组件把这个值给了子组件,父组件自己改了了还要去找子组件拿这个值,父组件自己不是知道改了么,照理来说你这个是对象类型,即时是在做为prop的时候被解除代理模式,应该也是能同步更新的,最好还是提供repo。 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
父组件给子组件传递一个 ref(object array)
子组件暴露一个方法(该方法会读取这个props),
当父组件更新ref时,主动调用子组件方法,该方法无法正确获取更新后的props
Beta Was this translation helpful? Give feedback.
All reactions