UNPKG

vue-tianditu2

Version:
39 lines (38 loc) 825 B
import { watch as l } from "vue"; import { toLngLats as o } from "../../../utils/converter.mjs"; function h({ props: i, instance: e }) { l( () => i.path, (t) => t && e.setLngLats(o(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