Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
ComfyUI
Commits
67795e40
"backend/apps/vscode:/vscode.git/clone" did not exist on "62d37f1f1041d0cb9e0a37a67278e34477f505f7"
Commit
67795e40
authored
Mar 10, 2023
by
m957ymj75urz
Browse files
added a range input
parent
21553316
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
1 deletion
+15
-1
web/scripts/ui.js
web/scripts/ui.js
+15
-1
No files found.
web/scripts/ui.js
View file @
67795e40
...
...
@@ -231,6 +231,7 @@ export class ComfyUI {
this
.
dialog
=
new
ComfyDialog
();
this
.
settings
=
new
ComfySettingsDialog
();
this
.
batchCount
=
1
;
this
.
queue
=
new
ComfyList
(
"
Queue
"
);
this
.
history
=
new
ComfyList
(
"
History
"
);
...
...
@@ -256,7 +257,20 @@ export class ComfyUI {
]),
$el
(
"
div
"
,
{
style
:
{
width
:
"
100%
"
}},
[
$el
(
"
label
"
,
{
innerHTML
:
"
Batch count
"
},
[
$el
(
"
input
"
,
{
type
:
"
number
"
,
value
:
"
1
"
,
min
:
"
1
"
,
style
:
{
width
:
"
30%
"
,
"
margin-left
"
:
"
0.4em
"
},
onchange
:
(
i
)
=>
this
.
batchCount
=
i
.
target
.
value
})
$el
(
"
input
"
,
{
id
:
"
batchCountInputNumber
"
,
type
:
"
number
"
,
value
:
this
.
batchCount
,
min
:
"
1
"
,
style
:
{
width
:
"
35%
"
,
"
margin-left
"
:
"
0.4em
"
},
oninput
:
(
i
)
=>
{
this
.
batchCount
=
i
.
target
.
value
;
document
.
getElementById
(
'
batchCountInputRange
'
).
value
=
this
.
batchCount
;
console
.
log
(
"
number
"
);
}
}),
$el
(
"
input
"
,
{
id
:
"
batchCountInputRange
"
,
type
:
"
range
"
,
min
:
"
1
"
,
max
:
"
100
"
,
value
:
this
.
batchCount
,
oninput
:
(
i
)
=>
{
this
.
batchCount
=
i
.
srcElement
.
value
;
document
.
getElementById
(
'
batchCountInputNumber
'
).
value
=
i
.
srcElement
.
value
;
console
.
log
(
"
range
"
);
}
}),
]),
]),
$el
(
"
button.comfy-queue-btn
"
,
{
textContent
:
"
Queue Prompt
"
,
onclick
:
()
=>
app
.
queuePrompt
(
0
,
this
.
batchCount
)
}),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment