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
de0f741b
Commit
de0f741b
authored
Mar 18, 2020
by
满振华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改数据传递
parent
e09c80d6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
23 deletions
+23
-23
index.js
components/DataView/index.js
+23
-23
No files found.
components/DataView/index.js
View file @
de0f741b
...
...
@@ -309,13 +309,13 @@ export default class DataView extends React.Component {
const
newPage
=
page
.
total
>
0
?
{
current
:
page
.
pageNum
,
total
:
page
.
total
,
}
current
:
page
.
pageNum
,
total
:
page
.
total
,
}
:
{
current
:
PAGINATION
.
current
,
total
:
PAGINATION
.
total
,
};
current
:
PAGINATION
.
current
,
total
:
PAGINATION
.
total
,
};
const
newData
=
_
.
assign
({},
data
,
{
origin
:
list
});
this
.
setState
({
pagination
:
_
.
assign
({},
pagination
,
newPage
),
...
...
@@ -639,10 +639,10 @@ export default class DataView extends React.Component {
// 渲染顶部tips
_renderTips
()
{
const
{
tips
}
=
this
.
props
;
const
{
tips
,
tipsClassName
}
=
this
.
props
;
if
(
tips
)
{
return
(
<
div
className
=
{
styles
.
tips
}
>
<
div
className
=
{
`
${
styles
.
tips
}
${
tipsClassName
}
`
}
>
{
tips
}
{
this
.
_renderBtns
()}
<
/div
>
...
...
@@ -674,21 +674,21 @@ export default class DataView extends React.Component {
{
type
===
'download'
?
(
download
()
)
:
(
<
BIButton
style
=
{
style
}
key
=
{
i
}
className
=
{
styles
.
btn
}
onClick
=
{
item
.
type
===
'del'
?
this
.
del
.
bind
(
this
,
label
,
onClick
)
:
onClick
}
{...
antiAssign
(
item
,
'label,onClick,type,iconBtnSrc'
)}
>
{
iconBtnSrc
&&
iconBtnSrc
!==
''
?
(
<
IconFont
className
=
{
styles
.
iconCls
}
type
=
{
iconBtnSrc
}
/
>
)
:
(
<
IconFont
className
=
{
styles
.
iconCls
}
type
=
"iconxinzeng"
/>
)}
<
span
className
=
{
styles
.
titleCls
}
>
{
label
}
<
/span
>
<
/BIButton
>
)}
<
BIButton
style
=
{
style
}
key
=
{
i
}
className
=
{
styles
.
btn
}
onClick
=
{
item
.
type
===
'del'
?
this
.
del
.
bind
(
this
,
label
,
onClick
)
:
onClick
}
{...
antiAssign
(
item
,
'label,onClick,type,iconBtnSrc'
)}
>
{
iconBtnSrc
&&
iconBtnSrc
!==
''
?
(
<
IconFont
className
=
{
styles
.
iconCls
}
type
=
{
iconBtnSrc
}
/
>
)
:
(
<
IconFont
className
=
{
styles
.
iconCls
}
type
=
"iconxinzeng"
/>
)}
<
span
className
=
{
styles
.
titleCls
}
>
{
label
}
<
/span
>
<
/BIButton
>
)}
<
/ButtonAuth
>
);
})}
...
...
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