From 951d1cb103fa46c0e7926d6138657c7d10cc4f88 Mon Sep 17 00:00:00 2001 From: keuby Date: Tue, 5 Jul 2022 15:19:20 +0800 Subject: [PATCH] fix(types): rrror declaration of the children prop --- packages/types/src/schema.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/types/src/schema.ts b/packages/types/src/schema.ts index c36a7c436..2895cd5ee 100644 --- a/packages/types/src/schema.ts +++ b/packages/types/src/schema.ts @@ -26,7 +26,7 @@ export interface NodeSchema { * 组件属性对象 */ props?: { - children?: NodeData[]; + children?: NodeData | NodeData[]; } & PropsMap;// | PropsList; /** * 组件属性对象