vue-tianditu2
Version:
22 lines (21 loc) • 520 B
JavaScript
import { watch as f } from "vue";
import { toPoint as i, toLngLat as r } from "../../../utils/converter.mjs";
function w({ props: e, instance: t, map: n }) {
f(
() => e.offset,
(o) => o && t.setOffset(i(o))
), f(
() => e.content,
(o) => o && t.setContent(o)
), f(
() => e.target,
(o) => {
o instanceof Array ? n.openInfoWindow(t, r(o)) : o ? o.openInfoWindow(t) : t.closeInfoWindow();
},
{ immediate: !0 }
);
}
export {
w as useWatch
};
//# sourceMappingURL=watch.mjs.map