UNPKG

@uiw/react-baidu-map-info-window

Version:

Baidu Map info-window Components for React.

23 lines (22 loc) 795 B
import { PropsWithChildren } from 'react'; import { InfoWindowProps } from '.'; export interface UseInfoWindow extends PropsWithChildren<InfoWindowProps> { } export declare function useInfoWindow(props?: UseInfoWindow): { /** * 信息窗口实例对象 */ infoWindow: BMap.InfoWindow | undefined; /** * 更新 信息窗口实例对象 */ setInfoWindow: import("react").Dispatch<import("react").SetStateAction<BMap.InfoWindow | undefined>>; isOpen: boolean; setIsOpen: import("react").Dispatch<import("react").SetStateAction<boolean>>; Portal: (props: { children?: React.ReactNode; }) => import("react").ReactPortal | null; PortalTitle: (props: { children?: React.ReactNode; }) => import("react").ReactPortal | null; };