Skip to content

Commit

Permalink
docs(antd): fix Select component docs error (#3199)
Browse files Browse the repository at this point in the history
  • Loading branch information
try-to-fly committed Jun 16, 2022
1 parent 8ef12b4 commit ee70cde
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion packages/antd/docs/components/Select.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,10 @@ const SchemaField = createSchemaField({

const useAsyncDataSource = (
pattern: FormPathPattern,
service: (field: Field) => Promise<{ label: string; value: any }[]>
service: (param: {
keyword: string
field: Field
}) => Promise<{ label: string; value: any }[]>
) => {
const keyword = observable.ref('')

Expand Down
5 changes: 4 additions & 1 deletion packages/antd/docs/components/Select.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,10 @@ const SchemaField = createSchemaField({

const useAsyncDataSource = (
pattern: FormPathPattern,
service: (field: Field) => Promise<{ label: string; value: any }[]>
service: (param: {
keyword: string
field: Field
}) => Promise<{ label: string; value: any }[]>
) => {
const keyword = observable.ref('')

Expand Down

0 comments on commit ee70cde

Please sign in to comment.