You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
1.1 KiB
31 lines
1.1 KiB
import React from 'react';
|
|
import { RefOptionListProps } from 'rc-select/lib/OptionList';
|
|
import { FlattenDataNode, RawValueType, DataNode } from './interface';
|
|
export interface OptionListProps<OptionsType extends object[]> {
|
|
prefixCls: string;
|
|
id: string;
|
|
options: OptionsType;
|
|
flattenOptions: FlattenDataNode[];
|
|
height: number;
|
|
itemHeight: number;
|
|
virtual?: boolean;
|
|
values: Set<RawValueType>;
|
|
multiple: boolean;
|
|
open: boolean;
|
|
defaultActiveFirstOption?: boolean;
|
|
notFoundContent?: React.ReactNode;
|
|
menuItemSelectedIcon?: any;
|
|
childrenAsData: boolean;
|
|
searchValue: string;
|
|
onSelect: (value: RawValueType, option: {
|
|
selected: boolean;
|
|
}) => void;
|
|
onToggleOpen: (open?: boolean) => void;
|
|
/** Tell Select that some value is now active to make accessibility work */
|
|
onActiveValue: (value: RawValueType, index: number) => void;
|
|
onScroll: React.UIEventHandler<HTMLDivElement>;
|
|
onMouseEnter: () => void;
|
|
}
|
|
declare const RefOptionList: React.ForwardRefExoticComponent<OptionListProps<DataNode[]> & React.RefAttributes<RefOptionListProps>>;
|
|
export default RefOptionList;
|