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
 | 
			
		||||
                      scope={scope}
 | 
			
		||||
                      value={value[field.name]}
 | 
			
		||||
                      changeOnSelect
 | 
			
		||||
                      onChange={(next) => {
 | 
			
		||||
                        onChange({ ...value, [field.name]: next });
 | 
			
		||||
                      }}
 | 
			
		||||
 | 
			
		||||
@ -159,7 +159,7 @@ export default {
 | 
			
		||||
    CalculationExpression(props) {
 | 
			
		||||
      const scope = useWorkflowVariableOptions();
 | 
			
		||||
 | 
			
		||||
      return <Variable.TextArea scope={scope} {...props} />;
 | 
			
		||||
      return <Variable.TextArea scope={scope} changeOnSelect {...props} />;
 | 
			
		||||
    },
 | 
			
		||||
    ScopeSelect(props) {
 | 
			
		||||
      const scope = useWorkflowVariableOptions({
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user