@uzum-tech/ui 2.0.3 → 2.0.5
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 +16 -14
- package/dist/index.mjs +16 -14
- package/dist/index.prod.js +2 -2
- package/dist/index.prod.mjs +2 -2
- package/es/_utils/wrap-component.mjs +12 -10
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/lib/_utils/wrap-component.js +9 -8
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +9 -8
- package/web-types.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5772,22 +5772,24 @@
|
|
|
5772
5772
|
const instance = vue.getCurrentInstance();
|
|
5773
5773
|
const config = instance ? findConfig(instance) : null;
|
|
5774
5774
|
const componentRef = vue.ref(null);
|
|
5775
|
-
const mergedProps = vue.computed(() => {
|
|
5776
|
-
if (!config) return props;
|
|
5777
|
-
const defaults = config.mergedComponentPropsRef?.value?.[component.name] ?? {};
|
|
5778
|
-
return {
|
|
5779
|
-
...defaults,
|
|
5780
|
-
...props
|
|
5781
|
-
};
|
|
5782
|
-
});
|
|
5783
5775
|
if (ctx.expose) {
|
|
5784
5776
|
ctx.expose(useExposeProxy(componentRef));
|
|
5785
5777
|
}
|
|
5786
|
-
return () =>
|
|
5787
|
-
|
|
5788
|
-
|
|
5789
|
-
|
|
5790
|
-
|
|
5778
|
+
return () => {
|
|
5779
|
+
let finalProps = props;
|
|
5780
|
+
if (config) {
|
|
5781
|
+
const defaults = config.mergedComponentPropsRef?.value?.[component.name] ?? {};
|
|
5782
|
+
finalProps = {
|
|
5783
|
+
...defaults,
|
|
5784
|
+
...props
|
|
5785
|
+
};
|
|
5786
|
+
}
|
|
5787
|
+
return vue.h(component, {
|
|
5788
|
+
ref: componentRef,
|
|
5789
|
+
...finalProps,
|
|
5790
|
+
...ctx.attrs
|
|
5791
|
+
}, ctx.slots);
|
|
5792
|
+
};
|
|
5791
5793
|
}
|
|
5792
5794
|
});
|
|
5793
5795
|
wrapped.__wrapped__ = true;
|
|
@@ -112625,7 +112627,7 @@
|
|
|
112625
112627
|
});
|
|
112626
112628
|
}
|
|
112627
112629
|
|
|
112628
|
-
var version = "2.0.
|
|
112630
|
+
var version = "2.0.5";
|
|
112629
112631
|
|
|
112630
112632
|
function create({
|
|
112631
112633
|
componentPrefix = "U",
|
package/dist/index.mjs
CHANGED
|
@@ -5768,22 +5768,24 @@ function wrap(component) {
|
|
|
5768
5768
|
const instance = getCurrentInstance();
|
|
5769
5769
|
const config = instance ? findConfig(instance) : null;
|
|
5770
5770
|
const componentRef = ref(null);
|
|
5771
|
-
const mergedProps = computed(() => {
|
|
5772
|
-
if (!config) return props;
|
|
5773
|
-
const defaults = config.mergedComponentPropsRef?.value?.[component.name] ?? {};
|
|
5774
|
-
return {
|
|
5775
|
-
...defaults,
|
|
5776
|
-
...props
|
|
5777
|
-
};
|
|
5778
|
-
});
|
|
5779
5771
|
if (ctx.expose) {
|
|
5780
5772
|
ctx.expose(useExposeProxy(componentRef));
|
|
5781
5773
|
}
|
|
5782
|
-
return () =>
|
|
5783
|
-
|
|
5784
|
-
|
|
5785
|
-
|
|
5786
|
-
|
|
5774
|
+
return () => {
|
|
5775
|
+
let finalProps = props;
|
|
5776
|
+
if (config) {
|
|
5777
|
+
const defaults = config.mergedComponentPropsRef?.value?.[component.name] ?? {};
|
|
5778
|
+
finalProps = {
|
|
5779
|
+
...defaults,
|
|
5780
|
+
...props
|
|
5781
|
+
};
|
|
5782
|
+
}
|
|
5783
|
+
return h(component, {
|
|
5784
|
+
ref: componentRef,
|
|
5785
|
+
...finalProps,
|
|
5786
|
+
...ctx.attrs
|
|
5787
|
+
}, ctx.slots);
|
|
5788
|
+
};
|
|
5787
5789
|
}
|
|
5788
5790
|
});
|
|
5789
5791
|
wrapped.__wrapped__ = true;
|
|
@@ -112621,7 +112623,7 @@ function useThemeVars() {
|
|
|
112621
112623
|
});
|
|
112622
112624
|
}
|
|
112623
112625
|
|
|
112624
|
-
var version = "2.0.
|
|
112626
|
+
var version = "2.0.5";
|
|
112625
112627
|
|
|
112626
112628
|
function create({
|
|
112627
112629
|
componentPrefix = "U",
|