@xiaou66/u-web-ui 0.97.0 → 0.98.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.es.js +4 -4
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -446,17 +446,17 @@ var LeftMenu_default = /* @__PURE__ */ defineComponent({
|
|
|
446
446
|
let n = w.value.getBoundingClientRect(), r = window.innerWidth, i = window.innerHeight, a = e, o = t;
|
|
447
447
|
e + n.width > r && (a = r - n.width - 4), t + n.height > i && (o = i - n.height - 4), a = Math.max(4, a), o = Math.max(4, o), E.left = a + "px", E.top = o + "px";
|
|
448
448
|
}, A = () => {
|
|
449
|
-
T.value = !1;
|
|
449
|
+
T.value = !1, f("close");
|
|
450
450
|
}, j = (e, t) => {
|
|
451
|
-
f("select", e, t), d.hideOnSelect && (T.value = !1);
|
|
451
|
+
f("select", e, t), d.hideOnSelect && (T.value = !1, f("close"));
|
|
452
452
|
}, M = (e) => {
|
|
453
453
|
if (!T.value) return;
|
|
454
454
|
let t = e.target, n = w.value, r = S.value;
|
|
455
455
|
if (e.button === 2 || e.which === 3) return;
|
|
456
456
|
let i = n && n.contains(t), a = r && r.contains(t);
|
|
457
|
-
!i && !a && (T.value = !1);
|
|
457
|
+
!i && !a && (T.value = !1, f("close"));
|
|
458
458
|
}, F = (e) => {
|
|
459
|
-
e.key === "Escape" && T.value && (T.value = !1);
|
|
459
|
+
e.key === "Escape" && T.value && (T.value = !1, f("close"));
|
|
460
460
|
}, I = (e) => {
|
|
461
461
|
T.value && (e.preventDefault(), e.stopPropagation(), e.stopImmediatePropagation());
|
|
462
462
|
}, L = () => {
|