1 | import * as React from 'react';
|
2 | import { OptionsType as SelectOptionsType, RenderNode } from './interface';
|
3 | import { RawValueType, FlattenOptionsType } from './interface/generator';
|
4 | export interface OptionListProps<OptionsType extends object[]> {
|
5 | prefixCls: string;
|
6 | id: string;
|
7 | options: OptionsType;
|
8 | flattenOptions: FlattenOptionsType<OptionsType>;
|
9 | height: number;
|
10 | itemHeight: number;
|
11 | values: Set<RawValueType>;
|
12 | multiple: boolean;
|
13 | open: boolean;
|
14 | defaultActiveFirstOption?: boolean;
|
15 | notFoundContent?: React.ReactNode;
|
16 | menuItemSelectedIcon?: RenderNode;
|
17 | childrenAsData: boolean;
|
18 | searchValue: string;
|
19 | virtual: boolean;
|
20 | onSelect: (value: RawValueType, option: {
|
21 | selected: boolean;
|
22 | }) => void;
|
23 | onToggleOpen: (open?: boolean) => void;
|
24 |
|
25 | onActiveValue: (value: RawValueType, index: number) => void;
|
26 | onScroll: React.UIEventHandler<HTMLDivElement>;
|
27 |
|
28 | onMouseEnter?: React.MouseEventHandler;
|
29 | }
|
30 | export interface RefOptionListProps {
|
31 | onKeyDown: React.KeyboardEventHandler;
|
32 | onKeyUp: React.KeyboardEventHandler;
|
33 | scrollTo?: (index: number) => void;
|
34 | }
|
35 | declare const RefOptionList: React.ForwardRefExoticComponent<OptionListProps<SelectOptionsType> & React.RefAttributes<RefOptionListProps>>;
|
36 | export default RefOptionList;
|