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

🧐[问题]renderformitem返回自定义组件,form.values获取不到select搜集的数据, #8812

Open
huangnan20030709 opened this issue Oct 22, 2024 · 3 comments

Comments

@huangnan20030709
Copy link

提问前先看看:

https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way/blob/main/README-zh_CN.md

🧐 问题描述

在column的item里,为什么当把select直接放到renderformitem能收集到,但是renderformitem返回自定义组件,form.values获取不到select搜集的数据,

💻 示例代码

image

image

🚑 其他信息

Copy link

以下的 Issues 可能会帮助到你 / The following issues may help you

@echoyl
Copy link
Contributor

echoyl commented Oct 25, 2024

需要自己onchange下

{
  renderFormItem:(_, props)=>{
    const {onChange,value} = props.fieldProps || {};
    onChange?.(values);
  }
}

@huangnan20030709
Copy link
Author

谢谢你

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