Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
najiu-admin-template
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
najiu-frontend
najiu-admin-template
Commits
8f76ef4e
Commit
8f76ef4e
authored
Mar 04, 2021
by
Vben
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(form): allow the setFieldsValue method to be null or undefined close #320
parent
e6960896
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
2 deletions
+5
-2
CHANGELOG.zh_CN.md
CHANGELOG.zh_CN.md
+1
-0
useFormEvents.ts
src/components/Form/src/hooks/useFormEvents.ts
+3
-1
Breadcrumb.vue
src/layouts/default/header/components/Breadcrumb.vue
+1
-1
No files found.
CHANGELOG.zh_CN.md
View file @
8f76ef4e
...
...
@@ -11,6 +11,7 @@
-
修复
`BasicTree`
下 ActionItem 的 show 属性逻辑问题
-
修复树组件 demo 示例样式错误
-
修复账号管理新增未清空旧数据
-
form 组件应允许 setFieldsValue 方法值为 null 或者 undefined
## 2.0.2 (2021-03-04)
...
...
src/components/Form/src/hooks/useFormEvents.ts
View file @
8f76ef4e
...
...
@@ -59,9 +59,11 @@ export function useFormEvents({
const
schema
=
unref
(
getSchema
).
find
((
item
)
=>
item
.
field
===
key
);
let
value
=
values
[
key
];
const
hasKey
=
Reflect
.
has
(
values
,
key
);
value
=
handleInputNumberValue
(
schema
?.
component
,
value
);
// 0| '' is allow
if
(
value
!==
undefined
&&
value
!==
null
&&
fields
.
includes
(
key
))
{
if
(
hasKey
&&
fields
.
includes
(
key
))
{
// time type
if
(
itemIsDateType
(
key
))
{
if
(
Array
.
isArray
(
value
))
{
...
...
src/layouts/default/header/components/Breadcrumb.vue
View file @
8f76ef4e
...
...
@@ -91,7 +91,7 @@
return
true
;
}).
filter
((
item
)
=>
!
item
.
meta
?.
hideBreadcrumb
||
!
item
.
meta
?.
hideMenu
);
resultList
=
resultList
.
filter
((
item
)
=>
item
.
path
!==
PageEnum
.
BASE_HOME
);
//
resultList = resultList.filter((item) => item.path !== PageEnum.BASE_HOME);
return
resultList
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment