From 3bfb09859b7fb5c08a18339dc0b5bbc470349049 Mon Sep 17 00:00:00 2001 From: dailer Date: Fri, 11 Feb 2022 09:43:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A0JIRA=20:=20=E5=A3=B0=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- typescript/base/combination/combo.ts | 1 + typescript/core/utils/tree.ts | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/typescript/base/combination/combo.ts b/typescript/base/combination/combo.ts index bec2a7b75..249e7e6f2 100644 --- a/typescript/base/combination/combo.ts +++ b/typescript/base/combination/combo.ts @@ -34,6 +34,7 @@ export declare class Combo extends Widget { adjustYOffset?: number; hideChecker?: Function; offsetStyle?: 'left' | 'right' | 'center'; + value?:any; el?: any; popup?: any; comboClass?: string; diff --git a/typescript/core/utils/tree.ts b/typescript/core/utils/tree.ts index c300ad100..643d99cd0 100644 --- a/typescript/core/utils/tree.ts +++ b/typescript/core/utils/tree.ts @@ -43,8 +43,8 @@ export declare class Tree { postOrderTraverse(callback: Function): void; nrPostOrderTraverse(callback: Function): void; static transformToArrayFormat(nodes: T | T[], pId: any, childKey?: string): T[]; - static arrayFormat(nodes: Node | Node[], pId: any): Node[]; - static transformToTreeFormat(sNodes: T[]): Node[]; - static treeFormat(sNodes: Node | Node[]): Node[]; - static traversal(array: Node[], callback: Function, pNode: Node): void; + static arrayFormat(nodes: T | T[], pId: any): T[]; + static transformToTreeFormat(sNodes: T[]): T[]; + static treeFormat(sNodes: T | T[]): T[]; + static traversal(array: T[], callback: (index:number,node:T,pNode?:T)=> boolean | void, pNode?: T): void; }