1
0
Fork 0
mirror of https://github.com/CorentinTh/it-tools.git synced 2025-07-27 09:09:37 +02:00

feat(ui): sidenav layout

This commit is contained in:
Corentin Thomasset 2024-10-27 15:02:54 +01:00
parent b88f13a7ca
commit 8929b5af6e
No known key found for this signature in database
GPG key ID: DBD997E935996158
85 changed files with 648 additions and 566 deletions

View file

@ -1,23 +1,23 @@
<script setup lang="ts">
import { cn } from '@/src/modules/shared/style/cn'
import { cn } from '@/src/modules/shared/style/cn';
import {
DropdownMenuSubContent,
type DropdownMenuSubContentEmits,
type DropdownMenuSubContentProps,
useForwardPropsEmits,
} from 'radix-vue'
import { computed, type HTMLAttributes } from 'vue'
} from 'radix-vue';
import { computed, type HTMLAttributes } from 'vue';
const props = defineProps<DropdownMenuSubContentProps & { class?: HTMLAttributes['class'] }>()
const emits = defineEmits<DropdownMenuSubContentEmits>()
const props = defineProps<DropdownMenuSubContentProps & { class?: HTMLAttributes['class'] }>();
const emits = defineEmits<DropdownMenuSubContentEmits>();
const delegatedProps = computed(() => {
const { class: _, ...delegated } = props
const { class: _, ...delegated } = props;
return delegated
})
return delegated;
});
const forwarded = useForwardPropsEmits(delegatedProps, emits)
const forwarded = useForwardPropsEmits(delegatedProps, emits);
</script>
<template>