feat(plugin-workflow): support variable in midway path (#2598)

This commit is contained in:
Junyi 2023-09-11 11:12:53 +07:00 committed by GitHub
parent cc46d72c53
commit 74bd479de0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -103,6 +103,7 @@ const CollectionFieldSet = observer(
<Variable.Input <Variable.Input
scope={scope} scope={scope}
value={value[field.name]} value={value[field.name]}
changeOnSelect
onChange={(next) => { onChange={(next) => {
onChange({ ...value, [field.name]: next }); onChange({ ...value, [field.name]: next });
}} }}

View File

@ -159,7 +159,7 @@ export default {
CalculationExpression(props) { CalculationExpression(props) {
const scope = useWorkflowVariableOptions(); const scope = useWorkflowVariableOptions();
return <Variable.TextArea scope={scope} {...props} />; return <Variable.TextArea scope={scope} changeOnSelect {...props} />;
}, },
ScopeSelect(props) { ScopeSelect(props) {
const scope = useWorkflowVariableOptions({ const scope = useWorkflowVariableOptions({