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

            Line data    Source code
       1              : <script setup lang="ts">
       2              : import type { SplitterGroupEmits, SplitterGroupProps } from 'reka-ui'
       3              : import { SplitterGroup, useForwardPropsEmits } from 'reka-ui'
       4              : import type { HTMLAttributes } from 'vue'
       5              : 
       6              : import { cn } from '@comfyorg/tailwind-utils'
       7              : 
       8         4799 : const {
       9              :   direction = 'horizontal',
      10              :   class: className,
      11              :   ...restProps
      12              : } = defineProps<
      13              :   Omit<SplitterGroupProps, 'direction'> & {
      14              :     direction?: SplitterGroupProps['direction']
      15              :     class?: HTMLAttributes['class']
      16              :   }
      17              : >()
      18              : const emit = defineEmits<SplitterGroupEmits>()
      19         4799 : const forwarded = useForwardPropsEmits(restProps, emit)
      20         4799 : </script>
      21              : 
      22              : <template>
      23        12005 :   <SplitterGroup
      24              :     v-bind="forwarded"
      25              :     :direction
      26              :     :class="
      27              :       cn('flex size-full', direction === 'vertical' && 'flex-col', className)
      28              :     "
      29              :   >
      30              :     <slot />
      31              :   </SplitterGroup>
      32              : </template>
        

Generated by: LCOV version 2.0-1