organization-chart-vue3
Version:
A lightweight, interactive organization chart component for Vue 3 with collapsible nodes, TypeScript types, custom slots, and selection events
7 lines (6 loc) • 587 B
TypeScript
import type { OrganizationChartMember, OrganizationChartNode } from "../types";
export declare function getRootPath(node: OrganizationChartNode): string[];
export declare function getChildPath(parentPath: string[], node: OrganizationChartNode, index: number): string[];
export declare function getNodeKey(node: OrganizationChartNode, path: string[]): string;
export declare function getMemberKey(nodeKey: string, member: OrganizationChartMember, index: number): string;
export declare function getMemberPath(nodePath: string[], member: OrganizationChartMember, index: number): string[];