vue-tianditu2
Version:
123 lines (122 loc) • 4.01 kB
TypeScript
import { PropType } from 'vue';
import { DefineEmits, DefineProps, LngLat, Point } from '../../../utils/types';
export declare const NATIVE_PROPS: {
/** 弹出框的最小宽度 */
minWidth: {
type: NumberConstructor;
default: number;
};
/** 弹出框的最大宽度 */
maxWidth: {
type: NumberConstructor;
default: number;
};
/** 设置后,如果内容超过弹出窗口的给定高度则产生一个可以滚动的容器 */
maxHeight: {
type: NumberConstructor;
default: null;
};
/** 是否开启信息窗口打开时地图自动移动(默认关闭) */
autoPan: {
type: BooleanConstructor;
default: boolean;
};
/** 控制弹出窗口中出现的关闭按钮 */
closeButton: {
type: BooleanConstructor;
default: boolean;
};
/** 弹出窗口位置的补偿值。在同一图层中打开弹出窗口时对于控制锚点比较有用 */
offset: {
type: PropType<Point>;
default: () => number[];
};
/** 在地图视图自动平移产生后弹出窗口和地图视图之间的边缘 */
autoPanPadding: {
type: PropType<Point>;
default: () => number[];
};
/** 是否开启点击地图关闭信息窗口(默认关闭) */
closeOnClick: {
type: BooleanConstructor;
default: boolean;
};
};
export declare const EXTRA_PROPS: {
/** 信息浮窗的显示 HTML 内容 */
content: {
type: PropType<string | HTMLElement>;
default: string;
};
/** 打开信息浮窗的覆盖物或信息浮窗所指向的地理位置坐标 */
target: {
type: PropType<T.OverlayBase<any> | LngLat | null>;
default: null;
};
};
export declare const NATIVE_EVENTS: T.InfoWindowEvents;
export declare const EXTRA_EVENTS: {
init: (e: T.InfoWindow) => boolean;
"update:target": (e: any) => boolean;
};
export declare const PROPS: {
/** 信息浮窗的显示 HTML 内容 */
content: {
type: PropType<string | HTMLElement>;
default: string;
};
/** 打开信息浮窗的覆盖物或信息浮窗所指向的地理位置坐标 */
target: {
type: PropType<T.OverlayBase<any> | LngLat | null>;
default: null;
};
/** 弹出框的最小宽度 */
minWidth: {
type: NumberConstructor;
default: number;
};
/** 弹出框的最大宽度 */
maxWidth: {
type: NumberConstructor;
default: number;
};
/** 设置后,如果内容超过弹出窗口的给定高度则产生一个可以滚动的容器 */
maxHeight: {
type: NumberConstructor;
default: null;
};
/** 是否开启信息窗口打开时地图自动移动(默认关闭) */
autoPan: {
type: BooleanConstructor;
default: boolean;
};
/** 控制弹出窗口中出现的关闭按钮 */
closeButton: {
type: BooleanConstructor;
default: boolean;
};
/** 弹出窗口位置的补偿值。在同一图层中打开弹出窗口时对于控制锚点比较有用 */
offset: {
type: PropType<Point>;
default: () => number[];
};
/** 在地图视图自动平移产生后弹出窗口和地图视图之间的边缘 */
autoPanPadding: {
type: PropType<Point>;
default: () => number[];
};
/** 是否开启点击地图关闭信息窗口(默认关闭) */
closeOnClick: {
type: BooleanConstructor;
default: boolean;
};
};
export declare const EVENTS: {
init: (e: T.InfoWindow) => boolean;
"update:target": (e: any) => boolean;
close(e: Pick<T.InfoWindowEvent, "type" | "target" | "lnglat">): void;
open(e: Pick<T.InfoWindowEvent, "type" | "target" | "lnglat">): void;
clickclose(e: Pick<T.InfoWindowEvent, "type" | "target">): void;
};
export type Props = DefineProps<typeof PROPS>;
export type Emit = DefineEmits<typeof EVENTS>;