ivue-material-plus
Version:
A high quality UI components Library with Vue.js
205 lines (204 loc) • 7.9 kB
TypeScript
import { nextTick } from 'vue';
import { Options, Result } from './types/cascader';
declare const _sfc_main: import("vue").DefineComponent<{
/**
* 可选项的数据源
*
* @type {Array}
*/
options: {
type: ArrayConstructor;
default: () => any[];
};
/**
* 是否禁用选择组件
*
* @type {Boolean}
*/
disabled: {
type: BooleanConstructor;
default: boolean;
};
/**
* 当此项为 true 时,点选每级菜单选项值都会发生变化
*
* @type {Boolean}
*/
changeOnSelect: {
type: BooleanConstructor;
default: boolean;
};
/**
* 次级菜单展开方式,可选值为 click 或 hover
*
* @type {String}
*/
trigger: {
type: StringConstructor;
};
}, {
prefixCls: string;
menu: import("vue").Ref<any>;
data: {
tmpItem: {
label?: string;
value?: string;
};
sublist: ({
$: import("vue").ComponentInternalInstance;
$data: {};
$props: Partial<{
childrenIcon: string;
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
item: {
type: ObjectConstructor;
};
tmpItem: {
type: ObjectConstructor;
};
childrenIcon: {
type: StringConstructor;
default: string;
};
}>> & {
onClick?: (...args: any[]) => any;
onMouseenter?: (...args: any[]) => any;
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "childrenIcon">;
$attrs: {
[x: string]: unknown;
};
$refs: {
[x: string]: unknown;
};
$slots: Readonly<{
[name: string]: import("vue").Slot;
}>;
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
$emit: (event: "click" | "mouseenter", ...args: any[]) => void;
$el: any;
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
item: {
type: ObjectConstructor;
};
tmpItem: {
type: ObjectConstructor;
};
childrenIcon: {
type: StringConstructor;
default: string;
};
}>> & {
onClick?: (...args: any[]) => any;
onMouseenter?: (...args: any[]) => any;
}, {
prefixCls: string;
classes: import("vue").ComputedRef<(string | {
[x: string]: boolean;
})[]>;
showArrow: import("vue").ComputedRef<number | boolean>;
showLoading: import("vue").ComputedRef<boolean>;
handleClickItem: () => void;
handleHoverItem: () => void;
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "mouseenter")[], string, {
childrenIcon: string;
}, {}, string> & {
beforeCreate?: (() => void) | (() => void)[];
created?: (() => void) | (() => void)[];
beforeMount?: (() => void) | (() => void)[];
mounted?: (() => void) | (() => void)[];
beforeUpdate?: (() => void) | (() => void)[];
updated?: (() => void) | (() => void)[];
activated?: (() => void) | (() => void)[];
deactivated?: (() => void) | (() => void)[];
beforeDestroy?: (() => void) | (() => void)[];
beforeUnmount?: (() => void) | (() => void)[];
destroyed?: (() => void) | (() => void)[];
unmounted?: (() => void) | (() => void)[];
renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>, info: string) => boolean | void)[];
};
$forceUpdate: () => void;
$nextTick: typeof nextTick;
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
} & Readonly<import("vue").ExtractPropTypes<{
item: {
type: ObjectConstructor;
};
tmpItem: {
type: ObjectConstructor;
};
childrenIcon: {
type: StringConstructor;
default: string;
};
}>> & {
onClick?: (...args: any[]) => any;
onMouseenter?: (...args: any[]) => any;
} & import("vue").ShallowUnwrapRef<{
prefixCls: string;
classes: import("vue").ComputedRef<(string | {
[x: string]: boolean;
})[]>;
showArrow: import("vue").ComputedRef<number | boolean>;
showLoading: import("vue").ComputedRef<boolean>;
handleClickItem: () => void;
handleHoverItem: () => void;
}> & {} & import("vue").ComponentCustomProperties & {})[];
result: {
label?: string;
value?: string;
}[];
};
handleClickItem: (item: Options) => void;
handleHoverItem: (item: Options) => void;
handleFindSelected: (params: {
value: string[];
}) => boolean;
handleClear: () => void;
updateResult: (item: Result[]) => void;
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "on-sublist"[], "on-sublist", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
/**
* 可选项的数据源
*
* @type {Array}
*/
options: {
type: ArrayConstructor;
default: () => any[];
};
/**
* 是否禁用选择组件
*
* @type {Boolean}
*/
disabled: {
type: BooleanConstructor;
default: boolean;
};
/**
* 当此项为 true 时,点选每级菜单选项值都会发生变化
*
* @type {Boolean}
*/
changeOnSelect: {
type: BooleanConstructor;
default: boolean;
};
/**
* 次级菜单展开方式,可选值为 click 或 hover
*
* @type {String}
*/
trigger: {
type: StringConstructor;
};
}>> & {
"onOn-sublist"?: (...args: any[]) => any;
}, {
disabled: boolean;
options: unknown[];
changeOnSelect: boolean;
}>;
export default _sfc_main;