z-ui-pc 1.1.6 → 1.1.7
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 +7 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5281,7 +5281,7 @@ const mt = (t) => typeof t == "boolean" ? t ? "left" : void 0 : t, Gs = (t) => {
|
|
|
5281
5281
|
}, hl = (t) => ({
|
|
5282
5282
|
...Fl,
|
|
5283
5283
|
...t ?? {}
|
|
5284
|
-
}), vl = "1.1.
|
|
5284
|
+
}), vl = "1.1.7", Al = {
|
|
5285
5285
|
version: vl
|
|
5286
5286
|
};
|
|
5287
5287
|
function Yl(t, e, o) {
|
|
@@ -5332,7 +5332,7 @@ const Jt = "__dialog_root__", $t = () => {
|
|
|
5332
5332
|
let t = document.getElementById(Jt);
|
|
5333
5333
|
return t || (t = document.createElement("div"), t.id = Jt, document.body.appendChild(t)), t;
|
|
5334
5334
|
}, Bl = () => {
|
|
5335
|
-
const t = ao()
|
|
5335
|
+
const t = ao(), e = (n) => {
|
|
5336
5336
|
if (n) {
|
|
5337
5337
|
const u = $t();
|
|
5338
5338
|
Nt(null, n), u?.removeChild(n);
|
|
@@ -5343,7 +5343,11 @@ const Jt = "__dialog_root__", $t = () => {
|
|
|
5343
5343
|
if (!n)
|
|
5344
5344
|
throw new Error("component is required");
|
|
5345
5345
|
const a = A(n);
|
|
5346
|
-
return
|
|
5346
|
+
return t && (a.appContext = {
|
|
5347
|
+
...a.appContext,
|
|
5348
|
+
...t.appContext,
|
|
5349
|
+
provides: Reflect.get(t, "provides") || t.appContext.provides
|
|
5350
|
+
}), $t().appendChild(u), Nt(a, u), {
|
|
5347
5351
|
unmount: e
|
|
5348
5352
|
};
|
|
5349
5353
|
},
|