Line data Source code
1 : <template>
2 2355 : <div
3 : class="flex size-10 shrink-0 items-center justify-center rounded-lg bg-ocean-600 text-white"
4 : >
5 : <i v-if="modelValue === step.id" :class="cn(step.icon, 'size-5')" />
6 : <span v-else class="text-sm font-bold">
7 : {{ index + 1 }}
8 : </span>
9 : </div>
10 : </template>
11 :
12 : <script setup lang="ts">
13 : import { cn } from '@comfyorg/tailwind-utils'
14 :
15 : import type { BuilderToolbarStep } from './types'
16 :
17 : defineProps<{
18 : step: BuilderToolbarStep
19 : index: number
20 : modelValue: string
21 : }>()
22 : </script>
|