Skip to content

Commit

Permalink
feat:fix GraphinTreeData type
Browse files Browse the repository at this point in the history
  • Loading branch information
pomelo-nwu committed Feb 6, 2021
1 parent 728b6b5 commit 65c8a6f
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions packages/graphin/src/typings/type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,18 @@ export interface GraphinData {
nodes: IUserNode[];
edges: IUserEdge[];
combos?: Combo[] | undefined | null;
children?: any;
}
export interface GraphinTreeData {
id: string;
children: Partial<GraphinTreeData>[];
children?: GraphinTreeData[];
/** 坐标X */
x?: number;
/** 坐标Y */
y?: number;
/** 节点的样式 */
style?: Partial<NodeStyle>;
/** 节点当前的状态 */
status?: Partial<ElementStatus>;
}

export interface GraphinProps {
Expand Down

0 comments on commit 65c8a6f

Please sign in to comment.