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

Commits on Apr 10, 2024

  1. fix:修复 transformRules 方法传入的 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 给更改掉,这不符合函数式编程
    Aliveing committed Apr 10, 2024
    Configuration menu
    Copy the full SHA
    36ef74b View commit details
    Browse the repository at this point in the history