UNPKG

hongluan-ui

Version:
40 lines (39 loc) 1.27 kB
import type { PropType } from 'vue'; import type { CascaderValue, CascaderOption, CascaderConfig, CascaderProps } from './types'; export declare const CommonProps: { /** * @description specify which key of node object is used as the node's value */ modelValue: PropType<CascaderValue>; /** * @description data of the options, the key of `value` and `label` can be customize by `CascaderProps`. */ options: { type: PropType<CascaderOption[]>; default: () => CascaderOption[]; }; /** * @description configuration options, see the following `CascaderProps` table. */ props: { type: PropType<CascaderProps>; default: () => CascaderProps; }; }; export declare const DefaultProps: CascaderConfig; export declare const useCascaderConfig: (props: { props: CascaderProps; }) => import("vue").ComputedRef<{ expandTrigger: import("./types").ExpandTrigger; multiple: boolean; checkStrictly: boolean; emitPath: boolean; lazy: boolean; lazyLoad: import("./types").LazyLoad; value: string; label: string; children: string; disabled: string | import("./types").isDisabled; leaf: string | import("./types").isLeaf; hoverThreshold: number; }>;