srcdev-nuxt-components 0.0.11 → 0.0.13
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,10 +1,10 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div>
|
|
3
|
-
<button :popovertarget class="popover-trigger">
|
|
3
|
+
<button :popovertarget class="popover-trigger" :class="[elementClasses]">
|
|
4
4
|
<slot name="trigger"></slot>
|
|
5
5
|
</button>
|
|
6
6
|
|
|
7
|
-
<dialog popover :id="popovertarget">
|
|
7
|
+
<dialog popover :id="popovertarget" :class="[elementClasses]">
|
|
8
8
|
<slot name="popoverCotent"></slot>
|
|
9
9
|
</dialog>
|
|
10
10
|
</div>
|
|
@@ -16,12 +16,18 @@ const props = defineProps({
|
|
|
16
16
|
type: String,
|
|
17
17
|
required: true,
|
|
18
18
|
},
|
|
19
|
+
styleClassPassthrough: {
|
|
20
|
+
type: Array as PropType<string[]>,
|
|
21
|
+
default: () => [],
|
|
22
|
+
},
|
|
19
23
|
});
|
|
20
24
|
|
|
21
25
|
const anchorName = `--anchor-${useId()}`;
|
|
26
|
+
|
|
27
|
+
const { elementClasses } = useStyleClassPassthrough(props.styleClassPassthrough);
|
|
22
28
|
</script>
|
|
23
29
|
|
|
24
|
-
<style lang="css">
|
|
30
|
+
<style scoped lang="css">
|
|
25
31
|
@layer popover-setup {
|
|
26
32
|
.popover-trigger {
|
|
27
33
|
anchor-name: v-bind(anchorName);
|
|
@@ -55,7 +55,7 @@ const props = defineProps({
|
|
|
55
55
|
},
|
|
56
56
|
});
|
|
57
57
|
|
|
58
|
-
const { elementClasses
|
|
58
|
+
const { elementClasses } = useStyleClassPassthrough(props.styleClassPassthrough);
|
|
59
59
|
</script>
|
|
60
60
|
|
|
61
61
|
<style lang="css">
|
package/package.json
CHANGED