feat(plugin-workflow): support variable in midway path (#2598)
This commit is contained in:
parent
cc46d72c53
commit
74bd479de0
@ -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 });
|
||||||
}}
|
}}
|
||||||
|
@ -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({
|
||||||
|
Loading…
Reference in New Issue
Block a user