@ws-ui/shared 1.13.3 → 1.13.5
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.es.js
CHANGED
|
@@ -12858,16 +12858,16 @@ function BL(e, t, r, i) {
|
|
|
12858
12858
|
};
|
|
12859
12859
|
et(() => (xr(e, r, s), u), [e, r, s]);
|
|
12860
12860
|
}
|
|
12861
|
-
const HL = (e) => {
|
|
12862
|
-
const
|
|
12861
|
+
const HL = (e, t = "click") => {
|
|
12862
|
+
const r = Ue(null);
|
|
12863
12863
|
return et(() => {
|
|
12864
|
-
const
|
|
12865
|
-
|
|
12864
|
+
const i = (a) => {
|
|
12865
|
+
r.current && !r.current.contains(a.target) && e(a);
|
|
12866
12866
|
};
|
|
12867
|
-
return document.addEventListener(
|
|
12868
|
-
document.removeEventListener(
|
|
12867
|
+
return document.addEventListener(t, i, !0), () => {
|
|
12868
|
+
document.removeEventListener(t, i, !0);
|
|
12869
12869
|
};
|
|
12870
|
-
}, [e]),
|
|
12870
|
+
}, [e, t]), r;
|
|
12871
12871
|
};
|
|
12872
12872
|
function qL(e) {
|
|
12873
12873
|
const t = Ue();
|