@idmwx/idmui-gl4 1.6.9 → 1.7.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
CHANGED
|
@@ -31935,10 +31935,14 @@ const xd = {
|
|
|
31935
31935
|
localTimeZoneName() {
|
|
31936
31936
|
return Intl.DateTimeFormat().resolvedOptions().timeZone || "Asia/Shanghai";
|
|
31937
31937
|
},
|
|
31938
|
-
|
|
31939
|
-
return (t, e = "yyyy-MM-DD") => {
|
|
31940
|
-
var
|
|
31941
|
-
|
|
31938
|
+
computeTzSimple() {
|
|
31939
|
+
return (t, e, o = "yyyy-MM-DD") => {
|
|
31940
|
+
var i, a;
|
|
31941
|
+
if (t) {
|
|
31942
|
+
const r = e || 0;
|
|
31943
|
+
return (a = (i = M(t)) == null ? void 0 : i.utcOffset(r)) == null ? void 0 : a.format(o);
|
|
31944
|
+
}
|
|
31945
|
+
return "-";
|
|
31942
31946
|
};
|
|
31943
31947
|
}
|
|
31944
31948
|
},
|
|
@@ -31981,7 +31985,7 @@ const xd = {
|
|
|
31981
31985
|
else
|
|
31982
31986
|
for (let c = 0; c < e; c++)
|
|
31983
31987
|
i.push(o.clone().add(c, "days").format());
|
|
31984
|
-
this.dateRange = i, this.dateRangeStr = `${this.
|
|
31988
|
+
this.dateRange = i, this.dateRangeStr = `${this.computeTzSimple(this.dateRange[0], this.timeZone)} ~ ${this.computeTzSimple(this.dateRange[((l = this.dateRange) == null ? void 0 : l.length) - 1], this.timeZone)}`, this.$emit(
|
|
31985
31989
|
"dateRange",
|
|
31986
31990
|
[
|
|
31987
31991
|
M(this.dateRange[0]).set({ hour: 0, minute: 0, second: 0, millisecond: 0 }).format(),
|
|
@@ -32005,7 +32009,7 @@ const xd = {
|
|
|
32005
32009
|
},
|
|
32006
32010
|
handleConfirmDate() {
|
|
32007
32011
|
var t;
|
|
32008
|
-
this.dateRangeStr = `${this.
|
|
32012
|
+
this.dateRangeStr = `${this.computeTzSimple(this.dateRange[0], this.timeZone)} ~ ${this.computeTzSimple(this.dateRange[((t = this.dateRange) == null ? void 0 : t.length) - 1], this.timeZone)}`, this.$emit(
|
|
32009
32013
|
"dateRange",
|
|
32010
32014
|
[
|
|
32011
32015
|
M(this.dateRange[0]).set({ hour: 0, minute: 0, second: 0, millisecond: 0 }).format(),
|