22 lines
900 B
TypeScript
22 lines
900 B
TypeScript
import * as React from 'react';
|
|
import type { CascaderProps, InternalFieldNames, DefaultOptionType, SingleValueType } from './Cascader';
|
|
export interface CascaderContextProps {
|
|
options: NonNullable<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;
|
|
optionRender?: CascaderProps['optionRender'];
|
|
}
|
|
declare const CascaderContext: React.Context<CascaderContextProps>;
|
|
export default CascaderContext;
|