Skip to content

Commit

Permalink
refactor(antd): fine adjustment (#1188)
Browse files Browse the repository at this point in the history
* docs(antd): remove redundant FormProvider

* refactor(antd): export ISubmitProps
  • Loading branch information
atzcl authored Mar 31, 2021
1 parent 2878f5a commit ea02274
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/antd/docs/components/Form.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {
Submit,
} from '@formily/antd'
import { createForm } from '@formily/core'
import { FormProvider, Field } from '@formily/react'
import { Field } from '@formily/react'

const form = createForm()

Expand Down
2 changes: 1 addition & 1 deletion packages/antd/src/submit/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Button } from 'antd'
import { ButtonProps } from 'antd/lib/button'
import { useForm, observer } from '@formily/react'

interface ISubmitProps extends ButtonProps {
export interface ISubmitProps extends ButtonProps {
onSubmit?: (values: any) => Promise<any> | any
}

Expand Down

0 comments on commit ea02274

Please sign in to comment.