Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
submodule
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
web_component
submodule
Commits
a2646970
Commit
a2646970
authored
May 20, 2020
by
满振华
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://apollo.mttop.cn/gitlab/web_component/submodule
parents
6d2e2ee6
d3d4ea44
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
index.tsx
components/dataView-V2/_components/searchView/index.tsx
+3
-0
index.tsx
components/dataView-V2/index.tsx
+2
-1
No files found.
components/dataView-V2/_components/searchView/index.tsx
View file @
a2646970
...
...
@@ -73,6 +73,7 @@ const SearchForm = (props: Props) => {
return
(
<
DatePicker
{
...
componentAttr
}
allowClear
className=
{
classnames
(
styles
.
timeStyle
,
className
||
styles
.
itemContent
)
}
placeholder=
{
placeholder
}
disabled=
{
disabled
}
...
...
@@ -82,6 +83,7 @@ const SearchForm = (props: Props) => {
return
(
<
RangePicker
{
...
componentAttr
}
allowClear
placeholder=
{
placeholder
}
className=
{
classnames
(
styles
.
timeStyle
,
className
||
styles
.
itemContent
)
}
disabled=
{
disabled
}
...
...
@@ -91,6 +93,7 @@ const SearchForm = (props: Props) => {
return
(
<
Search
{
...
componentAttr
}
allowClear
request=
{
col
.
request
}
optionsKey=
{
col
.
optionsKey
}
placeholder=
{
placeholder
}
...
...
components/dataView-V2/index.tsx
View file @
a2646970
...
...
@@ -59,7 +59,8 @@ const DataView = (props: Props, ref: Ref<any>) => {
pageNum
:
state
.
pagination
.
pageNum
,
},
(
pagination
||
{}));
}
const
_afterFetch
=
({
dataSource
,
pagination
}:
any
)
=>
{
const
_afterFetch
=
(
params
:
any
)
=>
{
const
{
dataSource
=
[],
pagination
=
{}
}
=
params
||
{}
return
{
pagination
:
{
...
state
.
pagination
,
...(
pagination
||
{})
},
dataSource
:
Array
.
isArray
(
dataSource
)
?
dataSource
.
slice
()
:
[],
...
...
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