UNPKG

ze-react-component-library

Version:
19 lines (18 loc) 812 B
import { FC } from "react"; import { useZETreeFilter } from "./useTreeFilter"; import "./ZETreeFilter.less"; import type { ZETreeFilterItemType, RenderItemType, ConditionOptionType, ZETreeFilterProps } from "./ZETreeFilter.types"; export declare const renderTree: ({ arr, conditions, renderItem, onSwitch, level, maxLevel, maxCount, parentId, disableRootDelete, disabled, }: { arr: ZETreeFilterItemType[]; conditions: ConditionOptionType[]; renderItem: RenderItemType; onSwitch: ReturnType<typeof useZETreeFilter>["onSwitch"]; level: number; maxLevel: number; maxCount: number; parentId?: string; disableRootDelete?: ZETreeFilterProps["disableRootDelete"]; disabled?: boolean; }) => JSX.Element; declare const TreeFilter: FC<ZETreeFilterProps>; export default TreeFilter;