UNPKG

jamis

Version:

一种支持通过JSON配置方式生成页面的组件库

8 lines (7 loc) 452 B
import type { RefObject } from 'react'; import type { PopOverHocConfig, SchemaClassName, UsePopOverableProps } from '../types'; export declare const usePopOverable: (props: UsePopOverableProps, config: PopOverHocConfig | undefined, containerRef: RefObject<HTMLElement | null>) => { wrapPopOver: (renderContainer: (containerClassName?: SchemaClassName) => JSX.Element) => JSX.Element; closePopOver: () => void; togglePopOver: () => void; };