2025-10-23 16:52:53 +08:00
|
|
|
import type { FC } from "react";
|
|
|
|
|
|
|
|
|
|
export interface MapProps {
|
|
|
|
|
/** 经度属性名,默认 longitude */
|
|
|
|
|
longitudeProps?: string;
|
|
|
|
|
/** 纬度属性名,默认 latitude */
|
|
|
|
|
latitudeProps?: string;
|
|
|
|
|
/** 经纬度是否必填,默认 true */
|
|
|
|
|
required?: boolean;
|
2025-11-08 09:44:00 +08:00
|
|
|
/** 所属区域 */
|
|
|
|
|
area?: string;
|
|
|
|
|
/** 是否显示所属区域 */
|
|
|
|
|
showArea?: boolean;
|
|
|
|
|
/** 确认选择回调 */
|
|
|
|
|
onConfirm?: (longitude: number | string, latitude: number | string, extra: { area: string }) => void;
|
2025-10-23 16:52:53 +08:00
|
|
|
}
|
|
|
|
|
|
2025-11-08 09:44:00 +08:00
|
|
|
/**
|
|
|
|
|
* 定位组件
|
|
|
|
|
*/
|
2025-10-23 16:52:53 +08:00
|
|
|
declare const Map: FC<MapProps>;
|
|
|
|
|
|
|
|
|
|
export default Map;
|