@aplus-frontend/antdv
Version:
Vue basic component library maintained based on ant-design-vue
23 lines (22 loc) • 1.03 kB
TypeScript
import type { CSSProperties, Ref } from 'vue';
import type { VueNode } from '../_util/type';
import type { BaseCascaderProps, InternalFieldNames, DefaultOptionType, SingleValueType } from './Cascader';
export interface CascaderContextProps {
options: Ref<BaseCascaderProps['options']>;
fieldNames: Ref<InternalFieldNames>;
values: Ref<SingleValueType[]>;
halfValues: Ref<SingleValueType[]>;
changeOnSelect: Ref<boolean>;
onSelect: (valuePath: SingleValueType) => void;
checkable: Ref<boolean | VueNode>;
searchOptions: Ref<DefaultOptionType[]>;
dropdownPrefixCls?: Ref<string>;
loadData: Ref<(selectOptions: DefaultOptionType[]) => void>;
expandTrigger: Ref<'hover' | 'click'>;
expandIcon: Ref<VueNode>;
loadingIcon: Ref<VueNode>;
dropdownMenuColumnStyle: Ref<CSSProperties>;
customSlots: Ref<Record<string, Function>>;
}
export declare const useProvideCascader: (props: CascaderContextProps) => void;
export declare const useInjectCascader: () => CascaderContextProps;