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

            Line data    Source code
       1              : <script setup lang="ts">
       2              : import Switch from '@comfyorg/design-system/switch/Switch'
       3              : 
       4              : import LayoutField from './LayoutField.vue'
       5              : 
       6              : defineProps<{
       7              :   id?: string
       8              :   label: string
       9              :   tooltip?: string
      10              : }>()
      11              : 
      12         2355 : const modelValue = defineModel<boolean>({ default: false })
      13           36 : </script>
      14              : 
      15              : <template>
      16           39 :   <LayoutField singleline :label :tooltip>
      17              :     <Switch
      18              :       :id
      19              :       v-model="modelValue"
      20              :       :aria-label="label"
      21              :       class="transition-transform active:scale-90"
      22              :     />
      23              :   </LayoutField>
      24              : </template>
        

Generated by: LCOV version 2.0-1