diff --git a/packages/react-schema-renderer/README.md b/packages/react-schema-renderer/README.md index 974ff035516..0b5b87fbac9 100644 --- a/packages/react-schema-renderer/README.md +++ b/packages/react-schema-renderer/README.md @@ -278,7 +278,7 @@ import { Form } from 'antd' export const CompatFormComponent = ({children,...props})=>{ return
//Very simple to use the Form component, props is the props of the SchemaForm component, here will be directly transparent -}) +} export const CompatFormItemComponent = ({children,...props})=>{ const messages = [].concat(props.errors || [], props.warnings || []) @@ -317,6 +317,7 @@ export default ()=>{ formComponent={CompatFormComponent} formItemComponent={CompatFormItemComponent} /> + ) } ``` diff --git a/packages/react-schema-renderer/README.zh-cn.md b/packages/react-schema-renderer/README.zh-cn.md index 4b385e61c9a..b3266681eed 100644 --- a/packages/react-schema-renderer/README.zh-cn.md +++ b/packages/react-schema-renderer/README.zh-cn.md @@ -274,7 +274,7 @@ import { Form } from 'antd' export const CompatFormComponent = ({children,...props})=>{ return //很简单的使用Form组件,props是SchemaForm组件的props,这里会直接透传 -}) +} export const CompatFormItemComponent = ({children,...props})=>{ const messages = [].concat(props.errors || [], props.warnings || []) @@ -313,6 +313,7 @@ export default ()=>{ formComponent={CompatFormComponent} formItemComponent={CompatFormItemComponent} /> + ) } ```