Add Vue Image Preview widget (#4116)

This commit is contained in:
Christian Byrne
2025-06-09 03:52:17 -07:00
committed by GitHub
parent 33e99da325
commit 20e4427602
16 changed files with 649 additions and 373 deletions

View File

@@ -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>)