fix: 修复 Form Api 根据字段名移除表单项,字段取反了的问题 (#4971)
parent
e3a93970f4
commit
3c4af23edf
|
@ -185,7 +185,7 @@ export class FormApi {
|
|||
const fieldSet = new Set(fields);
|
||||
const schema = this.state?.schema ?? [];
|
||||
|
||||
const filterSchema = schema.filter((item) => fieldSet.has(item.fieldName));
|
||||
const filterSchema = schema.filter((item) => !fieldSet.has(item.fieldName));
|
||||
|
||||
this.setState({
|
||||
schema: filterSchema,
|
||||
|
|
Loading…
Reference in New Issue