Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

define v-model in component in formSchema #110

Closed
silverbasilisk opened this issue Jul 5, 2022 · 1 comment
Closed

define v-model in component in formSchema #110

silverbasilisk opened this issue Jul 5, 2022 · 1 comment

Comments

@silverbasilisk
Copy link

Hello @kailong321200875
Actually I used to use React.js and Vue.js is first for me.
And I'd like to declare variable like Ref and v-model in Schema to handle in script setup.
For example there are two components type and list like following
image
The list in the right should be changed along the type.
But I have no solution to do this now.
Only thing I can do is to get value using getFormData() from whole schema when radio is changed and then execute setSchemaOption().
I think this is not the best solution.
How can I fix?

@kailong321200875
Copy link
Owner

you can use componentProps: { onChange: (val: any) => { // to do something } }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants