@idmwx/idmui-gl4 2.1.8 → 2.2.0

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
@@ -11924,6 +11924,10 @@ const om = {
11924
11924
  type: Object,
11925
11925
  default: () => ({})
11926
11926
  //{ h: -7, f: 14 }
11927
+ },
11928
+ disabled: {
11929
+ type: Boolean,
11930
+ default: !1
11927
11931
  }
11928
11932
  },
11929
11933
  emits: ["dateTime", "currentTimestamp", "currentRealTime", "minTimestamp", "maxTimestamp"],
@@ -12040,7 +12044,7 @@ const om = {
12040
12044
  this.minDate = i.clone().add(this.dayAbout.h, "day").format("yyyy-MM-DD"), this.maxDate = i.clone().add(this.dayAbout.f, "day").format("yyyy-MM-DD"), this.minTimestamp = ((l = (r = M()) == null ? void 0 : r.utc()) == null ? void 0 : l.set({ date: t + this.dayAbout.h, hour: 0, minute: 0, second: 0, millisecond: 0 }).unix()) * 1e3, this.maxTimestamp = ((m = (c = M()) == null ? void 0 : c.utc()) == null ? void 0 : m.set({ date: t + this.dayAbout.f, hour: 0, minute: 0, second: 0, millisecond: 0 }).unix()) * 1e3, this.$emit("minTimestamp", this.minTimestamp), this.$emit("maxTimestamp", this.maxTimestamp);
12041
12045
  },
12042
12046
  handleOpenDatePicker() {
12043
- this.showDatePicker = !this.showDatePicker, this.handleUpdateMonth();
12047
+ this.disabled || (this.showDatePicker = !this.showDatePicker, this.handleUpdateMonth());
12044
12048
  },
12045
12049
  handleUpdateMonth(t) {
12046
12050
  const e = t || M.tz(this.currentTimestamp, this.timeZoneName).clone().month(), o = this.locale === "en" ? M.tz(this.currentTimestamp, this.timeZoneName).set({ month: e }).clone().format("MMM") : M.tz(this.currentTimestamp, this.timeZoneName).set({ month: e }).clone().format("M月");
@@ -15066,7 +15070,7 @@ function Oh(t, e, o, i, a, r) {
15066
15070
  }
15067
15071
  const Bh = /* @__PURE__ */ X(Lh, [["render", Oh]]);
15068
15072
  const jh = {
15069
- name: "IdmBottomBar",
15073
+ name: "IdmTimePlayer",
15070
15074
  components: { DateTimePicker: Mo },
15071
15075
  props: {
15072
15076
  menuToggle: {
@@ -15075,6 +15079,10 @@ const jh = {
15075
15079
  },
15076
15080
  weatherCheckList: {
15077
15081
  type: Array
15082
+ },
15083
+ playerBottom: {
15084
+ type: Number,
15085
+ default: 10
15078
15086
  }
15079
15087
  },
15080
15088
  emits: ["realTime", "timeZone"],
@@ -15173,7 +15181,7 @@ function Nh(t, e, o, i, a, r) {
15173
15181
  const l = w("VBtn"), c = w("DateTimePicker");
15174
15182
  return g(), S("div", {
15175
15183
  class: "idm-time-player-gl4 d-flex justify-center align-center",
15176
- style: ee({ bottom: Object.values(a.show).includes(!0) ? "10px" : "-100px" })
15184
+ style: ee({ bottom: Object.values(a.show).includes(!0) ? o.playerBottom + "px" : "-100px" })
15177
15185
  }, [
15178
15186
  s("div", Eh, [
15179
15187
  p(l, {
@@ -15412,7 +15420,8 @@ function Gh(t, e, o, i, a, r) {
15412
15420
  key: 1,
15413
15421
  ref: "idmBottomBar",
15414
15422
  "weather-check-list": a.weatherCheckList,
15415
- "map-feather": o.mapFeather
15423
+ "map-feather": o.mapFeather,
15424
+ playerBottom: 30
15416
15425
  }, t.$attrs), null, 16, ["weather-check-list", "map-feather"])) : R("", !0)
15417
15426
  ], 512);
15418
15427
  }
@@ -34370,6 +34379,8 @@ const Vh = {
34370
34379
  center: [120, 30],
34371
34380
  dragRotate: !1,
34372
34381
  pitchWithRotate: !1,
34382
+ touchZoomRotate: !1,
34383
+ // 禁用触摸设备上的双指缩放和旋转
34373
34384
  projection: "mercator",
34374
34385
  preserveDrawingBuffer: !0,
34375
34386
  fadeDuration: 300