Skip to content

不提交的情况下,如何获取表单所有控件的值类似 ant form form.getFieldsValue() #1094

Answered by hashplus
hashplus asked this question in Q&A [2.x]
Discussion options

You must be logged in to vote
const { getFormState }  = createFormActions()
getFormState(state => console.log(state.values))

暂时这么获取

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by hashplus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant