Browse Source

滚动条添加

master
xingyongchun 2 years ago
parent
commit
77f0328ee2
  1. 6
      web/client/src/sections/homePage/containers/index.js

6
web/client/src/sections/homePage/containers/index.js

@ -206,7 +206,7 @@ function Management(props) {
<div className={CX("index-main-box-title")}>本周在研项目</div> <div className={CX("index-main-box-title")}>本周在研项目</div>
<div className={CX("index-main-box-en")}>/Research project this week</div> <div className={CX("index-main-box-en")}>/Research project this week</div>
<Spin spinning={false}> <Spin spinning={false}>
<Table dataSource={projectData} columns={projectCol} size="middle" pagination={false}/> <Table dataSource={projectData} columns={projectCol} size="middle" pagination={false} scroll={{ y: 340 }}/>
</Spin> </Spin>
</div> </div>
@ -214,7 +214,7 @@ function Management(props) {
<img className={CX("index-main-box-point")} src={pointImg} /> <img className={CX("index-main-box-point")} src={pointImg} />
<div className={CX("index-main-box-title")}>待研发项目</div> <div className={CX("index-main-box-title")}>待研发项目</div>
<div className={CX("index-main-box-en")}>/Project to be developed</div> <div className={CX("index-main-box-en")}>/Project to be developed</div>
<Table dataSource={waitData} columns={waitCol} size="middle" pagination={false} scroll={{x:500}}/> <Table dataSource={waitData} columns={waitCol} size="middle" pagination={false} scroll={{ y: 340 }}/>
</div> </div>
</div> </div>
<div className={CX("index-main-box")} style={{width:'80%',margin:'0 auto',marginTop:'1rem'}}> <div className={CX("index-main-box")} style={{width:'80%',margin:'0 auto',marginTop:'1rem'}}>
@ -222,7 +222,7 @@ function Management(props) {
<div className={CX("index-main-box-title")}>人员情况</div> <div className={CX("index-main-box-title")}>人员情况</div>
<div className={CX("index-main-box-en")}>/Information on Personnel</div> <div className={CX("index-main-box-en")}>/Information on Personnel</div>
{/* <Scroller containerId={"article-container-query"} height={"80%"}> */} {/* <Scroller containerId={"article-container-query"} height={"80%"}> */}
<Table dataSource={peopleData} columns={peopleCol} size="middle" pagination={false} scroll={{ y: 240 }} /> <Table dataSource={peopleData} columns={peopleCol} size="middle" pagination={false} scroll={{ y: 300 }} />
{/* </Scroller> */} {/* </Scroller> */}

Loading…
Cancel
Save