You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
1.9 KiB
50 lines
1.9 KiB
import type { ComponentPublicInstance } from 'vue';
|
|
import type { MaybeRef } from '@vueuse/core';
|
|
import type { Modifier } from '@popperjs/core';
|
|
import type { Measurable } from './constants';
|
|
import type { PopperCoreConfigProps } from './content';
|
|
export declare const buildPopperOptions: (props: PopperCoreConfigProps, modifiers?: Modifier<any, any>[]) => {
|
|
modifiers: (Modifier<any, any> | {
|
|
name: string;
|
|
options: {
|
|
offset: number[];
|
|
padding?: undefined;
|
|
fallbackPlacements?: undefined;
|
|
gpuAcceleration?: undefined;
|
|
};
|
|
} | {
|
|
name: string;
|
|
options: {
|
|
padding: {
|
|
top: number;
|
|
bottom: number;
|
|
left: number;
|
|
right: number;
|
|
};
|
|
offset?: undefined;
|
|
fallbackPlacements?: undefined;
|
|
gpuAcceleration?: undefined;
|
|
};
|
|
} | {
|
|
name: string;
|
|
options: {
|
|
padding: number;
|
|
fallbackPlacements: import("@popperjs/core").Placement[] | undefined;
|
|
offset?: undefined;
|
|
gpuAcceleration?: undefined;
|
|
};
|
|
} | {
|
|
name: string;
|
|
options: {
|
|
gpuAcceleration: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
offset?: undefined;
|
|
padding?: undefined;
|
|
fallbackPlacements?: undefined;
|
|
};
|
|
})[];
|
|
placement: "top" | "bottom" | "left" | "right" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end";
|
|
strategy: "fixed" | "absolute";
|
|
onFirstUpdate?: ((arg0: Partial<import("@popperjs/core").State>) => void) | undefined;
|
|
};
|
|
export declare const unwrapMeasurableEl: ($el: MaybeRef<Measurable | undefined | ComponentPublicInstance>) => HTMLElement | undefined;
|