Files
NapCatQQ/.pnpm-store/v3/files/55/6a22d74381b0df23990ffe47a1be86f57318987d89a5db67182c52147cca565296f928fd6f4e49dd1c5b7ac660d15bca803f106a39070cb800be33d108a24c
T
TanTan e311ca3275
Build NapCat Artifacts / Windows Loader Test (push) Canceled after 0s
Build NapCat Artifacts / Type Check & Test (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Framework (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Shell (push) Canceled after 0s
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

42 lines
1.4 KiB
Plaintext

type OverlayPlacement = "top" | "bottom" | "right" | "left" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end" | "right-start" | "right-end";
interface OverlayOptions {
/**
* Whether the element should render an arrow.
* @default false
*/
showArrow?: boolean;
/**
* The additional offset applied along the main axis between the element and its
* anchor element.
* @default 7 (px) - if `showArrow` is true the default value is 10 (px)
*/
offset?: number;
/**
* The additional offset applied along the cross axis between the element and its
* anchor element.
* @default 0
*/
crossOffset?: number;
/**
* Whether the element should flip its orientation (e.g. top to bottom or left to right) when
* there is insufficient room for it to render completely.
* @default true
*/
shouldFlip?: boolean;
/**
* The placement of the element with respect to its anchor element.
* @default 'top'
*/
placement?: OverlayPlacement;
/**
* The placement padding that should be applied between the element and its
* surrounding container.
* @default 12
*/
containerPadding?: number;
/** Handler that is called when the overlay should close. */
onClose?: () => void;
}
export type { OverlayOptions, OverlayPlacement };