zp-bee
Version:
zp-bee,是一款基于 Dumi,由 React + TypeScript 开发的组件库 🎉。
31 lines (30 loc) • 889 B
TypeScript
import React from 'react';
export interface NodeProps {
id?: string;
label?: string;
expand?: string;
children?: string;
}
export interface DataProps {
id?: string | number;
label?: React.ReactNode;
conditionList?: React.ReactNode;
children?: DataProps[];
[props: string]: any;
}
export interface OrgTreeProps {
data: DataProps;
labelWidth?: string | number;
horizontal?: boolean;
collapsable?: boolean;
expandAll?: boolean;
activeId: string | number;
node?: NodeProps;
labelClassName?: string;
conditionClassName?: string;
onClick?: (e: React.MouseEventHandler<HTMLElement>, data: DataProps) => void;
onConditionClick?: (e: React.MouseEventHandler<HTMLElement>, data: DataProps) => void;
renderContent?: (data: DataProps) => void;
}
declare const OrgTree: React.FC<OrgTreeProps>;
export default OrgTree;