feat: add custom image inputs
This commit is contained in:
@@ -22,6 +22,7 @@ const ext = {
|
||||
this.properties = {};
|
||||
this.properties.workflow_name = "";
|
||||
this.properties.workflow_id = "";
|
||||
this.properties.version = "";
|
||||
}
|
||||
|
||||
ComfyWidgets.STRING(
|
||||
@@ -38,6 +39,13 @@ const ext = {
|
||||
app,
|
||||
);
|
||||
|
||||
ComfyWidgets.STRING(
|
||||
this,
|
||||
"version",
|
||||
["", { default: this.properties.version, multiline: false }],
|
||||
app,
|
||||
);
|
||||
|
||||
// this.widgets.forEach((w) => {
|
||||
// // w.computeSize = () => [200,10]
|
||||
// w.computedHeight = 2;
|
||||
@@ -150,6 +158,7 @@ function addButton() {
|
||||
deploy.style.color = "green";
|
||||
|
||||
deployMetaNode.widgets[1].value = data.workflow_id;
|
||||
deployMetaNode.widgets[2].value = data.version;
|
||||
graph.change();
|
||||
|
||||
infoDialog.show(
|
||||
|
||||
Reference in New Issue
Block a user