feat: add custom image inputs

This commit is contained in:
BennyKok
2023-12-15 11:14:21 +08:00
parent c791f5d0a6
commit 1ea80e5e84
11 changed files with 631 additions and 7 deletions
+9
View File
@@ -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(