From 8e1d3f3baa8496a578df8557bdcf889a4fba65ea Mon Sep 17 00:00:00 2001 From: Chenlei Hu Date: Thu, 25 Jul 2024 23:15:03 -0400 Subject: [PATCH] Use ComfyNodeDefImpl on NodePreview component (#228) * store widgets * Use node def impl --- src/components/NodePreview.vue | 64 ++++++-------------------------- src/components/NodeSearchBox.vue | 5 ++- src/scripts/app.ts | 8 ++-- src/stores/nodeDefStore.ts | 26 ++++++++++++- 4 files changed, 45 insertions(+), 58 deletions(-) diff --git a/src/components/NodePreview.vue b/src/components/NodePreview.vue index a32ccfb2e..6ad7149f4 100644 --- a/src/components/NodePreview.vue +++ b/src/components/NodePreview.vue @@ -22,7 +22,7 @@ https://github.com/Nuked88/ComfyUI-N-Sidebar/blob/7ae7da4a9761009fb6629bc04c6830
{{ slotInput ? slotInput.name : '' }}
- {{ slotOutput ? slotOutput.name : '' }} + {{ slotOutput ? slotOutput.display_name : '' }}
@@ -34,7 +34,7 @@ https://github.com/Nuked88/ComfyUI-N-Sidebar/blob/7ae7da4a9761009fb6629bc04c6830
{{ widgetInput.name }}
-
{{ widgetInput.defaultValue }}
+
{{ widgetInput.default }}
@@ -45,67 +45,27 @@ https://github.com/Nuked88/ComfyUI-N-Sidebar/blob/7ae7da4a9761009fb6629bc04c6830