@idmwx/idmui-gl4 1.4.9 → 1.5.1
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
|
@@ -10858,10 +10858,10 @@ const Xc = {
|
|
|
10858
10858
|
mounted() {
|
|
10859
10859
|
this.timer = setInterval(() => {
|
|
10860
10860
|
this.currentRealTime = `${D.tz(D().unix() * 1e3, this.timeZoneName).clone().format("HH:mm")}`;
|
|
10861
|
-
}, 100);
|
|
10861
|
+
}, 100), document.addEventListener("click", this.handleClickOutside);
|
|
10862
10862
|
},
|
|
10863
10863
|
unmounted() {
|
|
10864
|
-
clearInterval(this.timer), this.handleCancelDate();
|
|
10864
|
+
clearInterval(this.timer), this.handleCancelDate(), document.removeEventListener("click", this.handleClickOutside);
|
|
10865
10865
|
},
|
|
10866
10866
|
methods: {
|
|
10867
10867
|
handleReset() {
|
|
@@ -10905,9 +10905,16 @@ const Xc = {
|
|
|
10905
10905
|
this.showDatePicker = !1;
|
|
10906
10906
|
const t = D.tz(this.currentTimestamp, this.timeZoneName).clone();
|
|
10907
10907
|
this.currentDate = t.clone().format("YYYY-MM-DD"), this.currentTime = t.clone().format("HH:00");
|
|
10908
|
+
},
|
|
10909
|
+
handleClickOutside(t) {
|
|
10910
|
+
const e = this.$refs.idmGl4Timepicker;
|
|
10911
|
+
e && !e.contains(t.target) && (this.showDatePicker = !1);
|
|
10908
10912
|
}
|
|
10909
10913
|
}
|
|
10910
|
-
}, Kc = {
|
|
10914
|
+
}, Kc = {
|
|
10915
|
+
class: "idm-gl4-timepicker",
|
|
10916
|
+
ref: "idmGl4Timepicker"
|
|
10917
|
+
}, $c = {
|
|
10911
10918
|
class: "pa-0",
|
|
10912
10919
|
style: { width: "250px" }
|
|
10913
10920
|
}, Qc = {
|
|
@@ -11000,7 +11007,7 @@ function em(t, e, o, i, a, r) {
|
|
|
11000
11007
|
h(s, {
|
|
11001
11008
|
size: "small",
|
|
11002
11009
|
variant: "tonal",
|
|
11003
|
-
class: "text-none",
|
|
11010
|
+
class: "text-none text-body-2",
|
|
11004
11011
|
onClick: r.handleCancelDate
|
|
11005
11012
|
}, {
|
|
11006
11013
|
default: u(() => e[1] || (e[1] = [
|
|
@@ -11013,7 +11020,7 @@ function em(t, e, o, i, a, r) {
|
|
|
11013
11020
|
size: "small",
|
|
11014
11021
|
variant: "tonal",
|
|
11015
11022
|
color: "primary",
|
|
11016
|
-
class: "text-none",
|
|
11023
|
+
class: "text-none text-body-2",
|
|
11017
11024
|
onClick: r.handleConfirmDate
|
|
11018
11025
|
}, {
|
|
11019
11026
|
default: u(() => e[2] || (e[2] = [
|
|
@@ -11028,7 +11035,7 @@ function em(t, e, o, i, a, r) {
|
|
|
11028
11035
|
]),
|
|
11029
11036
|
_: 1
|
|
11030
11037
|
}, 8, ["class"])) : I("", !0)
|
|
11031
|
-
]);
|
|
11038
|
+
], 512);
|
|
11032
11039
|
}
|
|
11033
11040
|
const no = /* @__PURE__ */ X(Xc, [["render", em]]);
|
|
11034
11041
|
const tm = {
|