@sepveneto/free-dom 0.14.7 → 0.14.8
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.css +1 -1
- package/dist/index.js +7 -1
- package/dist/index.mjs +7 -1
- package/package.json +1 -1
package/dist/index.css
CHANGED
package/dist/index.js
CHANGED
|
@@ -18852,7 +18852,13 @@ function createRender(comp, attrs = {}, props = {}, listeners = {}) {
|
|
|
18852
18852
|
return (slots) => {
|
|
18853
18853
|
if (import_vue_demi.isVue2) {
|
|
18854
18854
|
if (Object.prototype.toString.call(slots) === "[object Object]") {
|
|
18855
|
-
|
|
18855
|
+
let children = [];
|
|
18856
|
+
if ("default" in slots) {
|
|
18857
|
+
children = slots.default();
|
|
18858
|
+
} else {
|
|
18859
|
+
children = [slots];
|
|
18860
|
+
}
|
|
18861
|
+
return (0, import_vue_demi.h)(comp, options, children);
|
|
18856
18862
|
} else {
|
|
18857
18863
|
return (0, import_vue_demi.h)(comp, options, Array.isArray(slots) ? slots : [slots]);
|
|
18858
18864
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -18857,7 +18857,13 @@ function createRender(comp, attrs = {}, props = {}, listeners = {}) {
|
|
|
18857
18857
|
return (slots) => {
|
|
18858
18858
|
if (isVue2) {
|
|
18859
18859
|
if (Object.prototype.toString.call(slots) === "[object Object]") {
|
|
18860
|
-
|
|
18860
|
+
let children = [];
|
|
18861
|
+
if ("default" in slots) {
|
|
18862
|
+
children = slots.default();
|
|
18863
|
+
} else {
|
|
18864
|
+
children = [slots];
|
|
18865
|
+
}
|
|
18866
|
+
return h(comp, options, children);
|
|
18861
18867
|
} else {
|
|
18862
18868
|
return h(comp, options, Array.isArray(slots) ? slots : [slots]);
|
|
18863
18869
|
}
|