alibaba / x-render

🚴‍♀️ 阿里 - 很易用的中后台「表单 / 表格 / 图表」解决方案
https://xrender.fun
7.01k stars 993 forks source link

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

Open Aliveing opened 5 months ago

Aliveing commented 5 months ago

比如给 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 给更改掉,这不符合函数式编程

vercel[bot] commented 5 months ago

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 commented 5 months ago

CLA assistant check
All committers have signed the CLA.