feat(Map): 添加只读模式支持
parent
e8aa0495c3
commit
727d27bd69
|
|
@ -11,6 +11,8 @@ export interface MapProps {
|
|||
area?: string;
|
||||
/** 是否显示所属区域 */
|
||||
showArea?: boolean;
|
||||
/** 是否只查看 */
|
||||
disable?: boolean;
|
||||
/** 确认选择回调 */
|
||||
onConfirm?: (longitude: number | string, latitude: number | string, extra: { area: string }) => void;
|
||||
/** 地图类型,默认 baidu */
|
||||
|
|
|
|||
|
|
@ -13,6 +13,7 @@ const Map = (props) => {
|
|||
required = true,
|
||||
area = "",
|
||||
showArea = false,
|
||||
disable = false,
|
||||
type = "baidu",
|
||||
} = props;
|
||||
|
||||
|
|
@ -68,6 +69,7 @@ const Map = (props) => {
|
|||
area={area}
|
||||
type={type}
|
||||
showArea={showArea}
|
||||
disable={disable}
|
||||
onConfirm={handleMapConfirm}
|
||||
/>
|
||||
</>
|
||||
|
|
|
|||
Loading…
Reference in New Issue