@idmwx/idmui-gl4 1.5.7 → 1.5.8
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
|
@@ -31980,7 +31980,7 @@ const Qm = {
|
|
|
31980
31980
|
},
|
|
31981
31981
|
dayAbout: {
|
|
31982
31982
|
type: Object,
|
|
31983
|
-
default: () => ({
|
|
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
|
|
32057
|
-
|
|
32058
|
-
|
|
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();
|