mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-05-01 11:42:06 +00:00
[automated] Apply ESLint and Prettier fixes
This commit is contained in:
@@ -115,14 +115,14 @@ function normalizeWidgetValue(value: unknown): WidgetValue {
|
||||
return undefined
|
||||
}
|
||||
|
||||
function getControlWidget(widget: IBaseWidget): (() => Ref<ControlOptions>)|undefined {
|
||||
function getControlWidget(
|
||||
widget: IBaseWidget
|
||||
): (() => Ref<ControlOptions>) | undefined {
|
||||
const cagWidget = widget.linkedWidgets?.find(
|
||||
(w) => w.name == 'control_after_generate'
|
||||
)
|
||||
if (!cagWidget) return
|
||||
const cagRef = ref<ControlOptions>(
|
||||
normalizeControlOption(cagWidget.value)
|
||||
)
|
||||
const cagRef = ref<ControlOptions>(normalizeControlOption(cagWidget.value))
|
||||
watch(cagRef, (value) => {
|
||||
cagWidget.value = normalizeControlOption(value)
|
||||
cagWidget.callback?.(cagWidget.value)
|
||||
|
||||
@@ -68,7 +68,6 @@ export interface SimplifiedWidget<
|
||||
spec?: InputSpecV2
|
||||
|
||||
controlWidget?: () => Ref<ControlOptions>
|
||||
|
||||
}
|
||||
export type SimplifiedControlWidget<T extends WidgetValue = WidgetValue> =
|
||||
SimplifiedWidget<T> & Required<Pick<SimplifiedWidget<T>, 'controlWidget'>>
|
||||
|
||||
Reference in New Issue
Block a user