LCOV - code coverage report
Current view: top level - packages/design-system/src/components/menu - MenuSubContent.vue Coverage Total Hit
Test: ComfyUI E2E Coverage Lines: 100.0 % 5 5
Test Date: 2026-11-17 04:17:53

            Line data    Source code
       1           16 : <script setup lang="ts">
       2              : import type {
       3              :   DropdownMenuSubContentEmits,
       4              :   DropdownMenuSubContentProps
       5              : } from 'reka-ui'
       6              : import { DropdownMenuSubContent, useForwardPropsEmits } from 'reka-ui'
       7              : import type { HTMLAttributes } from 'vue'
       8              : 
       9              : import { cn } from '@comfyorg/tailwind-utils'
      10              : 
      11              : import { menuContentClass } from './menuStyles'
      12              : 
      13         2355 : const {
      14              :   class: className,
      15              :   width = 'default',
      16              :   maxHeight = 'available',
      17              :   ...restProps
      18              : } = defineProps<
      19              :   DropdownMenuSubContentProps & {
      20              :     class?: HTMLAttributes['class']
      21              :     width?: 'default' | 'compact'
      22              :     maxHeight?: 'available' | 'compact'
      23              :   }
      24              : >()
      25              : const emits = defineEmits<DropdownMenuSubContentEmits>()
      26         1183 : const forwarded = useForwardPropsEmits(restProps, emits)
      27         1183 : </script>
      28              : 
      29              : <template>
      30         8493 :   <DropdownMenuSubContent
      31              :     v-bind="forwarded"
      32              :     :class="
      33              :       cn(
      34              :         menuContentClass,
      35              :         width === 'compact' && 'min-w-46.5',
      36              :         maxHeight === 'available' &&
      37              :           'max-h-(--reka-dropdown-menu-content-available-height)',
      38              :         maxHeight === 'compact' && 'max-h-64',
      39              :         className
      40              :       )
      41              :     "
      42              :     @pointermove.stop
      43              :   >
      44              :     <slot />
      45              :   </DropdownMenuSubContent>
      46              : </template>
        

Generated by: LCOV version 2.0-1