qc-ui-lit 0.0.5 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -84,8 +84,8 @@ var d = async (e) => {
84
84
  onLoad: () => {
85
85
  this.AMap = window.AMap, this.initAMap();
86
86
  },
87
- onError: (e) => {
88
- console.error("AMap load error", e), this.loading = !1;
87
+ onError: () => {
88
+ this.loading = !1;
89
89
  }
90
90
  });
91
91
  }
@@ -105,10 +105,7 @@ var d = async (e) => {
105
105
  center: this.center,
106
106
  zooms: this.zooms,
107
107
  animateEnable: this.animateEnable
108
- }), this.addEventListeners(), this.dispatchEvent(new CustomEvent("load", { detail: {
109
- map: this.map,
110
- AMap: this.AMap
111
- } })));
108
+ }), this.addEventListeners());
112
109
  }
113
110
  addEventListeners() {
114
111
  this.map && (this.map.on("complete", this.oncomplete), this.map.on("zoomstart", this.onStartOperating), this.map.on("zoomend", this.onEndOperating_timeout), this.map.on("zoomchange", this.onzoomchange), this.map.on("mousedown", this.onStartOperating), this.map.on("mouseup", this.onEndOperating_timeout), this.map.on("touchstart", this.onStartOperating), this.map.on("touchend", this.onEndOperating_timeout));