We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ba8fb40 commit a861e8dCopy full SHA for a861e8d
src/components/FreecasterPlayer.vue
@@ -1,5 +1,5 @@
1
<script setup lang="ts">
2
- import { useAttrs, computed } from 'vue'
+ import { useAttrs, computed, getCurrentInstance } from 'vue'
3
import { usePlayer } from '../composables/player'
4
import type { Player, PlayerOptions, PlayerEvents } from '../types/Player'
5
@@ -23,6 +23,8 @@
23
24
export type FreecasterPlayerEmits = PlayerEvents
25
26
+ const scopeId = getCurrentInstance().parent.proxy.$options.__scopeId
27
+
28
const props = defineProps<FreecasterPlayerProps>()
29
const slots = defineSlots<FreecasterPlayerSlots>()
30
const emit = defineEmits<FreecasterPlayerEmits>()
@@ -105,6 +107,7 @@
105
107
<div
106
108
ref="element"
109
v-bind="{
110
+ ...(scopeId ? { [scopeId]: '' } : null),
111
...attrs,
112
...attributes
113
}"
0 commit comments