UNPKG

vue-tianditu2

Version:
42 lines (41 loc) 884 B
import { watch as l } from "vue"; import { toLngLat as d } from "../../../utils/converter.mjs"; function h({ props: i, instance: e }) { l( () => i.center, (t) => t && e.setCenter(d(t)) ), l( () => i.radius, (t) => t && e.setRadius(t) ), l( () => i.color, (t) => t && e.setColor(t) ), l( () => i.opacity, (t) => t && e.setOpacity(t) ), l( () => i.weight, (t) => t && e.setWeight(t) ), l( () => i.lineStyle, (t) => t && e.setLineStyle(t) ), l( () => i.fillColor, (t) => t && e.setFillColor(t) ), l( () => i.fillOpacity, (t) => t && e.setFillOpacity(t) ), l( () => i.edit, (t) => t ? e.enableEdit() : e.disableEdit(), { immediate: !0 } ), l( () => i.visible, (t) => t ? e.show() : e.hide(), { immediate: !0 } ); } export { h as useWatch }; //# sourceMappingURL=watch.mjs.map