From b59d60f8b21a02e1d77e5cae1910fa0f88b9cd8d Mon Sep 17 00:00:00 2001 From: liaoxuezhi Date: Fri, 20 Sep 2019 11:41:28 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B1=9E=E6=80=A7=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/factory.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/factory.tsx b/src/factory.tsx index c67d1bdde..a24faa944 100644 --- a/src/factory.tsx +++ b/src/factory.tsx @@ -510,7 +510,7 @@ class SchemaRenderer extends React.Component { render: this.renderChild }); } else if (typeof schema.component === 'function') { - return React.createElement(schema.children as any, { + return React.createElement(schema.component as any, { ...rest, $path: $path, render: this.renderChild