mirror of
https://github.com/keven1024/015.git
synced 2026-05-31 01:19:35 +00:00
feat(front): implement DropdownMenu component and its subcomponents for enhanced UI interactivity and organization
This commit is contained in:
15
front/components/ui/dropdown-menu/DropdownMenuSub.vue
Normal file
15
front/components/ui/dropdown-menu/DropdownMenuSub.vue
Normal file
@@ -0,0 +1,15 @@
|
||||
<script setup lang="ts">
|
||||
import type { DropdownMenuSubEmits, DropdownMenuSubProps } from 'reka-ui'
|
||||
import { DropdownMenuSub, useForwardPropsEmits } from 'reka-ui'
|
||||
|
||||
const props = defineProps<DropdownMenuSubProps>()
|
||||
const emits = defineEmits<DropdownMenuSubEmits>()
|
||||
|
||||
const forwarded = useForwardPropsEmits(props, emits)
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<DropdownMenuSub data-slot="dropdown-menu-sub" v-bind="forwarded">
|
||||
<slot />
|
||||
</DropdownMenuSub>
|
||||
</template>
|
||||
Reference in New Issue
Block a user