Commit b69d653b authored by XieZhiXiong's avatar XieZhiXiong
parents b2cc0db1 7f395123
...@@ -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}>
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment