mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-28 10:12:11 +00:00
Add Vue Image Preview widget (#4116)
This commit is contained in:
@@ -29,7 +29,13 @@ const addMultiSelectWidget = (node: LGraphNode, inputSpec: ComboInputSpec) => {
|
||||
getValue: () => widgetValue.value,
|
||||
setValue: (value: string[]) => {
|
||||
widgetValue.value = value
|
||||
}
|
||||
},
|
||||
// Optional: minimum height for the widget (multiselect needs minimal height)
|
||||
getMinHeight: () => 32,
|
||||
// Lock maximum height to prevent oversizing
|
||||
getMaxHeight: () => 45,
|
||||
// Optional: whether to serialize this widget's value
|
||||
serialize: true
|
||||
}
|
||||
})
|
||||
addWidget(node, widget as BaseDOMWidget<object | string>)
|
||||
|
||||
Reference in New Issue
Block a user