Commit b69d653b authored by XieZhiXiong's avatar XieZhiXiong
parents b2cc0db1 7f395123
......@@ -56,15 +56,22 @@ const LatestAnnouces: React.FC = () => {
setVisible(true)
setCurrnetNotice(row)
}
const length = data.length;
return (
<div className={styles.announces}>
<div className={styles.header}>
<div className={styles.title}>最新公告</div>
{
length >= 6
? (
<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 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