@opencor/opencor 0.20260612.1 → 0.20260612.2
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/opencor.css +1 -1
- package/dist/opencor.es.js +13 -6
- package/package.json +1 -1
package/dist/opencor.es.js
CHANGED
|
@@ -4747,7 +4747,7 @@ const ei = () => {
|
|
|
4747
4747
|
]), 1024);
|
|
4748
4748
|
};
|
|
4749
4749
|
}
|
|
4750
|
-
}), Zp = "0.20260612.
|
|
4750
|
+
}), Zp = "0.20260612.2", Yp = {
|
|
4751
4751
|
version: Zp
|
|
4752
4752
|
}, { version: va } = Yp, zr = C.ref(!1), Bo = C.ref(""), yl = async () => {
|
|
4753
4753
|
try {
|
|
@@ -9874,11 +9874,18 @@ const c4 = /* @__PURE__ */ ac(() => C.ref(null)), sc = /* @__PURE__ */ ac(() =>
|
|
|
9874
9874
|
const o = C.getCurrentInstance()?.vnode?.el, i = o instanceof Element ? o.closest(".opencor") : document.querySelector(".opencor");
|
|
9875
9875
|
if (i) {
|
|
9876
9876
|
let r = i.querySelector(`.${e}`);
|
|
9877
|
-
|
|
9878
|
-
|
|
9879
|
-
|
|
9880
|
-
|
|
9881
|
-
|
|
9877
|
+
if (!r) {
|
|
9878
|
+
r = document.createElement("div"), r.className = e, r.style.cssText = "position: fixed; width: 0; height: 0; overflow: visible; pointer-events: none; z-index: 99999;", r.appendChild(
|
|
9879
|
+
Object.assign(document.createElement("style"), {
|
|
9880
|
+
textContent: `.${e} > * { pointer-events: auto; }`
|
|
9881
|
+
})
|
|
9882
|
+
);
|
|
9883
|
+
const a = r, l = () => {
|
|
9884
|
+
a.style.top = `-${window.scrollY}px`, a.style.left = `-${window.scrollX}px`;
|
|
9885
|
+
};
|
|
9886
|
+
l(), window.addEventListener("scroll", l, { passive: !0 }), i.appendChild(r);
|
|
9887
|
+
}
|
|
9888
|
+
n.value = r;
|
|
9882
9889
|
}
|
|
9883
9890
|
}), n;
|
|
9884
9891
|
};
|