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
791b323d
Commit
791b323d
authored
Jul 03, 2021
by
无木
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(table): param of `handleSearchInfoFn`
修复`handleSearchInfoFn`的参数会有多余的空白键
parent
49f39de7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
4 deletions
+11
-4
CHANGELOG.zh_CN.md
CHANGELOG.zh_CN.md
+5
-3
useFormValues.ts
src/components/Form/src/hooks/useFormValues.ts
+1
-1
index.vue
src/views/demo/system/account/index.vue
+5
-0
No files found.
CHANGELOG.zh_CN.md
View file @
791b323d
...
...
@@ -10,9 +10,9 @@
### 🐛 Bug Fixes
-
**Modal**
修复点击遮罩不能关闭
-
**Table**
修复
`editComponentProps`
不支持
`onChange`
-
**Modal**
修复
`setModalProps`
不支持设置
`defaultFullscreen`
-
**Modal**
修复点击遮罩不能关闭
的问题
-
**Table**
修复
`editComponentProps`
不支持
`onChange`
的问题
-
**Modal**
修复
`setModalProps`
不支持设置
`defaultFullscreen`
的问题
-
**Sider**
修复侧边菜单底部的折叠自定义失效的问题
-
**Table**
修复为 table 提供 rowSelection.onChange 时,无法手动变更 table 的选中项的问题
-
**Icon**
修复 SvgIcon 缺少部分样式的问题
...
...
@@ -24,6 +24,8 @@
-
**Table**
修复全局配置
`fetchSetting`
可能会被局部配置意外修改的问题
-
**Form**
修复
`submitButtonOptions`
和
`resetButtonOptions`
的类型定义
-
**PopconfirmButton**
移除
`Button`
上多余的
`title`
-
**Axios**
修复非
`GET`
请求时,无法同时提交
`params`
和
`data`
数据的问题
-
**Table**
修复
`handleSearchInfoFn`
的参数包含多余空白键的问题
## 2.5.2(2021-06-27)
...
...
src/components/Form/src/hooks/useFormValues.ts
View file @
791b323d
...
...
@@ -26,7 +26,7 @@ export function useFormValues({
for
(
const
item
of
Object
.
entries
(
values
))
{
let
[,
value
]
=
item
;
const
[
key
]
=
item
;
if
((
isArray
(
value
)
&&
value
.
length
===
0
)
||
isFunction
(
value
))
{
if
(
!
key
||
(
isArray
(
value
)
&&
value
.
length
===
0
)
||
isFunction
(
value
))
{
continue
;
}
const
transformDateFunc
=
unref
(
getProps
).
transformDateFunc
;
...
...
src/views/demo/system/account/index.vue
View file @
791b323d
...
...
@@ -63,10 +63,15 @@
formConfig
:
{
labelWidth
:
120
,
schemas
:
searchFormSchema
,
autoSubmitOnEnter
:
true
,
},
useSearchForm
:
true
,
showTableSetting
:
true
,
bordered
:
true
,
handleSearchInfoFn
(
info
)
{
console
.
log
(
'
handleSearchInfoFn
'
,
info
);
return
info
;
},
actionColumn
:
{
width
:
120
,
title
:
'
操作
'
,
...
...
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