UNPKG

@perfma/heaven

Version:

An UI Framework base [Ant Design V4](https://ant.design/components/overview-cn/) for React.

22 lines (21 loc) 739 B
import React from 'react'; import { TreeSelectProps } from 'antd'; import './index.less'; declare type RawValue = string | number; export interface LabeledValue { key?: string; value: RawValue; label: React.ReactNode; } export declare type SelectValue = RawValue | RawValue[] | LabeledValue | LabeledValue[]; declare function ProTreeSelect<T extends SelectValue = SelectValue>(props: TreeSelectProps<T> & { children?: React.ReactNode; selectAllMode?: boolean; }): JSX.Element; declare const _default: typeof ProTreeSelect & { TreeNode: React.FC<import("rc-tree-select/lib/TreeNode").TreeNodeProps>; SHOW_ALL: "SHOW_ALL"; SHOW_PARENT: "SHOW_PARENT"; SHOW_CHILD: "SHOW_CHILD"; }; export default _default;