fix:值更新

Change-Id: I3a83fe7cde62ecf15b641727b41305d355e7276b
This commit is contained in:
qianchuan 2022-07-29 19:41:41 +08:00
parent 62ab9ebbcf
commit 314ca35640

View File

@ -497,7 +497,11 @@ export default class FormulaControl extends React.Component<
{...rest}
evalMode={evalMode ?? this.state.evalMode}
variableMode={rest.variableMode ?? this.state.variableMode}
variables={this.state.variables}
variables={
this.state.variables?.length
? this.state.variables
: dataMapping(this.props.variables, this.props.data)
}
header={header || labelText}
value={isString(value) ? value : undefined}
onChange={onChange}