mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-04 21:08:55 +08:00
pipeOut 在设置初始值时要执行
This commit is contained in:
parent
80077117b6
commit
eed6f71f8f
@ -464,6 +464,16 @@ export default class FormControl extends React.PureComponent<
|
||||
return;
|
||||
}
|
||||
|
||||
const {
|
||||
formStore: form,
|
||||
control: {pipeOut}
|
||||
} = this.props;
|
||||
|
||||
if (pipeOut) {
|
||||
const oldValue = this.model.value;
|
||||
value = pipeOut(value, oldValue, form.data);
|
||||
}
|
||||
|
||||
this.model.changeValue(value, true);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user