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

fix:修复 transformRules 方法传入的 rules 参数会被复写 #1514

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Aliveing
Copy link

比如给 FormRender 传入 schema 中使用了 list,FieldList/field.tsx 会调用 transformRules 方法(https://github.com/alibaba/x-render/blob/master/packages/form-render/src/render-core/FieldList/field.tsx#L196),会把 schema 中 list rules 给更改掉,这不符合函数式编程

比如给 FormRender 传入 schema 中使用了 list,FieldList/field.tsx 会调用 transformRules 方法(https://github.com/alibaba/x-render/blob/master/packages/form-render/src/render-core/FieldList/field.tsx#L196),会把 schema 中 list rules 给更改掉,这不符合函数式编程
Copy link

vercel bot commented Apr 10, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
x-render ❌ Failed (Inspect) Apr 10, 2024 4:20am
x-render-1 ❌ Failed (Inspect) Apr 10, 2024 4:20am

@CLAassistant
Copy link

CLAassistant commented Apr 10, 2024

CLA assistant check
All committers have signed the CLA.

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

Successfully merging this pull request may close these issues.

2 participants