From 88c6bda9fdc3683da02b56317fa66450b544f03a Mon Sep 17 00:00:00 2001 From: iapyang Date: Thu, 17 Dec 2020 18:13:01 +0800 Subject: [PATCH 1/3] =?UTF-8?q?refactor:=20=E5=8F=AF=E9=80=89=E5=8F=82?= =?UTF-8?q?=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- typescript/base/tree/ztree/treeview.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/typescript/base/tree/ztree/treeview.ts b/typescript/base/tree/ztree/treeview.ts index 0bdf2ac30b..5ca3995816 100644 --- a/typescript/base/tree/ztree/treeview.ts +++ b/typescript/base/tree/ztree/treeview.ts @@ -62,7 +62,7 @@ export declare class TreeView extends Pane { getValue(): TreeValue; // @ts-ignore - populate(config: {[key: string]: any}): void; + populate(config?: {[key: string]: any}): void; } export interface TreeValue { From 8b63f306ed1485ae22c12c286f6df64ec86f1871 Mon Sep 17 00:00:00 2001 From: iapyang Date: Thu, 17 Dec 2020 18:16:54 +0800 Subject: [PATCH 2/3] =?UTF-8?q?refactor:=20=E4=BF=AE=E6=94=B9=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- typescript/base/tree/ztree/asynctree.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/typescript/base/tree/ztree/asynctree.ts b/typescript/base/tree/ztree/asynctree.ts index b0671368ee..6f33cfff64 100644 --- a/typescript/base/tree/ztree/asynctree.ts +++ b/typescript/base/tree/ztree/asynctree.ts @@ -3,6 +3,8 @@ import { TreeView, TreeValue } from "./treeview"; export declare class AsyncTree extends TreeView { static xtype: string; + nodes: any[]; + _beforeExpandNode(treeId: string, treeNode: T): void; _join(valueA: TreeValue, valueB: TreeValue): TreeValue; From 8c699d0b8ed5efffac80f483ed42a5d5fe560549 Mon Sep 17 00:00:00 2001 From: iapyang Date: Thu, 17 Dec 2020 18:17:41 +0800 Subject: [PATCH 3/3] refactor: any --- typescript/base/tree/ztree/asynctree.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/typescript/base/tree/ztree/asynctree.ts b/typescript/base/tree/ztree/asynctree.ts index 6f33cfff64..7a279bb6a3 100644 --- a/typescript/base/tree/ztree/asynctree.ts +++ b/typescript/base/tree/ztree/asynctree.ts @@ -3,7 +3,7 @@ import { TreeView, TreeValue } from "./treeview"; export declare class AsyncTree extends TreeView { static xtype: string; - nodes: any[]; + nodes: any; _beforeExpandNode(treeId: string, treeNode: T): void;