UNPKG

tdesign-react

Version:
15 lines (14 loc) 697 B
import React from 'react'; import type { TdTreeSelectProps } from './type'; import type { StyledProps, TreeOptionData } from '../common'; import type { TreeInstanceFunctions } from '../tree'; import { PopupRef } from '../popup'; import { InputRef } from '../input'; export interface TreeSelectProps<DataOption extends TreeOptionData = TreeOptionData> extends TdTreeSelectProps<DataOption>, StyledProps { } export interface NodeOptions { label: string; value: string | number; } declare const TreeSelect: React.ForwardRefExoticComponent<TreeSelectProps<TreeOptionData> & React.RefAttributes<Partial<TreeInstanceFunctions<TreeOptionData> & PopupRef & InputRef>>>; export default TreeSelect;