@idmwx/idmui-gl4 1.7.1 → 1.7.3
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 +16 -13
- package/dist/index.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -31975,21 +31975,23 @@ const xd = {
|
|
|
31975
31975
|
this.handleResetDateRange(), this.handleResetMinMax();
|
|
31976
31976
|
},
|
|
31977
31977
|
handleResetDateRange() {
|
|
31978
|
-
var
|
|
31978
|
+
var r, l, c;
|
|
31979
31979
|
let t, e;
|
|
31980
|
-
(
|
|
31980
|
+
(r = this.defaultRange) != null && r.length ? (t = this.defaultRange[0], e = (l = M(M(this.defaultRange[1]).set({ hour: 23, minute: 59, second: 59, millisecond: 59 }))) == null ? void 0 : l.diff(M(this.defaultRange[0]).set({ hour: 0, minute: 0, second: 0, millisecond: 0 }), "d", !0)) : e = this.defaultDays;
|
|
31981
31981
|
const o = M.tz(t, this.timeZoneName).clone(), i = [];
|
|
31982
31982
|
if (e < 0)
|
|
31983
|
-
for (let
|
|
31984
|
-
i.push(o.clone().add(
|
|
31983
|
+
for (let n = e + 1; n <= 0; n++)
|
|
31984
|
+
i.push(o.clone().add(n, "days").format());
|
|
31985
31985
|
else
|
|
31986
|
-
for (let
|
|
31987
|
-
i.push(o.clone().add(
|
|
31988
|
-
this.dateRange = i
|
|
31986
|
+
for (let n = 0; n < e; n++)
|
|
31987
|
+
i.push(o.clone().add(n, "days").format());
|
|
31988
|
+
this.dateRange = i;
|
|
31989
|
+
const a = [this.dateRange[0], this.dateRange[((c = this.dateRange) == null ? void 0 : c.length) - 1]];
|
|
31990
|
+
this.dateRangeStr = `${M.tz(a[0], this.timeZoneName).format("yyyy-MM-DD")} ~ ${M.tz(a[1], this.timeZoneName).format("yyyy-MM-DD")}`, this.$emit(
|
|
31989
31991
|
"dateRange",
|
|
31990
31992
|
[
|
|
31991
|
-
M.tz(
|
|
31992
|
-
M.tz(
|
|
31993
|
+
M.tz(a[0], this.timeZoneName).set({ hour: 0, minute: 0, second: 0, millisecond: 0 }).format(),
|
|
31994
|
+
M.tz(a[1], this.timeZoneName).set({ hour: 23, minute: 59, second: 59, millisecond: 59 }).format()
|
|
31993
31995
|
]
|
|
31994
31996
|
);
|
|
31995
31997
|
},
|
|
@@ -32008,12 +32010,13 @@ const xd = {
|
|
|
32008
32010
|
});
|
|
32009
32011
|
},
|
|
32010
32012
|
handleConfirmDate() {
|
|
32011
|
-
var
|
|
32012
|
-
|
|
32013
|
+
var e;
|
|
32014
|
+
const t = [this.dateRange[0], this.dateRange[((e = this.dateRange) == null ? void 0 : e.length) - 1]];
|
|
32015
|
+
this.dateRangeStr = `${M(t[0]).format("yyyy-MM-DD")} ~ ${M(t[1]).format("yyyy-MM-DD")}`, this.$emit(
|
|
32013
32016
|
"dateRange",
|
|
32014
32017
|
[
|
|
32015
|
-
M.tz(
|
|
32016
|
-
M.tz(
|
|
32018
|
+
M.tz(t[0], this.timeZoneName).set({ year: M(t[0]).year(), month: M(t[0]).month(), date: M(t[0]).date(), hour: 0, minute: 0, second: 0, millisecond: 0 }).format(),
|
|
32019
|
+
M.tz(t[1], this.timeZoneName).set({ year: M(t[1]).year(), month: M(t[1]).month(), date: M(t[1]).date(), hour: 23, minute: 59, second: 59, millisecond: 59 }).format()
|
|
32017
32020
|
]
|
|
32018
32021
|
), this.showDatePicker = !1;
|
|
32019
32022
|
},
|