From b48987d2ddd272768d474623afb4a4ab5f996ee8 Mon Sep 17 00:00:00 2001 From: windy <1374721899@qq.com> Date: Thu, 21 Jan 2021 18:52:14 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=97=A0JIRA=E4=BB=BB=E5=8A=A1=20=E8=A1=A5?= =?UTF-8?q?xtype?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- typescript/base/single/button/node/textnode.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/typescript/base/single/button/node/textnode.ts b/typescript/base/single/button/node/textnode.ts index fcf65378db..21d22aed3e 100644 --- a/typescript/base/single/button/node/textnode.ts +++ b/typescript/base/single/button/node/textnode.ts @@ -1,6 +1,9 @@ import { NodeButton } from "../button.node"; export declare class TextNode extends NodeButton { + + static xtype: string; + setText(b: string): void; getText(): string; From 64a32a5aa126eaa6bebf056163eb1abe6b22a9b5 Mon Sep 17 00:00:00 2001 From: windy <1374721899@qq.com> Date: Thu, 21 Jan 2021 18:56:01 +0800 Subject: [PATCH 2/2] udpate --- typescript/core/utils/tree.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/typescript/core/utils/tree.ts b/typescript/core/utils/tree.ts index 3ae195351e..cfc773b277 100644 --- a/typescript/core/utils/tree.ts +++ b/typescript/core/utils/tree.ts @@ -26,7 +26,7 @@ export declare class Node { export declare class Tree { root: Node; - addNode(node: Node, newNode: Node, index: number):void; + addNode(node: Node, newNode: Node, index?: number):void; isRoot(node: Node): boolean; getRoot(): Node; clear():void;