Composition API, get v-model of input in slot #12566
Unanswered
alebus84
asked this question in
Help/Questions
Replies: 2 comments
-
use |
Beta Was this translation helpful? Give feedback.
0 replies
-
You can use props to pass values and combine watchPostEffect in the form component to listen for ref, which can be obtained The watchPostEffect document doesn't seem to have much introduction. This is about listening after DOM updates https://vuejs.org/api/reactivity-core.html#watchposteffect |
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
-
Hello,
Sorry for my bad English. I have a "Formx" component, which has a default "slot". And an "InputTextx" component, which is an "input". I pass "InputTextx" in the "slot" of "Formx". I would like to get in "Formx" the "v-model" of "InputTextx".
"Formx" :
"InputTextx" :
And use :
Thank you in advance.
Beta Was this translation helpful? Give feedback.
All reactions