LCOV - code coverage report
Current view: top level - src/components/dialog - AppDialogPanel.vue Coverage Total Hit
Test: ComfyUI E2E Coverage Lines: 100.0 % 2 2
Test Date: 2026-11-17 04:17:53

            Line data    Source code
       1           16 : <script setup lang="ts">
       2              : import type { HTMLAttributes } from 'vue'
       3              : import { useI18n } from 'vue-i18n'
       4              : 
       5              : import { cn } from '@comfyorg/tailwind-utils'
       6              : 
       7              : import DialogPanel from '@comfyorg/design-system/dialog/DialogPanel'
       8              : import type { DialogPanelProps } from '@comfyorg/design-system/lib/dialog/types'
       9              : 
      10              : const {
      11              :   size = 'default',
      12              :   class: className,
      13              :   bodyClass,
      14              :   unpadded = false,
      15              :   onClose
      16              : } = defineProps<
      17              :   Omit<DialogPanelProps, 'closeLabel'> & {
      18              :     size?: 'compact' | 'default'
      19              :     bodyClass?: HTMLAttributes['class']
      20              :     unpadded?: boolean
      21              :   }
      22              : >()
      23              : 
      24           38 : const { t } = useI18n()
      25              : </script>
      26              : 
      27              : <template>
      28              :   <DialogPanel
      29              :     :close-label="t('g.close')"
      30              :     :on-close
      31              :     :class="
      32              :       cn('w-full', size === 'compact' ? 'max-w-90' : 'max-w-lg', className)
      33              :     "
      34              :   >
      35              :     <template #title><slot name="title" /></template>
      36              :     <slot v-if="unpadded" />
      37              :     <div v-else :class="cn('p-4', bodyClass)"><slot /></div>
      38              :     <template v-if="$slots.footer" #footer><slot name="footer" /></template>
      39              :   </DialogPanel>
      40              : </template>
        

Generated by: LCOV version 2.0-1