@uiw/react-baidu-map-info-window
Version:
Baidu Map info-window Components for React.
29 lines (28 loc) • 932 B
TypeScript
import React from 'react';
import { OverlayProps } from '@uiw/react-baidu-map-map';
export * from './useInfoWindow';
export interface InfoWindowProps extends OverlayProps, Omit<BMap.InfoWindowOptions, 'title'>, BMap.InfoWindowEvent {
/**
* 窗口是否打开
* @default true
*/
isOpen?: boolean;
/** 窗口位置经纬度 */
position: BMap.Point;
/** 展示文本内容,支持 HTML 内容字符串 */
content?: string | HTMLElement;
/** 信息窗标题文字 */
title?: string | HTMLElement | JSX.Element;
/**
* 信息窗口最大化时所显示内容,支持HTML内容
*/
maxContent?: string;
/**
* 展示文本内容,类似于 content
*/
children?: JSX.Element;
}
declare const _default: React.ForwardRefExoticComponent<InfoWindowProps & React.RefAttributes<InfoWindowProps & {
infoWindow?: BMap.InfoWindow;
}>>;
export default _default;