feat: Add default value support for all workflow start node variable types (#24129)

Co-authored-by: crazywoola <100913391+crazywoola@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
17hz
2025-08-22 18:44:48 +08:00
committed by GitHub
parent 51cc2bf429
commit ffe1685b54
6 changed files with 100 additions and 36 deletions

View File

@@ -41,6 +41,7 @@ export const userInputsFormToPromptVariables = (useInputs: UserInputFormItem[] |
options: [],
is_context_var,
hide: content.hide,
default: content.default,
})
}
else if (type === 'number') {
@@ -51,6 +52,7 @@ export const userInputsFormToPromptVariables = (useInputs: UserInputFormItem[] |
type,
options: [],
hide: content.hide,
default: content.default,
})
}
else if (type === 'select') {
@@ -78,6 +80,7 @@ export const userInputsFormToPromptVariables = (useInputs: UserInputFormItem[] |
number_limits: 1,
},
hide: content.hide,
default: content.default,
})
}
else if (type === 'file-list') {
@@ -93,6 +96,7 @@ export const userInputsFormToPromptVariables = (useInputs: UserInputFormItem[] |
number_limits: content.max_length,
},
hide: content.hide,
default: content.default,
})
}
else {