@ulu/frontend-vue 0.2.0-beta.8 → 0.2.0-beta.9
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UluConditionalWrapper.vue.d.ts","sourceRoot":"","sources":["../../../lib/components/utils/UluConditionalWrapper.vue"],"names":[],"mappings":"AAQA;
|
|
1
|
+
{"version":3,"file":"UluConditionalWrapper.vue.d.ts","sourceRoot":"","sources":["../../../lib/components/utils/UluConditionalWrapper.vue"],"names":[],"mappings":"AAQA;wBAsHqB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;;6BAEtE,CAAC,EAAE,CAAC;;;AAVjC;;;;;;;2OAOG"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import { createBlock as
|
|
2
|
-
const
|
|
1
|
+
import { createBlock as a, renderSlot as r, openBlock as n, resolveDynamicComponent as o, normalizeProps as s, mergeProps as l, withCtx as i } from "vue";
|
|
2
|
+
const d = /* @__PURE__ */ Object.assign({
|
|
3
|
+
inheritAttrs: !1
|
|
4
|
+
}, {
|
|
3
5
|
__name: "UluConditionalWrapper",
|
|
4
6
|
props: {
|
|
5
7
|
/**
|
|
@@ -21,15 +23,15 @@ const s = {
|
|
|
21
23
|
default: !1
|
|
22
24
|
}
|
|
23
25
|
},
|
|
24
|
-
setup(
|
|
25
|
-
return (
|
|
26
|
-
default:
|
|
27
|
-
|
|
26
|
+
setup(t) {
|
|
27
|
+
return (e, p) => t.unwrapped ? r(e.$slots, "default", { key: 1 }) : (n(), a(o(t.is), s(l({ key: 0 }, e.$attrs)), {
|
|
28
|
+
default: i(() => [
|
|
29
|
+
r(e.$slots, "default")
|
|
28
30
|
]),
|
|
29
31
|
_: 3
|
|
30
|
-
}));
|
|
32
|
+
}, 16));
|
|
31
33
|
}
|
|
32
|
-
};
|
|
34
|
+
});
|
|
33
35
|
export {
|
|
34
|
-
|
|
36
|
+
d as default
|
|
35
37
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<component v-if="!unwrapped" :is="is">
|
|
2
|
+
<component v-if="!unwrapped" :is="is" v-bind="$attrs">
|
|
3
3
|
<slot></slot>
|
|
4
4
|
</component>
|
|
5
5
|
<template v-else>
|
|
@@ -8,6 +8,10 @@
|
|
|
8
8
|
</template>
|
|
9
9
|
|
|
10
10
|
<script setup>
|
|
11
|
+
defineOptions({
|
|
12
|
+
inheritAttrs: false
|
|
13
|
+
});
|
|
14
|
+
|
|
11
15
|
defineProps({
|
|
12
16
|
/**
|
|
13
17
|
* The underlying component or HTML tag to render.
|