在script setup中,子组件怎么抛出一个ref给父组件调用自己的子组件的方法? #6251
Answered
by
edison1105
zz541843
asked this question in
Help/Questions
-
ref只有在挂载后才有值,可是defineExpose好像在mounted之前就执行了,所以ref一直是undefined |
Beta Was this translation helpful? Give feedback.
Answered by
edison1105
Jul 11, 2022
Replies: 1 comment
-
is this what you looking for ? |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
zz541843
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
is this what you looking for ?
see expose method
or expose ref