mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-03-04 04:30:04 +00:00
Support associated socket for widgets (#3326)
Co-authored-by: github-actions <github-actions@github.com>
This commit is contained in:
@@ -66,7 +66,7 @@ import {
|
||||
import { $el, ComfyUI } from './ui'
|
||||
import { ComfyAppMenu } from './ui/menu/index'
|
||||
import { clone } from './utils'
|
||||
import { type ComfyWidgetConstructor, ComfyWidgets } from './widgets'
|
||||
import { type ComfyWidgetConstructor } from './widgets'
|
||||
|
||||
export const ANIM_PREVIEW_WIDGET = '$$comfy_animation_preview'
|
||||
|
||||
@@ -180,10 +180,7 @@ export class ComfyApp {
|
||||
* @deprecated Use useWidgetStore().widgets instead
|
||||
*/
|
||||
get widgets(): Record<string, ComfyWidgetConstructor> {
|
||||
if (this.vueAppReady) {
|
||||
return useWidgetStore().widgets
|
||||
}
|
||||
return ComfyWidgets
|
||||
return Object.fromEntries(useWidgetStore().widgets.entries())
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user