Skip to content

Commit

Permalink
fix(react): fix missing record props in ArrayBase.Item (#125)
Browse files Browse the repository at this point in the history
  • Loading branch information
haloworld007 authored Nov 11, 2021
1 parent e954d86 commit c041167
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion formily/antd/src/components/ArrayCards/preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export const ArrayCards: DnFC<CardProps> = observer((props) => {
])
return (
<ArrayBase disabled>
<ArrayBase.Item index={0}>
<ArrayBase.Item index={0} record={null}>
<Card
{...props}
title={
Expand Down
2 changes: 1 addition & 1 deletion formily/antd/src/components/ArrayTable/preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ export const ArrayTable: DnFC<TableProps<any>> = observer((props) => {
key={node.id}
render={(value, record, key) => {
return (
<ArrayBase.Item key={key} index={key}>
<ArrayBase.Item key={key} index={key} record={null}>
{children.length > 0 ? children : 'Droppable'}
</ArrayBase.Item>
)
Expand Down
2 changes: 1 addition & 1 deletion formily/next/src/components/ArrayCards/preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export const ArrayCards: DnFC<CardProps> = observer((props) => {
])
return (
<ArrayBase disabled>
<ArrayBase.Item index={0}>
<ArrayBase.Item index={0} record={null}>
<Card
contentHeight="auto"
{...props}
Expand Down
2 changes: 1 addition & 1 deletion formily/next/src/components/ArrayTable/preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ export const ArrayTable: DnFC<TableProps> = observer((props) => {
data-designer-node-id={node.id}
cell={(_, key: number) => {
return (
<ArrayBase.Item key={key} index={key}>
<ArrayBase.Item key={key} index={key} record={null}>
{children.length > 0 ? children : 'Droppable'}
</ArrayBase.Item>
)
Expand Down

0 comments on commit c041167

Please sign in to comment.