@idmwx/idmui-gl4 1.5.7 → 1.5.9

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
@@ -31953,7 +31953,7 @@ const Qm = {
31953
31953
  props: {
31954
31954
  width: {
31955
31955
  type: Number,
31956
- default: 230
31956
+ default: 226
31957
31957
  },
31958
31958
  height: {
31959
31959
  type: Number,
@@ -31980,7 +31980,7 @@ const Qm = {
31980
31980
  },
31981
31981
  dayAbout: {
31982
31982
  type: Object,
31983
- default: () => ({ h: -7, f: 14 })
31983
+ default: () => ({})
31984
31984
  //{ h: -7, f: 14 }
31985
31985
  }
31986
31986
  },
@@ -32053,11 +32053,9 @@ const Qm = {
32053
32053
  this.dateRange = r, this.dateRangeStr = `${this.computeTimeLT(this.dateRange[0])} ~ ${this.computeTimeLT(this.dateRange[((g = this.dateRange) == null ? void 0 : g.length) - 1])}`, this.$emit("dateRange", [this.dateRange[0], this.dateRange[this.dateRange.length - 1]]);
32054
32054
  },
32055
32055
  handleResetMinMax() {
32056
- var i;
32057
- if (!this.dayAbout.h || !this.dayAbout.f)
32058
- return;
32059
- const t = M().utc().date(), e = ((i = M()) == null ? void 0 : i.utc().set({ date: t, hour: 0, minute: 0, second: 0, millisecond: 0 }).unix()) * 1e3, o = M.tz(e, this.timeZoneName).clone();
32060
- this.minDate = o.clone().add(this.dayAbout.h, "day").format("yyyy-MM-DD"), this.maxDate = o.clone().add(this.dayAbout.f, "day").format("yyyy-MM-DD");
32056
+ var r;
32057
+ const t = M().utc().date(), e = ((r = M()) == null ? void 0 : r.utc().set({ date: t, hour: 0, minute: 0, second: 0, millisecond: 0 }).unix()) * 1e3, o = M.tz(e, this.timeZoneName).clone(), { h: i, f: a } = this.dayAbout;
32058
+ i != null && typeof Number(i) == "number" && !isNaN(i) && (this.minDate = o.clone().add(i, "day").format("yyyy-MM-DD")), a != null && typeof Number(a) == "number" && !isNaN(a) && (this.maxDate = o.clone().add(a, "day").format("yyyy-MM-DD"));
32061
32059
  },
32062
32060
  handleOpenDatePicker() {
32063
32061
  this.showDatePicker = !this.showDatePicker, this.handleUpdateMonth();
@@ -32092,7 +32090,7 @@ function td(t, e, o, i, a, r) {
32092
32090
  text: "",
32093
32091
  height: o.height,
32094
32092
  width: o.width,
32095
- class: "elevation-0 text-body-1 px-2 btn-border-1 btn-bg-1",
32093
+ class: "elevation-0 text-body-1 btn-border-1 btn-bg-1",
32096
32094
  onClick: r.handleOpenDatePicker
32097
32095
  }, {
32098
32096
  default: u(() => [