云
6 天以前 0517176cf1c439d04be39a2313cf114ffc3ae080
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<script setup lang="ts">
import type { HoverCardRootEmits, HoverCardRootProps } from 'reka-ui';
 
import { HoverCardRoot, useForwardPropsEmits } from 'reka-ui';
 
const props = defineProps<HoverCardRootProps>();
const emits = defineEmits<HoverCardRootEmits>();
 
const forwarded = useForwardPropsEmits(props, emits);
</script>
 
<template>
  <HoverCardRoot v-slot="slotProps" data-slot="hover-card" v-bind="forwarded">
    <slot v-bind="slotProps"></slot>
  </HoverCardRoot>
</template>