@idmwx/idmui-gl4 1.5.9 → 1.6.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 +24 -13
- package/dist/index.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -32021,7 +32021,7 @@ const Qm = {
|
|
|
32021
32021
|
watch: {
|
|
32022
32022
|
timeZone: {
|
|
32023
32023
|
handler(t, e) {
|
|
32024
|
-
t !== e && (this.handleResetDateRange(
|
|
32024
|
+
t !== e && (this.handleResetDateRange(), this.handleResetMinMax());
|
|
32025
32025
|
}
|
|
32026
32026
|
},
|
|
32027
32027
|
dateRange: {
|
|
@@ -32040,22 +32040,27 @@ const Qm = {
|
|
|
32040
32040
|
this.handleResetDateRange(), this.handleResetMinMax();
|
|
32041
32041
|
},
|
|
32042
32042
|
handleResetDateRange() {
|
|
32043
|
-
var
|
|
32043
|
+
var a, r, s;
|
|
32044
32044
|
let t, e;
|
|
32045
|
-
(
|
|
32046
|
-
const o = M
|
|
32045
|
+
(a = this.defaultRange) != null && a.length ? (t = this.defaultRange[0], e = (r = this.defaultRange) == null ? void 0 : r.length) : e = this.defaultDays;
|
|
32046
|
+
const o = M.tz(t, this.timeZoneName).clone(), i = [];
|
|
32047
32047
|
if (e < 0)
|
|
32048
|
-
for (let
|
|
32049
|
-
|
|
32048
|
+
for (let c = e + 1; c <= 0; c++)
|
|
32049
|
+
i.push(o.clone().add(c, "days").format());
|
|
32050
32050
|
else
|
|
32051
|
-
for (let
|
|
32052
|
-
|
|
32053
|
-
this.dateRange =
|
|
32051
|
+
for (let c = 0; c < e; c++)
|
|
32052
|
+
i.push(o.clone().add(c, "days").format());
|
|
32053
|
+
this.dateRange = i, this.dateRangeStr = `${this.computeTimeLT(this.dateRange[0])} ~ ${this.computeTimeLT(this.dateRange[((s = this.dateRange) == null ? void 0 : s.length) - 1])}`, this.$emit(
|
|
32054
|
+
"dateRange",
|
|
32055
|
+
[
|
|
32056
|
+
M(this.dateRange[0]).set({ hour: 0, minute: 0, second: 0, millisecond: 0 }).format(),
|
|
32057
|
+
M(this.dateRange[this.dateRange.length - 1]).set({ hour: 23, minute: 59, second: 59, millisecond: 59 }).format()
|
|
32058
|
+
]
|
|
32059
|
+
);
|
|
32054
32060
|
},
|
|
32055
32061
|
handleResetMinMax() {
|
|
32056
|
-
|
|
32057
|
-
|
|
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"));
|
|
32062
|
+
const t = M.tz(M().format(), this.timeZoneName).clone(), { h: e, f: o } = this.dayAbout;
|
|
32063
|
+
e != null && typeof Number(e) == "number" && !isNaN(e) && (this.minDate = t.clone().add(e, "day").format("yyyy-MM-DD")), o != null && typeof Number(o) == "number" && !isNaN(o) && (this.maxDate = t.clone().add(o, "day").format("yyyy-MM-DD"));
|
|
32059
32064
|
},
|
|
32060
32065
|
handleOpenDatePicker() {
|
|
32061
32066
|
this.showDatePicker = !this.showDatePicker, this.handleUpdateMonth();
|
|
@@ -32069,7 +32074,13 @@ const Qm = {
|
|
|
32069
32074
|
},
|
|
32070
32075
|
handleConfirmDate() {
|
|
32071
32076
|
var t;
|
|
32072
|
-
this.dateRangeStr = `${this.computeTimeLT(this.dateRange[0])} ~ ${this.computeTimeLT(this.dateRange[((t = this.dateRange) == null ? void 0 : t.length) - 1])}`, this.$emit(
|
|
32077
|
+
this.dateRangeStr = `${this.computeTimeLT(this.dateRange[0])} ~ ${this.computeTimeLT(this.dateRange[((t = this.dateRange) == null ? void 0 : t.length) - 1])}`, this.$emit(
|
|
32078
|
+
"dateRange",
|
|
32079
|
+
[
|
|
32080
|
+
M(this.dateRange[0]).set({ hour: 0, minute: 0, second: 0, millisecond: 0 }).format(),
|
|
32081
|
+
M(this.dateRange[this.dateRange.length - 1]).set({ hour: 23, minute: 59, second: 59, millisecond: 59 }).format()
|
|
32082
|
+
]
|
|
32083
|
+
), this.showDatePicker = !1;
|
|
32073
32084
|
},
|
|
32074
32085
|
handleCancelDate() {
|
|
32075
32086
|
this.showDatePicker = !1;
|