mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-03-10 07:30:08 +00:00
Move marker property from BaseWidget to SliderWidget (#584)
* Move marker property from BaseWidget to SliderWidget * nit
This commit is contained in:
@@ -7,9 +7,7 @@ import type { IBaseWidget, IWidget, IWidgetOptions, TWidgetType, TWidgetValue }
|
||||
export abstract class BaseWidget implements IBaseWidget {
|
||||
linkedWidgets?: IWidget[]
|
||||
options: IWidgetOptions<unknown>
|
||||
marker?: number
|
||||
label?: string
|
||||
clicked?: boolean
|
||||
name?: string
|
||||
type?: TWidgetType
|
||||
value?: TWidgetValue
|
||||
|
||||
@@ -10,12 +10,14 @@ export class SliderWidget extends BaseWidget implements ISliderWidget {
|
||||
declare type: "slider"
|
||||
declare value: number
|
||||
declare options: IWidgetSliderOptions
|
||||
marker?: number
|
||||
|
||||
constructor(widget: ISliderWidget) {
|
||||
super(widget)
|
||||
this.type = "slider"
|
||||
this.value = widget.value
|
||||
this.options = widget.options
|
||||
this.marker = widget.marker
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user