@idmwx/idmui-gl4 1.5.8 → 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 +26 -15
- package/dist/index.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -31953,7 +31953,7 @@ const Qm = {
|
|
|
31953
31953
|
props: {
|
|
31954
31954
|
width: {
|
|
31955
31955
|
type: Number,
|
|
31956
|
-
default:
|
|
31956
|
+
default: 226
|
|
31957
31957
|
},
|
|
31958
31958
|
height: {
|
|
31959
31959
|
type: Number,
|
|
@@ -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;
|
|
@@ -32090,7 +32101,7 @@ function td(t, e, o, i, a, r) {
|
|
|
32090
32101
|
text: "",
|
|
32091
32102
|
height: o.height,
|
|
32092
32103
|
width: o.width,
|
|
32093
|
-
class: "elevation-0 text-body-1
|
|
32104
|
+
class: "elevation-0 text-body-1 btn-border-1 btn-bg-1",
|
|
32094
32105
|
onClick: r.handleOpenDatePicker
|
|
32095
32106
|
}, {
|
|
32096
32107
|
default: u(() => [
|