@idmwx/idmui-gl4 0.9.5 → 0.9.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.
package/dist/index.js CHANGED
@@ -8306,7 +8306,7 @@ const Cs = {
8306
8306
  Authorization: this.token || this.defaultMeteoToken
8307
8307
  }
8308
8308
  });
8309
- (a == null ? void 0 : a.data.code) === 0 && (this.meteoData = a == null ? void 0 : a.data.data, this.initTableData(this.meteoData), this.handleRender()), this.loading = !1;
8309
+ (a == null ? void 0 : a.data.code) === 0 && (this.meteoData = a == null ? void 0 : a.data.data, this.meteoData.lng = t.lng, this.meteoData.lat = t.lat, this.initTableData(this.meteoData), this.handleRender([t.lng, t.lat])), this.loading = !1;
8310
8310
  },
8311
8311
  async fetchHistoryData(t) {
8312
8312
  this.loading = !0, this.meteoData = [];
@@ -8323,7 +8323,7 @@ const Cs = {
8323
8323
  Authorization: this.token || this.defaultMeteoToken
8324
8324
  }
8325
8325
  });
8326
- (a == null ? void 0 : a.data.code) === 0 && (this.meteoData = a == null ? void 0 : a.data.data, this.meteoData.lng = t.lng, this.meteoData.lat = t.lat, this.initTableData(this.meteoData), this.handleRender()), this.loading = !1;
8326
+ (a == null ? void 0 : a.data.code) === 0 && (this.meteoData = a == null ? void 0 : a.data.data, this.meteoData.lng = t.lng, this.meteoData.lat = t.lat, this.initTableData(this.meteoData), this.handleRender([t.lng, t.lat])), this.loading = !1;
8327
8327
  },
8328
8328
  initTableData(t) {
8329
8329
  var o, i, a, r, s, n, c, g, p, d, f, z, x, S, C, N, M, L, v, _, P, k, R, V, X, q, Y, $, ee, Q, se, de, pe, me, K, ie, F, le, fe, xe, ve;
@@ -8356,24 +8356,24 @@ const Cs = {
8356
8356
  i.innerHTML = '<svg t="1755510770354" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5552" width="200" height="200"><path d="M511.960615 827.234462s330.358154-215.906462 330.358154-465.526154C842.318769 183.650462 694.468923 39.384615 512 39.384615S181.563077 183.689846 181.563077 361.668923c0 249.659077 330.397538 465.565538 330.397538 465.565539z" fill="#FF8C00" p-id="5553"></path><path d="M511.921231 496.836923a127.054769 127.054769 0 1 0 0-254.148923 127.054769 127.054769 0 0 0 0 254.148923z" fill="#FFFFFF" p-id="5554"></path><path d="M354.461538 945.230769a157.538462 39.384615 0 1 0 315.076924 0 157.538462 39.384615 0 1 0-315.076924 0Z" fill="#494C4F" opacity=".4" p-id="5555"></path></svg>', i.firstChild.style.height = "28px", i.firstChild.style.width = "28px", this.positionMarker = new we.Marker(i).setLngLat([this.point.lng, this.point.lat]).setOffset([0, -14]).addTo(this.map);
8357
8357
  }
8358
8358
  },
8359
- handleRender() {
8360
- this.point && (this.map.flyTo({
8361
- center: [this.point.lng, this.point.lat],
8359
+ handleRender(t) {
8360
+ t && (this.map.flyTo({
8361
+ center: t,
8362
8362
  duration: 800
8363
8363
  }), setTimeout(() => {
8364
8364
  this.showMeteo = !0, this.$nextTick(() => {
8365
- var t, e, o;
8366
- if ((t = this.positionMarker) == null || t.remove(), this.positionMarker = void 0, this.meteoMarker)
8367
- (e = this.meteoMarker) == null || e.setLngLat([this.point.lng, this.point.lat]);
8365
+ var e, o, i;
8366
+ if ((e = this.positionMarker) == null || e.remove(), this.positionMarker = void 0, this.meteoMarker)
8367
+ (o = this.meteoMarker) == null || o.setLngLat(t);
8368
8368
  else {
8369
- const i = document.createElement("div");
8370
- i.innerHTML = '<svg t="1755510770354" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5552" width="200" height="200"><path d="M511.960615 827.234462s330.358154-215.906462 330.358154-465.526154C842.318769 183.650462 694.468923 39.384615 512 39.384615S181.563077 183.689846 181.563077 361.668923c0 249.659077 330.397538 465.565538 330.397538 465.565539z" fill="#FF8C00" p-id="5553"></path><path d="M511.921231 496.836923a127.054769 127.054769 0 1 0 0-254.148923 127.054769 127.054769 0 0 0 0 254.148923z" fill="#FFFFFF" p-id="5554"></path><path d="M354.461538 945.230769a157.538462 39.384615 0 1 0 315.076924 0 157.538462 39.384615 0 1 0-315.076924 0Z" fill="#494C4F" opacity=".4" p-id="5555"></path></svg>', i.firstChild.style.height = "28px", i.firstChild.style.width = "28px", this.meteoMarker = new we.Marker(i).setLngLat([this.point.lng, this.point.lat]).setOffset([0, -14]).addTo(this.map);
8369
+ const a = document.createElement("div");
8370
+ a.innerHTML = '<svg t="1755510770354" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5552" width="200" height="200"><path d="M511.960615 827.234462s330.358154-215.906462 330.358154-465.526154C842.318769 183.650462 694.468923 39.384615 512 39.384615S181.563077 183.689846 181.563077 361.668923c0 249.659077 330.397538 465.565538 330.397538 465.565539z" fill="#FF8C00" p-id="5553"></path><path d="M511.921231 496.836923a127.054769 127.054769 0 1 0 0-254.148923 127.054769 127.054769 0 0 0 0 254.148923z" fill="#FFFFFF" p-id="5554"></path><path d="M354.461538 945.230769a157.538462 39.384615 0 1 0 315.076924 0 157.538462 39.384615 0 1 0-315.076924 0Z" fill="#494C4F" opacity=".4" p-id="5555"></path></svg>', a.firstChild.style.height = "28px", a.firstChild.style.width = "28px", this.meteoMarker = new we.Marker(a).setLngLat(t).setOffset([0, -14]).addTo(this.map);
8371
8371
  }
8372
8372
  if (this.meteoInfoMarker)
8373
- (o = this.meteoInfoMarker) == null || o.setLngLat([this.point.lng, this.point.lat]);
8373
+ (i = this.meteoInfoMarker) == null || i.setLngLat(t);
8374
8374
  else {
8375
- const i = document.getElementById("idm-gl4-spot-meteo");
8376
- this.meteoInfoMarker = new we.Marker(i).setLngLat([this.point.lng, this.point.lat]).setOffset([0, -200]).addTo(this.map);
8375
+ const a = document.getElementById("idm-gl4-spot-meteo");
8376
+ this.meteoInfoMarker = new we.Marker(a).setLngLat(t).setOffset([0, -200]).addTo(this.map);
8377
8377
  }
8378
8378
  });
8379
8379
  }, 1e3));
@@ -8421,10 +8421,9 @@ function Ws(t, e, o, i, a, r) {
8421
8421
  class: ["text-none pa-0", a.toggle ? "bg-primary active-border" : ""],
8422
8422
  onClick: r.handleMenuToggle
8423
8423
  }), {
8424
- default: u(() => [
8425
- W(y(o.realTime) + " ", 1),
8426
- e[8] || (e[8] = l("i", { class: "iconfont icon-a-Spotweather text-h4" }, null, -1))
8427
- ]),
8424
+ default: u(() => e[8] || (e[8] = [
8425
+ l("i", { class: "iconfont icon-a-Spotweather text-h4" }, null, -1)
8426
+ ])),
8428
8427
  _: 2,
8429
8428
  __: [8]
8430
8429
  }, 1040, ["class", "onClick"])