UNPKG

vue-tianditu2

Version:
24 lines (23 loc) 801 B
import { defineComponent as r, onBeforeMount as m, onUnmounted as i } from "vue"; import { useMapRoot as a } from "../../use/mapRoot.mjs"; import { useEvent as s } from "../../use/event.mjs"; import { EVENTS as c, PROPS as f, NATIVE_EVENTS as p } from "./use/const.mjs"; import { useInit as u } from "./use/init.mjs"; import { useWatch as d } from "./use/watch.mjs"; const N = r({ name: "TdtCircle", props: f, emits: c, setup(o, { emit: n }) { return m(async () => { i(() => t && (e == null ? void 0 : e.removeOverLay(t))); const e = await a(), t = u(o); e.addOverLay(t), s({ events: p, emit: n, instance: t, extData: o.extData }), d({ props: o, instance: t }), n("init", t); }), () => { }; } }); export { N as TdtCircle }; //# sourceMappingURL=index.mjs.map