Files
sionrui/frontend/app/web-gold/src/components/ui/resizable/ResizablePanel.vue
2026-03-15 23:31:45 +08:00

22 lines
574 B
Vue

<script setup lang="ts">
import type { SplitterPanelEmits, SplitterPanelProps } from "reka-ui"
import { SplitterPanel, useForwardExpose, useForwardPropsEmits } from "reka-ui"
const props = defineProps<SplitterPanelProps>()
const emits = defineEmits<SplitterPanelEmits>()
const forwarded = useForwardPropsEmits(props, emits)
const { forwardRef } = useForwardExpose()
</script>
<template>
<SplitterPanel
:ref="forwardRef"
v-slot="slotProps"
data-slot="resizable-panel"
v-bind="forwarded"
>
<slot v-bind="slotProps" />
</SplitterPanel>
</template>