Line data Source code
1 : <template>
2 2355 : <div class="flex h-full flex-col overflow-auto">
3 : <div class="flex items-center border-b px-3 py-2">
4 : <Button
5 : :tooltip="$t('g.back')"
6 : tooltip-side="bottom"
7 : variant="muted-textonly"
8 : size="icon"
9 : :aria-label="$t('g.back')"
10 : @click="$emit('close')"
11 : >
12 : <i class="icon-[lucide--arrow-left]" />
13 : </Button>
14 : <span class="ml-2 flex-1 truncate font-semibold">
15 : {{ node.display_name }}
16 : </span>
17 : <SidebarTabCloseButton />
18 : </div>
19 : <div class="grow p-4">
20 : <NodeHelpContent :node />
21 : </div>
22 : </div>
23 : </template>
24 :
25 : <script setup lang="ts">
26 : import NodeHelpContent from '@/components/node/NodeHelpContent.vue'
27 : import SidebarTabCloseButton from '@/components/sidebar/tabs/SidebarTabCloseButton.vue'
28 : import Button from '@comfyorg/design-system/button/Button'
29 : import type { ComfyNodeDefImpl } from '@/core/graph/nodeDef/ComfyNodeDefImpl'
30 :
31 : const { node } = defineProps<{ node: ComfyNodeDefImpl }>()
32 :
33 : defineEmits<{
34 : (e: 'close'): void
35 : }>()
36 : </script>
|