修复 formItem 有默认值时无法删除的问题 (#1577)

This commit is contained in:
liaoxuezhi 2021-02-18 22:41:04 +08:00 committed by GitHub
parent 63d013e20b
commit 0e420dfa47
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -507,7 +507,7 @@ export default class FormControl extends React.PureComponent<ControlProps> {
getValue() {
const {formStore: form, control} = this.props;
let value: any = this.model?.tmpValue ?? control.value;
let value: any = this.model ? this.model.tmpValue : control.value;
if (control.pipeIn) {
value = control.pipeIn(value, form.data);