UNPKG

tdesign-react

Version:
13 lines (12 loc) 805 B
import React from 'react'; import type { PopupVisibleChangeContext } from '../popup'; import type { TdSelectInputProps } from './type'; export type overlayStyleProps = Pick<TdSelectInputProps, 'popupProps' | 'autoWidth' | 'readonly' | 'readOnly' | 'onPopupVisibleChange' | 'disabled' | 'allowInput' | 'popupVisible' | 'defaultPopupVisible'>; export default function useOverlayInnerStyle(props: overlayStyleProps, extra?: { afterHidePopup?: (ctx: PopupVisibleChangeContext) => void; }): { tOverlayInnerStyle: React.CSSProperties | ((triggerElement: HTMLElement, popupElement: HTMLElement) => import("../common").Styles); innerPopupVisible: boolean; skipNextBlur: React.MutableRefObject<boolean>; onInnerPopupVisibleChange: (visible: boolean, ctx: PopupVisibleChangeContext) => void; };