Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-platform
Project
Project
Details
Activity
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
黄庭坚
jinfa-platform
Commits
b69d653b
Commit
b69d653b
authored
Jan 04, 2021
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
http://10.0.0.22:3000/lingxi/lingxi-business-paltform
into dev
parents
b2cc0db1
7f395123
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
5 deletions
+12
-5
index.tsx
src/pages/home/components/LatestAnnounces/index.tsx
+12
-5
No files found.
src/pages/home/components/LatestAnnounces/index.tsx
View file @
b69d653b
...
@@ -56,15 +56,22 @@ const LatestAnnouces: React.FC = () => {
...
@@ -56,15 +56,22 @@ const LatestAnnouces: React.FC = () => {
setVisible
(
true
)
setVisible
(
true
)
setCurrnetNotice
(
row
)
setCurrnetNotice
(
row
)
}
}
const
length
=
data
.
length
;
return
(
return
(
<
div
className=
{
styles
.
announces
}
>
<
div
className=
{
styles
.
announces
}
>
<
div
className=
{
styles
.
header
}
>
<
div
className=
{
styles
.
header
}
>
<
div
className=
{
styles
.
title
}
>
最新公告
</
div
>
<
div
className=
{
styles
.
title
}
>
最新公告
</
div
>
<
div
className=
{
styles
.
nextOrPreview
}
>
{
<
Button
onClick=
{
handlePrev
}
icon=
{
<
LeftOutlined
/>
}
className=
{
styles
.
prev
}
disabled=
{
pagination
.
current
<=
1
}
></
Button
>
length
>=
6
<
Button
onClick=
{
handleNext
}
icon=
{
<
RightOutlined
/>
}
disabled=
{
pagination
.
current
*
5
>=
totalCount
}
></
Button
>
?
(
</
div
>
<
div
className=
{
styles
.
nextOrPreview
}
>
<
Button
onClick=
{
handlePrev
}
icon=
{
<
LeftOutlined
/>
}
className=
{
styles
.
prev
}
disabled=
{
pagination
.
current
<=
1
}
></
Button
>
<
Button
onClick=
{
handleNext
}
icon=
{
<
RightOutlined
/>
}
disabled=
{
pagination
.
current
*
5
>=
totalCount
}
></
Button
>
</
div
>
)
:
null
}
</
div
>
</
div
>
<
div
className=
{
styles
.
body
}
>
<
div
className=
{
styles
.
body
}
>
{
{
...
...
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