优化FormItemsRenderer
parent
0da73b8d32
commit
78c56ab7c3
|
|
@ -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,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue