UNPKG

vue-tianditu2

Version:
55 lines (54 loc) 1.19 kB
import { watch as i } from "vue"; import { toLngLat as m, toPoint as r } from "../../../utils/converter.mjs"; function f({ props: o, instance: t }) { i( () => o.position, (e) => e && t.setLngLat(m(e)) ), i( () => o.text, (e) => e && t.setLabel(e) ), i( () => o.offset, (e) => e && t.setOffset(r(e)) ), i( () => o.title, (e) => e && t.setTitle(e), { immediate: !0 } ), i( () => o.zIndex, (e) => e && t.setZIndex(e), { immediate: !0 } ), i( () => o.fontSize, (e) => e && t.setFontSize(e), { immediate: !0 } ), i( () => o.fontColor, (e) => e && t.setFontColor(e), { immediate: !0 } ), i( () => o.backgroundColor, (e) => e && t.setBackgroundColor(e), { immediate: !0 } ), i( () => o.borderLine, (e) => e && t.setBorderLine(e), { immediate: !0 } ), i( () => o.borderColor, (e) => e && t.setBorderColor(e), { immediate: !0 } ), i( () => o.opacity, (e) => e && t.setOpacity(e), { immediate: !0 } ), i( () => o.visible, (e) => e ? t.show() : t.hide(), { immediate: !0 } ); } export { f as useWatch }; //# sourceMappingURL=watch.mjs.map