21 lines
837 B
TypeScript
21 lines
837 B
TypeScript
|
import * as React from 'react';
|
||
|
import type { CascaderProps, InternalFieldNames, DefaultOptionType, SingleValueType } from './Cascader';
|
||
|
export interface CascaderContextProps {
|
||
|
options: CascaderProps['options'];
|
||
|
fieldNames: InternalFieldNames;
|
||
|
values: SingleValueType[];
|
||
|
halfValues: SingleValueType[];
|
||
|
changeOnSelect?: boolean;
|
||
|
onSelect: (valuePath: SingleValueType) => void;
|
||
|
checkable?: boolean | React.ReactNode;
|
||
|
searchOptions: DefaultOptionType[];
|
||
|
dropdownPrefixCls?: string;
|
||
|
loadData?: (selectOptions: DefaultOptionType[]) => void;
|
||
|
expandTrigger?: 'hover' | 'click';
|
||
|
expandIcon?: React.ReactNode;
|
||
|
loadingIcon?: React.ReactNode;
|
||
|
dropdownMenuColumnStyle?: React.CSSProperties;
|
||
|
}
|
||
|
declare const CascaderContext: React.Context<CascaderContextProps>;
|
||
|
export default CascaderContext;
|