UNPKG

vue-tianditu2

Version:
39 lines (38 loc) 825 B
import { watch as o } from "vue"; import { toBounds as l } from "../../../utils/converter.mjs"; function u({ props: i, instance: e }) { o( () => i.bounds, (t) => t && e.setBounds(l(t)) ), o( () => i.color, (t) => t && e.setColor(t) ), o( () => i.opacity, (t) => t && e.setOpacity(t) ), o( () => i.weight, (t) => t && e.setWeight(t) ), o( () => i.lineStyle, (t) => t && e.setLineStyle(t) ), o( () => i.fillColor, (t) => t && e.setFillColor(t) ), o( () => i.fillOpacity, (t) => t && e.setFillOpacity(t) ), o( () => i.edit, (t) => t ? e.enableEdit() : e.disableEdit(), { immediate: !0 } ), o( () => i.visible, (t) => t ? e.show() : e.hide(), { immediate: !0 } ); } export { u as useWatch }; //# sourceMappingURL=watch.mjs.map