amis-rpc-design/node_modules/rc-cascader/lib/context.d.ts

21 lines
837 B
TypeScript
Raw Normal View History

2023-10-07 19:42:30 +08:00
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;