@idmwx/idmui-gl4 2.1.8 → 2.1.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
@@ -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月");