zy-react-library/components/Map/MapSelector.d.ts

35 lines
791 B
TypeScript

import type { FC } from "react";
export interface OnConfirmParams {
/** 经度值 */
longitude: number | string;
/** 纬度值 */
latitude: number | string;
/** 额外参数 */
extra?: { area: string };
}
export interface MapSelectorProps {
/** 是否显示弹窗 */
visible: boolean;
/** 关闭弹窗回调 */
onClose: () => void;
/** 经度值 */
longitude?: number | string;
/** 纬度值 */
latitude?: number | string;
/** 所属区域 */
area?: string;
/** 是否显示所属区域 */
showArea?: boolean;
/** 确认选择回调 */
onConfirm?: (longitude: number | string, latitude: number | string, extra: { area: string }) => void;
}
/**
* 定位组件弹窗
*/
declare const MapSelector: FC<MapSelectorProps>;
export default MapSelector;