We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
const [allValues, setAllValues] = useState({}); const handleOnChange = () => { const formData = formRender.getValues(); setAllValues(formData); }; <FormRender form={formRender} readOnly={action === 'view' ? true : false} className={style['question-container']} autoComplete='off' schema={schema} onChange={handleOnChange} maxWidth={360} colon={true} footer={false} />
The text was updated successfully, but these errors were encountered:
lhbxs
No branches or pull requests
期望使用onchange实时获取表单数据的时能setAllValues到useState状态中
const [allValues, setAllValues] = useState({});
const handleOnChange = () => {
const formData = formRender.getValues();
setAllValues(formData);
};
<FormRender
form={formRender}
readOnly={action === 'view' ? true : false}
className={style['question-container']}
autoComplete='off'
schema={schema}
onChange={handleOnChange}
maxWidth={360}
colon={true}
footer={false}
/>
现在react项目中需要通过Change事件获取到表单的值,并同步传给子组件使用,需要线用一个状态存一下实时获取的表单值,但是这样会导致formRender表单数据显示有问题,请问怎么处理
The text was updated successfully, but these errors were encountered: