Skip to content

Commit

Permalink
feat: support useFormEffects (#403)
Browse files Browse the repository at this point in the history
  • Loading branch information
janryWang authored Nov 19, 2019
1 parent 570a81c commit dff959c
Show file tree
Hide file tree
Showing 11 changed files with 589 additions and 78 deletions.
4 changes: 2 additions & 2 deletions packages/antd/src/fields/table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
SchemaField,
Schema
} from '@uform/react-schema-renderer'
import { toArr, isFn, isArr } from '@uform/shared'
import { toArr, isFn, isArr, FormPath } from '@uform/shared'
import { ArrayList } from '@uform/react-shared-components'
import { CircleButton, TextButton } from '../components/Button'
import { Table, Form, Icon } from 'antd'
Expand Down Expand Up @@ -54,7 +54,7 @@ const FormTableField = styled(
render: (value: any, record: any, index: number) => {
return (
<FormItemProps label={undefined}>
<SchemaField path={path.concat(index, key)} />
<SchemaField path={FormPath.parse(path).concat(index, key)} />
</FormItemProps>
)
}
Expand Down
Loading

0 comments on commit dff959c

Please sign in to comment.