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

37 lines
837 B
TypeScript
Raw Normal View History

import type { FC } from "react";
2025-11-08 09:44:00 +08:00
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;
2025-11-08 09:44:00 +08:00
/** 所属区域 */
area?: string;
/** 是否显示所属区域 */
showArea?: boolean;
2025-11-14 15:26:23 +08:00
/** 是否只查看 */
disable?: boolean;
/** 确认选择回调 */
2025-11-08 09:44:00 +08:00
onConfirm?: (longitude: number | string, latitude: number | string, extra: { area: string }) => void;
}
2025-11-08 09:44:00 +08:00
/**
*
*/
declare const MapSelector: FC<MapSelectorProps>;
export default MapSelector;