123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370 |
- import type { SFCWithInstall } from 'element-plus/es/utils';
- declare const _CascaderPanel: SFCWithInstall<import("vue").DefineComponent<{
- border: {
- type: BooleanConstructor;
- default: boolean;
- };
- renderLabel: import("vue").PropType<import("./src/node").RenderLabel>;
- modelValue: import("vue").PropType<import("./src/node").CascaderValue>;
- options: {
- type: import("vue").PropType<import("./src/node").CascaderOption[]>;
- default: () => import("./src/node").CascaderOption[];
- };
- props: {
- type: import("vue").PropType<import("./src/node").CascaderProps>;
- default: () => import("./src/node").CascaderProps;
- };
- }, {
- ns: {
- namespace: import("vue").Ref<string>;
- b: (blockSuffix?: string) => string;
- e: (element?: string | undefined) => string;
- m: (modifier?: string | undefined) => string;
- be: (blockSuffix?: string | undefined, element?: string | undefined) => string;
- em: (element?: string | undefined, modifier?: string | undefined) => string;
- bm: (blockSuffix?: string | undefined, modifier?: string | undefined) => string;
- bem: (blockSuffix?: string | undefined, element?: string | undefined, modifier?: string | undefined) => string;
- is: {
- (name: string, state: boolean | undefined): string;
- (name: string): string;
- };
- cssVar: (object: Record<string, string>) => Record<string, string>;
- cssVarName: (name: string) => string;
- cssVarBlock: (object: Record<string, string>) => Record<string, string>;
- cssVarBlockName: (name: string) => string;
- };
- menuList: import("vue").Ref<any[]>;
- menus: import("vue").Ref<{
- readonly uid: number;
- readonly level: number;
- readonly value: import("./src/node").CascaderNodeValue;
- readonly label: string;
- readonly pathNodes: any[];
- readonly pathValues: import("./src/node").CascaderNodeValue[];
- readonly pathLabels: string[];
- childrenData: {
- [x: string]: unknown;
- label?: string | undefined;
- value?: import("./src/node").CascaderNodeValue | undefined;
- children?: any[] | undefined;
- disabled?: boolean | undefined;
- leaf?: boolean | undefined;
- }[] | undefined;
- children: any[];
- text: string;
- loaded: boolean;
- checked: boolean;
- indeterminate: boolean;
- loading: boolean;
- readonly data: {
- [x: string]: unknown;
- label?: string | undefined;
- value?: import("./src/node").CascaderNodeValue | undefined;
- children?: any[] | undefined;
- disabled?: boolean | undefined;
- leaf?: boolean | undefined;
- } | null;
- readonly config: {
- expandTrigger: import("./src/node").ExpandTrigger;
- multiple: boolean;
- checkStrictly: boolean;
- emitPath: boolean;
- lazy: boolean;
- lazyLoad: import("./src/node").LazyLoad;
- value: string;
- label: string;
- children: string;
- disabled: string | import("./src/node").isDisabled;
- leaf: string | import("./src/node").isLeaf;
- hoverThreshold: number;
- };
- readonly parent?: any | undefined;
- readonly root: boolean;
- readonly isDisabled: boolean;
- readonly isLeaf: boolean;
- readonly valueByOption: import("./src/node").CascaderNodeValue | import("./src/node").CascaderNodeValue[];
- appendChild: (childData: import("./src/node").CascaderOption) => import("./src/node").default;
- calcText: (allLevels: boolean, separator: string) => string;
- broadcast: (event: string, ...args: unknown[]) => void;
- emit: (event: string, ...args: unknown[]) => void;
- onParentCheck: (checked: boolean) => void;
- onChildCheck: () => void;
- setCheckState: (checked: boolean) => void;
- doCheck: (checked: boolean) => void;
- }[][]>;
- checkedNodes: import("vue").Ref<{
- readonly uid: number;
- readonly level: number;
- readonly value: import("./src/node").CascaderNodeValue;
- readonly label: string;
- readonly pathNodes: any[];
- readonly pathValues: import("./src/node").CascaderNodeValue[];
- readonly pathLabels: string[];
- childrenData: {
- [x: string]: unknown;
- label?: string | undefined;
- value?: import("./src/node").CascaderNodeValue | undefined;
- children?: any[] | undefined;
- disabled?: boolean | undefined;
- leaf?: boolean | undefined;
- }[] | undefined;
- children: any[];
- text: string;
- loaded: boolean;
- checked: boolean;
- indeterminate: boolean;
- loading: boolean;
- readonly data: {
- [x: string]: unknown;
- label?: string | undefined;
- value?: import("./src/node").CascaderNodeValue | undefined;
- children?: any[] | undefined;
- disabled?: boolean | undefined;
- leaf?: boolean | undefined;
- } | null;
- readonly config: {
- expandTrigger: import("./src/node").ExpandTrigger;
- multiple: boolean;
- checkStrictly: boolean;
- emitPath: boolean;
- lazy: boolean;
- lazyLoad: import("./src/node").LazyLoad;
- value: string;
- label: string;
- children: string;
- disabled: string | import("./src/node").isDisabled;
- leaf: string | import("./src/node").isLeaf;
- hoverThreshold: number;
- };
- readonly parent?: any | undefined;
- readonly root: boolean;
- readonly isDisabled: boolean;
- readonly isLeaf: boolean;
- readonly valueByOption: import("./src/node").CascaderNodeValue | import("./src/node").CascaderNodeValue[];
- appendChild: (childData: import("./src/node").CascaderOption) => import("./src/node").default;
- calcText: (allLevels: boolean, separator: string) => string;
- broadcast: (event: string, ...args: unknown[]) => void;
- emit: (event: string, ...args: unknown[]) => void;
- onParentCheck: (checked: boolean) => void;
- onChildCheck: () => void;
- setCheckState: (checked: boolean) => void;
- doCheck: (checked: boolean) => void;
- }[]>;
- handleKeyDown: (e: KeyboardEvent) => void;
- handleCheckChange: (node: import("./src/node").default, checked: boolean, emitClose?: boolean | undefined) => void;
- getFlattedNodes: (leafOnly: boolean) => import("./src/node").default[] | undefined;
- getCheckedNodes: (leafOnly: boolean) => import("./src/node").default[] | undefined;
- clearCheckedNodes: () => void;
- calculateCheckedValue: () => void;
- scrollToExpandingNode: () => void;
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change" | "close" | "expand-change")[], "update:modelValue" | "change" | "close" | "expand-change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
- border: {
- type: BooleanConstructor;
- default: boolean;
- };
- renderLabel: import("vue").PropType<import("./src/node").RenderLabel>;
- modelValue: import("vue").PropType<import("./src/node").CascaderValue>;
- options: {
- type: import("vue").PropType<import("./src/node").CascaderOption[]>;
- default: () => import("./src/node").CascaderOption[];
- };
- props: {
- type: import("vue").PropType<import("./src/node").CascaderProps>;
- default: () => import("./src/node").CascaderProps;
- };
- }>> & {
- onChange?: ((...args: any[]) => any) | undefined;
- onClose?: ((...args: any[]) => any) | undefined;
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
- "onExpand-change"?: ((...args: any[]) => any) | undefined;
- }, {
- props: import("./src/node").CascaderProps;
- border: boolean;
- options: import("./src/node").CascaderOption[];
- }>>;
- export default _CascaderPanel;
- export declare const ElCascaderPanel: SFCWithInstall<import("vue").DefineComponent<{
- border: {
- type: BooleanConstructor;
- default: boolean;
- };
- renderLabel: import("vue").PropType<import("./src/node").RenderLabel>;
- modelValue: import("vue").PropType<import("./src/node").CascaderValue>;
- options: {
- type: import("vue").PropType<import("./src/node").CascaderOption[]>;
- default: () => import("./src/node").CascaderOption[];
- };
- props: {
- type: import("vue").PropType<import("./src/node").CascaderProps>;
- default: () => import("./src/node").CascaderProps;
- };
- }, {
- ns: {
- namespace: import("vue").Ref<string>;
- b: (blockSuffix?: string) => string;
- e: (element?: string | undefined) => string;
- m: (modifier?: string | undefined) => string;
- be: (blockSuffix?: string | undefined, element?: string | undefined) => string;
- em: (element?: string | undefined, modifier?: string | undefined) => string;
- bm: (blockSuffix?: string | undefined, modifier?: string | undefined) => string;
- bem: (blockSuffix?: string | undefined, element?: string | undefined, modifier?: string | undefined) => string;
- is: {
- (name: string, state: boolean | undefined): string;
- (name: string): string;
- };
- cssVar: (object: Record<string, string>) => Record<string, string>;
- cssVarName: (name: string) => string;
- cssVarBlock: (object: Record<string, string>) => Record<string, string>;
- cssVarBlockName: (name: string) => string;
- };
- menuList: import("vue").Ref<any[]>;
- menus: import("vue").Ref<{
- readonly uid: number;
- readonly level: number;
- readonly value: import("./src/node").CascaderNodeValue;
- readonly label: string;
- readonly pathNodes: any[];
- readonly pathValues: import("./src/node").CascaderNodeValue[];
- readonly pathLabels: string[];
- childrenData: {
- [x: string]: unknown;
- label?: string | undefined;
- value?: import("./src/node").CascaderNodeValue | undefined;
- children?: any[] | undefined;
- disabled?: boolean | undefined;
- leaf?: boolean | undefined;
- }[] | undefined;
- children: any[];
- text: string;
- loaded: boolean;
- checked: boolean;
- indeterminate: boolean;
- loading: boolean;
- readonly data: {
- [x: string]: unknown;
- label?: string | undefined;
- value?: import("./src/node").CascaderNodeValue | undefined;
- children?: any[] | undefined;
- disabled?: boolean | undefined;
- leaf?: boolean | undefined;
- } | null;
- readonly config: {
- expandTrigger: import("./src/node").ExpandTrigger;
- multiple: boolean;
- checkStrictly: boolean;
- emitPath: boolean;
- lazy: boolean;
- lazyLoad: import("./src/node").LazyLoad;
- value: string;
- label: string;
- children: string;
- disabled: string | import("./src/node").isDisabled;
- leaf: string | import("./src/node").isLeaf;
- hoverThreshold: number;
- };
- readonly parent?: any | undefined;
- readonly root: boolean;
- readonly isDisabled: boolean;
- readonly isLeaf: boolean;
- readonly valueByOption: import("./src/node").CascaderNodeValue | import("./src/node").CascaderNodeValue[];
- appendChild: (childData: import("./src/node").CascaderOption) => import("./src/node").default;
- calcText: (allLevels: boolean, separator: string) => string;
- broadcast: (event: string, ...args: unknown[]) => void;
- emit: (event: string, ...args: unknown[]) => void;
- onParentCheck: (checked: boolean) => void;
- onChildCheck: () => void;
- setCheckState: (checked: boolean) => void;
- doCheck: (checked: boolean) => void;
- }[][]>;
- checkedNodes: import("vue").Ref<{
- readonly uid: number;
- readonly level: number;
- readonly value: import("./src/node").CascaderNodeValue;
- readonly label: string;
- readonly pathNodes: any[];
- readonly pathValues: import("./src/node").CascaderNodeValue[];
- readonly pathLabels: string[];
- childrenData: {
- [x: string]: unknown;
- label?: string | undefined;
- value?: import("./src/node").CascaderNodeValue | undefined;
- children?: any[] | undefined;
- disabled?: boolean | undefined;
- leaf?: boolean | undefined;
- }[] | undefined;
- children: any[];
- text: string;
- loaded: boolean;
- checked: boolean;
- indeterminate: boolean;
- loading: boolean;
- readonly data: {
- [x: string]: unknown;
- label?: string | undefined;
- value?: import("./src/node").CascaderNodeValue | undefined;
- children?: any[] | undefined;
- disabled?: boolean | undefined;
- leaf?: boolean | undefined;
- } | null;
- readonly config: {
- expandTrigger: import("./src/node").ExpandTrigger;
- multiple: boolean;
- checkStrictly: boolean;
- emitPath: boolean;
- lazy: boolean;
- lazyLoad: import("./src/node").LazyLoad;
- value: string;
- label: string;
- children: string;
- disabled: string | import("./src/node").isDisabled;
- leaf: string | import("./src/node").isLeaf;
- hoverThreshold: number;
- };
- readonly parent?: any | undefined;
- readonly root: boolean;
- readonly isDisabled: boolean;
- readonly isLeaf: boolean;
- readonly valueByOption: import("./src/node").CascaderNodeValue | import("./src/node").CascaderNodeValue[];
- appendChild: (childData: import("./src/node").CascaderOption) => import("./src/node").default;
- calcText: (allLevels: boolean, separator: string) => string;
- broadcast: (event: string, ...args: unknown[]) => void;
- emit: (event: string, ...args: unknown[]) => void;
- onParentCheck: (checked: boolean) => void;
- onChildCheck: () => void;
- setCheckState: (checked: boolean) => void;
- doCheck: (checked: boolean) => void;
- }[]>;
- handleKeyDown: (e: KeyboardEvent) => void;
- handleCheckChange: (node: import("./src/node").default, checked: boolean, emitClose?: boolean | undefined) => void;
- getFlattedNodes: (leafOnly: boolean) => import("./src/node").default[] | undefined;
- getCheckedNodes: (leafOnly: boolean) => import("./src/node").default[] | undefined;
- clearCheckedNodes: () => void;
- calculateCheckedValue: () => void;
- scrollToExpandingNode: () => void;
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change" | "close" | "expand-change")[], "update:modelValue" | "change" | "close" | "expand-change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
- border: {
- type: BooleanConstructor;
- default: boolean;
- };
- renderLabel: import("vue").PropType<import("./src/node").RenderLabel>;
- modelValue: import("vue").PropType<import("./src/node").CascaderValue>;
- options: {
- type: import("vue").PropType<import("./src/node").CascaderOption[]>;
- default: () => import("./src/node").CascaderOption[];
- };
- props: {
- type: import("vue").PropType<import("./src/node").CascaderProps>;
- default: () => import("./src/node").CascaderProps;
- };
- }>> & {
- onChange?: ((...args: any[]) => any) | undefined;
- onClose?: ((...args: any[]) => any) | undefined;
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
- "onExpand-change"?: ((...args: any[]) => any) | undefined;
- }, {
- props: import("./src/node").CascaderProps;
- border: boolean;
- options: import("./src/node").CascaderOption[];
- }>>;
- export * from './src/types';
- export * from './src/config';
|