mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-29 05:29:37 +08:00
35 lines
1.1 KiB
TypeScript
35 lines
1.1 KiB
TypeScript
import * as React from 'react';
|
|
import { AbstractSelectProps } from '../select';
|
|
|
|
export interface TreeData {
|
|
key: string;
|
|
value: string;
|
|
label: React.ReactNode;
|
|
children?: TreeData[];
|
|
}
|
|
|
|
export interface TreeSelectProps extends AbstractSelectProps {
|
|
value?: string | Array<any>;
|
|
defaultValue?: string | Array<any>;
|
|
multiple?: boolean;
|
|
onSelect?: (value: any) => void;
|
|
onChange?: (value: any, label: any) => void;
|
|
onSearch?: (value: any) => void;
|
|
searchPlaceholder?: string;
|
|
dropdownStyle?: React.CSSProperties;
|
|
dropdownMatchSelectWidth?: boolean;
|
|
treeDefaultExpandAll?: boolean;
|
|
treeCheckable?: boolean | React.ReactNode;
|
|
treeDefaultExpandedKeys?: Array<string>;
|
|
filterTreeNode?: (inputValue: string, treeNode: any) => boolean | boolean;
|
|
treeNodeFilterProp?: string;
|
|
treeNodeLabelProp?: string;
|
|
treeData?: Array<TreeData>;
|
|
treeDataSimpleMode?: boolean | Object;
|
|
loadData?: (node: any) => void;
|
|
showCheckedStrategy?: 'SHOW_ALL' | 'SHOW_PARENT' | 'SHOW_CHILD';
|
|
labelInValue?: boolean;
|
|
treeCheckStrictly?: boolean;
|
|
getPopupContainer?: (triggerNode: Element) => HTMLElement;
|
|
}
|