y-admin-ui 6.5.2 → 6.5.4
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/lib/y-admin-ui.js +22 -1
- package/lib/y-admin-ui.js.gz +0 -0
- package/lib/y-admin-ui.umd.cjs +1 -1
- package/package.json +1 -1
package/lib/y-admin-ui.js
CHANGED
|
@@ -19938,7 +19938,28 @@ function PP(l, t, e, a) {
|
|
|
19938
19938
|
return;
|
|
19939
19939
|
f1(u, e);
|
|
19940
19940
|
const r = i.clientHeight - u.clientHeight - (a ? 0 : 2), s = i.clientWidth - u.clientWidth - (a ? 0 : 1);
|
|
19941
|
-
|
|
19941
|
+
if (t === "top")
|
|
19942
|
+
u.style.top = "0px", u.style.left = `${s / 2}px`;
|
|
19943
|
+
else if (t === "bottom")
|
|
19944
|
+
u.style.top = `${r}px`, u.style.left = `${s / 2}px`;
|
|
19945
|
+
else if (t === "left")
|
|
19946
|
+
u.style.top = `${r / 2}px`, u.style.left = "0px";
|
|
19947
|
+
else if (t === "right")
|
|
19948
|
+
u.style.top = `${r / 2}px`, u.style.left = `${s}px`;
|
|
19949
|
+
else if (t === "leftTop")
|
|
19950
|
+
u.style.top = "0px", u.style.left = "0px";
|
|
19951
|
+
else if (t === "leftBottom")
|
|
19952
|
+
u.style.top = `${r}px`, u.style.left = "0px";
|
|
19953
|
+
else if (t === "rightTop")
|
|
19954
|
+
u.style.top = "0px", u.style.left = `${s}px`;
|
|
19955
|
+
else if (t === "rightBottom")
|
|
19956
|
+
u.style.top = `${r}px`, u.style.left = `${s}px`;
|
|
19957
|
+
else if (t === "center")
|
|
19958
|
+
u.style.top = `${r / 2}px`, u.style.left = `${s / 2}px`;
|
|
19959
|
+
else if (typeof t == "object") {
|
|
19960
|
+
const c = t.top != null, v = t.left != null, h = t.bottom != null, d = t.right != null;
|
|
19961
|
+
c ? (u.style.top = typeof t.top == "number" ? `${t.top}px` : t.top, u.style.bottom = "auto") : h ? (u.style.bottom = typeof t.bottom == "number" ? `${t.bottom}px` : t.bottom, u.style.top = "auto") : (u.style.top = `${r / 2}px`, u.style.bottom = "auto"), v ? (u.style.left = typeof t.left == "number" ? `${t.left}px` : t.left, u.style.right = "auto") : d ? (u.style.right = typeof t.right == "number" ? `${t.right}px` : t.right, u.style.left = "auto") : (u.style.left = `${s / 2}px`, u.style.right = "auto");
|
|
19962
|
+
}
|
|
19942
19963
|
}
|
|
19943
19964
|
function nf(l, t, e, a, i) {
|
|
19944
19965
|
const u = l.parentNode;
|
package/lib/y-admin-ui.js.gz
CHANGED
|
Binary file
|