24 lines
893 B
TypeScript
24 lines
893 B
TypeScript
import * as React from 'react';
|
|
import type { RawValueType, RenderNode } from './BaseSelect';
|
|
import type { BaseOptionType, FieldNames, OnActiveValue, OnInternalSelect, SelectProps } from './Select';
|
|
import type { FlattenOptionData } from './interface';
|
|
export interface SelectContextProps {
|
|
options: BaseOptionType[];
|
|
optionRender?: SelectProps['optionRender'];
|
|
flattenOptions: FlattenOptionData<BaseOptionType>[];
|
|
onActiveValue: OnActiveValue;
|
|
defaultActiveFirstOption?: boolean;
|
|
onSelect: OnInternalSelect;
|
|
menuItemSelectedIcon?: RenderNode;
|
|
rawValues: Set<RawValueType>;
|
|
fieldNames?: FieldNames;
|
|
virtual?: boolean;
|
|
direction?: 'ltr' | 'rtl';
|
|
listHeight?: number;
|
|
listItemHeight?: number;
|
|
childrenAsData?: boolean;
|
|
maxCount?: number;
|
|
}
|
|
declare const SelectContext: React.Context<SelectContextProps>;
|
|
export default SelectContext;
|