From bac8ce1a02f287548fdc3bbde41b53b54914ab1f Mon Sep 17 00:00:00 2001 From: alan Date: Tue, 30 Jul 2019 10:17:31 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix:=20KERNEL-800=20=E8=AE=BE=E7=BD=AE?= =?UTF-8?q?=E4=B8=BA=E5=8F=AF=E9=80=89=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- typescript/core/base.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/typescript/core/base.ts b/typescript/core/base.ts index 81ed09060d..8fb31e24ea 100644 --- a/typescript/core/base.ts +++ b/typescript/core/base.ts @@ -9,7 +9,7 @@ export interface _base { createWidgets: (items: any, options: any, context: any) => any; - createItems: (data: any[], innerAttr: any[], outerAttr: any[]) => any; + createItems: (data: any[], innerAttr?: any[], outerAttr?: any[]) => any; packageItems: (items: any[], layouts: any[]) => any[]; From bd87ff0cd7ee8ba4289219d9257ad8e243d3907a Mon Sep 17 00:00:00 2001 From: alan Date: Tue, 30 Jul 2019 11:51:55 +0800 Subject: [PATCH 2/2] =?UTF-8?q?fix:=20=E6=B3=9B=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- typescript/core/base.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/typescript/core/base.ts b/typescript/core/base.ts index 8fb31e24ea..55099eed8b 100644 --- a/typescript/core/base.ts +++ b/typescript/core/base.ts @@ -9,7 +9,7 @@ export interface _base { createWidgets: (items: any, options: any, context: any) => any; - createItems: (data: any[], innerAttr?: any[], outerAttr?: any[]) => any; + createItems: (data: T[], innerAttr?: U[], outerAttr?: K[]) => (U & T & K)[]; packageItems: (items: any[], layouts: any[]) => any[];