Skip to content

Commit

Permalink
docs(site): update controlled docs
Browse files Browse the repository at this point in the history
  • Loading branch information
janryWang committed Aug 16, 2021
1 parent 889a3af commit b13c343
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
8 changes: 7 additions & 1 deletion docs/guide/advanced/controlled.md
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,13 @@ const Custom = observer(() => {
setSchema(DYNAMIC_INJECT_SCHEMA[form.values.type])
}, [form.values.type])

return <RecursionField schema={schema} onlyRenderProperties />
return (
<RecursionField
basePath={field.address}
schema={schema}
onlyRenderProperties
/>
)
})

const SchemaField = createSchemaField({
Expand Down
8 changes: 7 additions & 1 deletion docs/guide/advanced/controlled.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,13 @@ const Custom = observer(() => {
setSchema(DYNAMIC_INJECT_SCHEMA[form.values.type])
}, [form.values.type])

return <RecursionField schema={schema} onlyRenderProperties />
return (
<RecursionField
basePath={field.address}
schema={schema}
onlyRenderProperties
/>
)
})

const SchemaField = createSchemaField({
Expand Down

0 comments on commit b13c343

Please sign in to comment.