element-plus
Version:
A Component Library for Vue 3
304 lines (303 loc) • 14.9 kB
TypeScript
import type Tooltip from '../tooltip.vue';
import type { ExtractPropTypes } from 'vue';
declare const triggers: readonly ["hover", "focus", "click", "contextmenu"];
export declare type Trigger = typeof triggers[number];
export declare const useTooltipContentProps: {
readonly appendTo: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (string | HTMLElement) & {}) | (() => string | HTMLElement) | ((new (...args: any[]) => (string | HTMLElement) & {}) | (() => string | HTMLElement))[], unknown, unknown, string, boolean>;
readonly content: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
readonly rawContent: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
readonly persistent: BooleanConstructor;
readonly ariaLabel: StringConstructor;
readonly visible: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (boolean | null) & {}) | (() => boolean | null) | ((new (...args: any[]) => (boolean | null) & {}) | (() => boolean | null))[], unknown, unknown, null, boolean>;
readonly transition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, `${string}-fade-in-linear`, boolean>;
readonly teleported: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
readonly disabled: {
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>>;
readonly required: false;
readonly validator: ((val: unknown) => boolean) | undefined;
__epPropKey: true;
};
readonly id: StringConstructor;
readonly style: {
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => import("vue").StyleValue & {}) | (() => import("vue").StyleValue) | ((new (...args: any[]) => import("vue").StyleValue & {}) | (() => import("vue").StyleValue))[], unknown, unknown>>;
readonly required: false;
readonly validator: ((val: unknown) => boolean) | undefined;
__epPropKey: true;
};
readonly className: {
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | {
[ ]: boolean;
} | (string | {
[ ]: boolean;
} | (string | {
[ ]: boolean;
} | (string | {
[ ]: boolean;
} | (string | {
[ ]: boolean;
} | (string | {
[ ]: boolean;
} | (string | {
[ ]: boolean;
} | (string | {
[ ]: boolean;
} | (string | {
[ ]: boolean;
} | (string | {
[ ]: boolean;
} | (string | {
[ ]: boolean;
} | (string | {
[ ]: boolean;
} | any)[])[])[])[])[])[])[])[])[])[])[]) & {}) | (() => string | {
[ ]: boolean;
} | (string | {
[ ]: boolean;
} | (string | {
[ ]: boolean;
} | (string | {
[ ]: boolean;
} | (string | {
[ ]: boolean;
} | (string | {
[ ]: boolean;
} | (string | {
[ ]: boolean;
} | (string | {
[ ]: boolean;
} | (string | {
[ ]: boolean;
} | (string | {
[ ]: boolean;
} | (string | {
[ ]: boolean;
} | (string | {
[ ]: boolean;
} | any)[])[])[])[])[])[])[])[])[])[])[]) | ((new (...args: any[]) => (string | {
[ ]: boolean;
} | (string | {
[ ]: boolean;
} | (string | {
[ ]: boolean;
} | (string | {
[ ]: boolean;
} | (string | {
[ ]: boolean;
} | (string | {
[ ]: boolean;
} | (string | {
[ ]: boolean;
} | (string | {
[ ]: boolean;
} | (string | {
[ ]: boolean;
} | (string | {
[ ]: boolean;
} | (string | {
[ ]: boolean;
} | (string | {
[ ]: boolean;
} | any)[])[])[])[])[])[])[])[])[])[])[]) & {}) | (() => string | {
[ ]: boolean;
} | (string | {
[ ]: boolean;
} | (string | {
[ ]: boolean;
} | (string | {
[ ]: boolean;
} | (string | {
[ ]: boolean;
} | (string | {
[ ]: boolean;
} | (string | {
[ ]: boolean;
} | (string | {
[ ]: boolean;
} | (string | {
[ ]: boolean;
} | (string | {
[ ]: boolean;
} | (string | {
[ ]: boolean;
} | (string | {
[ ]: boolean;
} | any)[])[])[])[])[])[])[])[])[])[])[]))[], unknown, unknown>>;
readonly required: false;
readonly validator: ((val: unknown) => boolean) | undefined;
__epPropKey: true;
};
readonly effect: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "dark", boolean>;
readonly enterable: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
readonly pure: BooleanConstructor;
readonly focusOnShow: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
readonly trapping: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
readonly popperClass: {
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | {
[ ]: boolean;
} | (string | {
[ ]: boolean;
} | (string | {
[ ]: boolean;
} | (string | {
[ ]: boolean;
} | (string | {
[ ]: boolean;
} | (string | {
[ ]: boolean;
} | (string | {
[ ]: boolean;
} | (string | {
[ ]: boolean;
} | (string | {
[ ]: boolean;
} | (string | {
[ ]: boolean;
} | (string | {
[ ]: boolean;
} | (string | {
[ ]: boolean;
} | any)[])[])[])[])[])[])[])[])[])[])[]) & {}) | (() => string | {
[ ]: boolean;
} | (string | {
[ ]: boolean;
} | (string | {
[ ]: boolean;
} | (string | {
[ ]: boolean;
} | (string | {
[ ]: boolean;
} | (string | {
[ ]: boolean;
} | (string | {
[ ]: boolean;
} | (string | {
[ ]: boolean;
} | (string | {
[ ]: boolean;
} | (string | {
[ ]: boolean;
} | (string | {
[ ]: boolean;
} | (string | {
[ ]: boolean;
} | any)[])[])[])[])[])[])[])[])[])[])[]) | ((new (...args: any[]) => (string | {
[ ]: boolean;
} | (string | {
[ ]: boolean;
} | (string | {
[ ]: boolean;
} | (string | {
[ ]: boolean;
} | (string | {
[ ]: boolean;
} | (string | {
[ ]: boolean;
} | (string | {
[ ]: boolean;
} | (string | {
[ ]: boolean;
} | (string | {
[ ]: boolean;
} | (string | {
[ ]: boolean;
} | (string | {
[ ]: boolean;
} | (string | {
[ ]: boolean;
} | any)[])[])[])[])[])[])[])[])[])[])[]) & {}) | (() => string | {
[ ]: boolean;
} | (string | {
[ ]: boolean;
} | (string | {
[ ]: boolean;
} | (string | {
[ ]: boolean;
} | (string | {
[ ]: boolean;
} | (string | {
[ ]: boolean;
} | (string | {
[ ]: boolean;
} | (string | {
[ ]: boolean;
} | (string | {
[ ]: boolean;
} | (string | {
[ ]: boolean;
} | (string | {
[ ]: boolean;
} | (string | {
[ ]: boolean;
} | any)[])[])[])[])[])[])[])[])[])[])[]))[], unknown, unknown>>;
readonly required: false;
readonly validator: ((val: unknown) => boolean) | undefined;
__epPropKey: true;
};
readonly popperStyle: {
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => import("vue").StyleValue & {}) | (() => import("vue").StyleValue) | ((new (...args: any[]) => import("vue").StyleValue & {}) | (() => import("vue").StyleValue))[], unknown, unknown>>;
readonly required: false;
readonly validator: ((val: unknown) => boolean) | undefined;
__epPropKey: true;
};
readonly referenceEl: {
readonly type: import("vue").PropType<HTMLElement>;
readonly required: false;
readonly validator: ((val: unknown) => boolean) | undefined;
__epPropKey: true;
};
readonly triggerTargetEl: {
readonly type: import("vue").PropType<HTMLElement>;
readonly required: false;
readonly validator: ((val: unknown) => boolean) | undefined;
__epPropKey: true;
};
readonly stopPopperMouseEvent: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
readonly virtualTriggering: BooleanConstructor;
readonly zIndex: NumberConstructor;
readonly boundariesPadding: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
readonly fallbackPlacements: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("element-plus/es/components/popper").Placement[]) | (() => import("element-plus/es/components/popper").Placement[]) | ((new (...args: any[]) => import("element-plus/es/components/popper").Placement[]) | (() => import("element-plus/es/components/popper").Placement[]))[], unknown, unknown, () => never[], boolean>;
readonly gpuAcceleration: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
readonly offset: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 12, boolean>;
readonly placement: import("element-plus/es/utils").EpPropFinalized<StringConstructor, import("element-plus/es/components/popper").Placement, unknown, "bottom", boolean>;
readonly popperOptions: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => Partial<import("element-plus/es/components/popper").Options>) | (() => Partial<import("element-plus/es/components/popper").Options>) | ((new (...args: any[]) => Partial<import("element-plus/es/components/popper").Options>) | (() => Partial<import("element-plus/es/components/popper").Options>))[], unknown, unknown, () => {}, boolean>;
readonly strategy: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "fixed" | "absolute", unknown, "absolute", boolean>;
readonly showAfter: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
readonly hideAfter: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 200, boolean>;
};
export declare const useTooltipTriggerProps: {
readonly disabled: BooleanConstructor;
readonly trigger: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => ("focus" | "hover" | "click" | "contextmenu" | ("focus" | "hover" | "click" | "contextmenu")[]) & {}) | (() => "focus" | "hover" | "click" | "contextmenu" | ("focus" | "hover" | "click" | "contextmenu")[]) | ((new (...args: any[]) => ("focus" | "hover" | "click" | "contextmenu" | ("focus" | "hover" | "click" | "contextmenu")[]) & {}) | (() => "focus" | "hover" | "click" | "contextmenu" | ("focus" | "hover" | "click" | "contextmenu")[]))[], unknown, unknown, "hover", boolean>;
readonly triggerKeys: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => string[]) | (() => string[]) | ((new (...args: any[]) => string[]) | (() => string[]))[], unknown, unknown, () => string[], boolean>;
readonly virtualRef: {
readonly type: import("vue").PropType<import("../../..").Measurable>;
readonly required: false;
readonly validator: ((val: unknown) => boolean) | undefined;
__epPropKey: true;
};
readonly virtualTriggering: BooleanConstructor;
readonly onMouseenter: FunctionConstructor;
readonly onMouseleave: FunctionConstructor;
readonly onClick: FunctionConstructor;
readonly onKeydown: FunctionConstructor;
readonly onFocus: FunctionConstructor;
readonly onBlur: FunctionConstructor;
readonly onContextmenu: FunctionConstructor;
readonly id: StringConstructor;
readonly open: BooleanConstructor;
};
export declare const useTooltipProps: {
openDelay: {
readonly type: import("vue").PropType<number>;
readonly required: false;
readonly validator: ((val: unknown) => boolean) | undefined;
__epPropKey: true;
};
visibleArrow: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
hideAfter: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, number, boolean>;
showArrow: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
};
export declare type ElTooltipContentProps = ExtractPropTypes<typeof useTooltipContentProps>;
export declare type ElTooltipTriggerProps = ExtractPropTypes<typeof useTooltipTriggerProps>;
export declare type ElTooltipProps = ExtractPropTypes<typeof useTooltipProps> & ElTooltipContentProps & ElTooltipTriggerProps;
export declare type TooltipInstance = InstanceType<typeof Tooltip>;
export {};