import React from 'react'; export type HorizontalPosition = 'left-bottom' | 'left-top' | 'right-bottom' | 'right-top' | 'left' | 'right'; export type VerticalPosition = 'bottom-left' | 'bottom-right' | 'top-left' | 'top-right' | 'top' | 'bottom'; export interface AbsoluteListProps { children: React.ReactElement; focus: boolean; parentElRef: React.RefObject; fixedWidth: 'min' | boolean; position: HorizontalPosition | VerticalPosition | 'cover'; updateKey?: number | string; /** * @en When it is true, the pop-up layer of option append into document.body; When it is a function, the return value is used as the popup layer container * @cn 为 true 时,选项弹出层在 DOM 中独立 render; 为函数时,返回值作为弹出层容器 * @default false */ absolute?: boolean | (() => HTMLElement | null) | undefined; rootClass?: string; /** * @en options z-index should use with absolute * @cn 选项列表 z-index 值, 需要配合 absolute * @default 1000 */ zIndex?: number; /** * @cn 弹出层距离目标元素的间距 * @default 2 */ popupGap?: number; scrollElRef?: React.RefObject; scrollLeft?: number; scrollTop?: number; popupElRef: React.RefObject; destroy?: boolean; adjust?: boolean; onAdjust?: (position: HorizontalPosition | VerticalPosition) => void; checkPosition?: boolean; lazy?: boolean; offset?: [number, number]; arrowStyleRef?: React.RefObject<{ style: React.CSSProperties; }>; boundary?: () => HTMLElement | null; setSizingStyle?: (v?: React.CSSProperties) => void; } //# sourceMappingURL=absolute-list.type.d.ts.map