LCOV - code coverage report
Current view: top level - packages/design-system/src/components/common - NoResultsPlaceholder.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           16 : <template>
       2          116 :   <div :class="cn('h-full p-8', props.class)">
       3              :     <div class="flex flex-col items-center bg-(--surface-ground) text-center">
       4              :       <i v-if="icon" :class="cn(icon, 'mb-4 size-12 text-5xl')" />
       5              :       <slot name="title">
       6              :         <h3 v-if="title" class="mb-2 text-foreground">{{ title }}</h3>
       7              :       </slot>
       8              :       <p :class="cn('mb-4 text-center whitespace-pre-line', textClass)">
       9              :         {{ message }}
      10              :       </p>
      11              :       <Button
      12              :         v-if="buttonLabel"
      13              :         :variant="buttonVariant ?? 'textonly'"
      14              :         @click="$emit('action')"
      15              :       >
      16              :         <i v-if="buttonIcon" :class="buttonIcon" />
      17              :         {{ buttonLabel }}
      18              :       </Button>
      19              :     </div>
      20              :   </div>
      21              : </template>
      22              : 
      23              : <script setup lang="ts">
      24              : import { cn } from '@comfyorg/tailwind-utils'
      25              : 
      26              : import Button from '@comfyorg/design-system/button/Button'
      27              : import type { ButtonVariants } from '@comfyorg/design-system/button.variants'
      28              : 
      29          116 : const props = defineProps<{
      30              :   class?: string
      31              :   icon?: string
      32              :   title?: string
      33              :   message: string
      34              :   textClass?: string
      35              :   buttonIcon?: string
      36              :   buttonLabel?: string
      37              :   buttonVariant?: ButtonVariants['variant']
      38              : }>()
      39              : 
      40              : defineEmits(['action'])
      41              : </script>
        

Generated by: LCOV version 2.0-1