Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
monorepo
/
venus
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
1
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 3c4af23e
authored
Nov 30, 2024
by
Svend
Committed by
GitHub
Nov 30, 2024
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix: 修复 Form Api 根据字段名移除表单项,字段取反了的问题 (#4971)
1 parent
e3a93970
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
packages/@core/ui-kit/form-ui/src/form-api.ts
packages/@core/ui-kit/form-ui/src/form-api.ts
View file @
3c4af23
...
@@ -185,7 +185,7 @@ export class FormApi {
...
@@ -185,7 +185,7 @@ export class FormApi {
const
fieldSet
=
new
Set
(
fields
);
const
fieldSet
=
new
Set
(
fields
);
const
schema
=
this
.
state
?.
schema
??
[];
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
({
this
.
setState
({
schema
:
filterSchema
,
schema
:
filterSchema
,
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment