mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-03-14 17:37:46 +00:00
Further dynamic input fixes (#8026)
- Fix deserialization of matchtype inputs spawned by autogrow. - Rotate multitype slot indicators to align with design changes. - Fix several instance of incorrect group matching - MatchType reactively updates input type in vue - Support the "hollow circle" optional input indicator in vue - Custom combo sends index of selection to backend ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-8026-Further-dynamic-input-fixes-2e76d73d3650819680fef327a94f4294) by [Unito](https://www.unito.io)
This commit is contained in:
@@ -98,6 +98,19 @@ function onNodeCreated(this: LGraphNode) {
|
||||
}
|
||||
})
|
||||
}
|
||||
const widgets = this.widgets!
|
||||
widgets.push({
|
||||
name: 'index',
|
||||
type: 'hidden',
|
||||
get value() {
|
||||
return widgets.slice(2).findIndex((w) => w.value === comboWidget.value)
|
||||
},
|
||||
set value(_) {},
|
||||
draw: () => undefined,
|
||||
computeSize: () => [0, -4],
|
||||
options: { hidden: true },
|
||||
y: 0
|
||||
})
|
||||
addOption(this)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user