优化FormItemsRenderer

master
LiuJiaNan 2026-02-10 10:17:08 +08:00
parent 0da73b8d32
commit 78c56ab7c3
1 changed files with 3 additions and 3 deletions

View File

@ -479,9 +479,6 @@ const FormItemsRenderer = ({
const renderFormList = (option, index, col, style) => { const renderFormList = (option, index, col, style) => {
const formListUniqueProps = getFormListUniqueProps(option); const formListUniqueProps = getFormListUniqueProps(option);
const componentProps = getComponentProps(option); const componentProps = getComponentProps(option);
const formItemProps = getFormItemProps(option);
delete formItemProps.dependencies;
delete formItemProps.shouldUpdate;
return ( return (
<Col key={getKey(option) || index} span={col.span} style={style}> <Col key={getKey(option) || index} span={col.span} style={style}>
@ -494,6 +491,9 @@ const FormItemsRenderer = ({
<Row gutter={gutter} key={field.key}> <Row gutter={gutter} key={field.key}>
{listOptions.map((listOption, listIndex) => { {listOptions.map((listOption, listIndex) => {
const col = getCol(listOption); const col = getCol(listOption);
const formItemProps = getFormItemProps(listOption);
delete formItemProps.dependencies;
delete formItemProps.shouldUpdate;
const params = { const params = {
option: listOption, option: listOption,