@idmwx/idmui-gl4 0.9.3 → 0.9.5

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
@@ -7883,14 +7883,6 @@ const vs = {
7883
7883
  return Intl.DateTimeFormat().resolvedOptions().timeZone || "Asia/Shanghai";
7884
7884
  }
7885
7885
  },
7886
- watch: {
7887
- dateTime: {
7888
- handler() {
7889
- this.handleSetDateTime(this.dateTime);
7890
- },
7891
- immediate: !0
7892
- }
7893
- },
7894
7886
  watch: {
7895
7887
  timeZone: {
7896
7888
  handler(t, e) {
@@ -8242,6 +8234,11 @@ const Cs = {
8242
8234
  }) : this.handleCloseForm();
8243
8235
  }
8244
8236
  },
8237
+ realTime: {
8238
+ handler() {
8239
+ this.realTime && (this.form.dateTime = this.realTime);
8240
+ }
8241
+ },
8245
8242
  forecastModel: {
8246
8243
  handler() {
8247
8244
  this.form.forecastModel = this.forecastModel;
@@ -8326,7 +8323,7 @@ const Cs = {
8326
8323
  Authorization: this.token || this.defaultMeteoToken
8327
8324
  }
8328
8325
  });
8329
- (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;
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;
8330
8327
  },
8331
8328
  initTableData(t) {
8332
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;
@@ -8424,9 +8421,10 @@ function Ws(t, e, o, i, a, r) {
8424
8421
  class: ["text-none pa-0", a.toggle ? "bg-primary active-border" : ""],
8425
8422
  onClick: r.handleMenuToggle
8426
8423
  }), {
8427
- default: u(() => e[8] || (e[8] = [
8428
- l("i", { class: "iconfont icon-a-Spotweather text-h4" }, null, -1)
8429
- ])),
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
+ ]),
8430
8428
  _: 2,
8431
8429
  __: [8]
8432
8430
  }, 1040, ["class", "onClick"])
@@ -9863,7 +9861,6 @@ const sn = /* @__PURE__ */ Z(qs, [["render", ln]]), nn = {
9863
9861
  emits: [],
9864
9862
  data() {
9865
9863
  return {
9866
- realTime: void 0,
9867
9864
  weatherCheckList: [],
9868
9865
  otherCheckList: [],
9869
9866
  layerVersion: 0,
@@ -9904,7 +9901,6 @@ function mn(t, e, o, i, a, r) {
9904
9901
  token: o.token,
9905
9902
  "default-meteo-token": a.defaultMeteoToken,
9906
9903
  map: o.map,
9907
- "real-time": a.realTime,
9908
9904
  "before-layer": "empty-layer-1",
9909
9905
  gateway: a.gateway,
9910
9906
  "assist-gateway": a.assistGateway,
@@ -9914,12 +9910,11 @@ function mn(t, e, o, i, a, r) {
9914
9910
  onOtherCheckList: e[0] || (e[0] = (f) => {
9915
9911
  a.otherCheckList = f, a.layerVersion = a.layerVersion + 1;
9916
9912
  })
9917
- }), null, 16, ["token", "default-meteo-token", "map", "real-time", "gateway", "assist-gateway", "forecast-model", "map-feather"]),
9913
+ }), null, 16, ["token", "default-meteo-token", "map", "gateway", "assist-gateway", "forecast-model", "map-feather"]),
9918
9914
  h(n, B({
9919
9915
  ref: "idmWeatherLayers",
9920
9916
  map: o.map,
9921
9917
  "before-layer": "empty-layer-2",
9922
- "real-time": a.realTime,
9923
9918
  token: o.token,
9924
9919
  "default-meteo-token": a.defaultMeteoToken,
9925
9920
  gateway: a.gateway,
@@ -9933,19 +9928,18 @@ function mn(t, e, o, i, a, r) {
9933
9928
  onWeatherCheckList: e[2] || (e[2] = (f) => {
9934
9929
  a.weatherCheckList = f, a.layerVersion = a.layerVersion + 1;
9935
9930
  })
9936
- }), null, 16, ["map", "real-time", "token", "default-meteo-token", "gateway", "assist-gateway", "forecast-model", "map-feather"]),
9931
+ }), null, 16, ["map", "token", "default-meteo-token", "gateway", "assist-gateway", "forecast-model", "map-feather"]),
9937
9932
  h(c, B({
9938
9933
  map: o.map,
9939
9934
  token: o.token,
9940
9935
  "default-meteo-token": a.defaultMeteoToken,
9941
9936
  tropicals: a.tropicals,
9942
9937
  "before-layer": "empty-layer-3",
9943
- "real-time": a.realTime,
9944
9938
  gateway: a.gateway,
9945
9939
  "assist-gateway": a.assistGateway,
9946
9940
  "forecast-model": o.forecastModel,
9947
9941
  "map-feather": o.mapFeather
9948
- }, t.$attrs), null, 16, ["map", "token", "default-meteo-token", "tropicals", "real-time", "gateway", "assist-gateway", "forecast-model", "map-feather"]),
9942
+ }, t.$attrs), null, 16, ["map", "token", "default-meteo-token", "tropicals", "gateway", "assist-gateway", "forecast-model", "map-feather"]),
9949
9943
  h(g, B({
9950
9944
  map: o.map,
9951
9945
  "map-feather": o.mapFeather
@@ -9953,20 +9947,17 @@ function mn(t, e, o, i, a, r) {
9953
9947
  h(p, B({
9954
9948
  ref: "idmSpot",
9955
9949
  map: o.map,
9956
- "real-time": a.realTime,
9957
9950
  token: o.token,
9958
9951
  gateway: a.gateway,
9959
9952
  "forecast-model": o.forecastModel,
9960
9953
  "map-feather": o.mapFeather
9961
- }, t.$attrs), null, 16, ["map", "real-time", "token", "gateway", "forecast-model", "map-feather"]),
9954
+ }, t.$attrs), null, 16, ["map", "token", "gateway", "forecast-model", "map-feather"]),
9962
9955
  h(d, B({
9963
9956
  ref: "idmBottomBar",
9964
9957
  "forecast-model": o.forecastModel,
9965
9958
  "weather-check-list": a.weatherCheckList,
9966
9959
  "map-feather": o.mapFeather
9967
- }, t.$attrs, {
9968
- onRealTime: e[3] || (e[3] = (f) => a.realTime = f)
9969
- }), null, 16, ["forecast-model", "weather-check-list", "map-feather"])
9960
+ }, t.$attrs), null, 16, ["forecast-model", "weather-check-list", "map-feather"])
9970
9961
  ], 512);
9971
9962
  }
9972
9963
  const hn = /* @__PURE__ */ Z(nn, [["render", mn]]);