LCOV - code coverage report
Current view: top level - packages/mask-editor/src/ui/components/controls - SliderControl.vue Coverage Total Hit
Test: ComfyUI E2E Coverage Lines: 66.7 % 6 4
Test Date: 2026-11-17 04:17:53

            Line data    Source code
       1           16 : <template>
       2          148 :   <div class="flex flex-col gap-3 pb-3">
       3              :     <span class="text-left font-sans text-xs text-muted-foreground">{{
       4              :       label
       5              :     }}</span>
       6              :     <input
       7              :       type="range"
       8              :       class="maskEditor_sidePanelBrushRange"
       9              :       :min="min"
      10              :       :max="max"
      11              :       :step="step"
      12              :       :value="modelValue"
      13              :       @input="onInput"
      14              :     />
      15              :   </div>
      16              : </template>
      17              : 
      18              : <script setup lang="ts">
      19              : interface Props {
      20              :   label: string
      21              :   min: number
      22              :   max: number
      23              :   step?: number
      24              :   modelValue: number
      25              : }
      26              : 
      27              : const { label, min, max, step = 1, modelValue } = defineProps<Props>()
      28              : 
      29          145 : const emit = defineEmits<{
      30              :   'update:modelValue': [value: number]
      31              : }>()
      32              : 
      33          145 : const onInput = (event: Event) => {
      34            0 :   const value = Number((event.target as HTMLInputElement).value)
      35            0 :   emit('update:modelValue', value)
      36              : }
      37              : </script>
        

Generated by: LCOV version 2.0-1