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

🧐[问题] 使用BetaSchemaForm, 其layoutType 设置为 "Embed", 定义onValuesChange事件, 当BetaSchemaForm内的表单项值发生变化时,onValuesChange不会被触发 #8727

Open
luckyG0429 opened this issue Sep 13, 2024 · 1 comment

Comments

@luckyG0429
Copy link

提问前先看看:

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

🧐 问题描述

使用BetaSchemaForm, 其layoutType 设置为 "Embed", 定义onValuesChange事件, 当BetaSchemaForm内的表单项值发生变化时,onValuesChange不会被触发,请问这是否是bug?还是功能设计如此?

💻 示例代码

 <BetaSchemaForm<DataItem>
          layoutType="Embed"
          onFinish={async (values) => {
            console.log(values);
          }}
          columns={columns}
          onValuesChange={(changedFields: any) => {
            console.log(changedFields);
          }}
        />

希望能得到回复~谢谢

@Cruiter11235
Copy link

Cruiter11235 commented Nov 1, 2024

需要外层包一个ProForm,在那里传

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