mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-28 16:41:52 +08:00
18 lines
511 B
Vue
18 lines
511 B
Vue
<script setup lang="ts">
|
|
import type { SelectGroupProps } from "reka-ui"
|
|
import type { HTMLAttributes } from "vue"
|
|
import { reactiveOmit } from "@vueuse/core"
|
|
import { SelectGroup } from "reka-ui"
|
|
import { cn } from "@/lib/utils"
|
|
|
|
const props = defineProps<SelectGroupProps & { class?: HTMLAttributes["class"] }>()
|
|
|
|
const delegatedProps = reactiveOmit(props, "class")
|
|
</script>
|
|
|
|
<template>
|
|
<SelectGroup :class="cn('p-1 w-full', props.class)" v-bind="delegatedProps">
|
|
<slot />
|
|
</SelectGroup>
|
|
</template>
|