mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-26 01:09:46 +00:00
Inline numeric widget configurations (#2792)
This commit is contained in:
@@ -31,7 +31,8 @@ const zNumericInputOptions = zBaseInputOptions.extend({
|
||||
max: z.number().optional(),
|
||||
step: z.number().optional(),
|
||||
// Note: Many node authors are using INT/FLOAT to pass list of INT/FLOAT.
|
||||
default: z.union([z.number(), z.array(z.number())]).optional()
|
||||
default: z.union([z.number(), z.array(z.number())]).optional(),
|
||||
display: z.enum(['slider', 'number']).optional()
|
||||
})
|
||||
|
||||
const zIntInputOptions = zNumericInputOptions.extend({
|
||||
|
||||
Reference in New Issue
Block a user