|
|
|
@ -279,9 +279,13 @@ function JupyterTPI (props) {
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// 分页处理
|
|
|
|
|
const handleChangePage = (page) => {
|
|
|
|
|
|
|
|
|
|
handlePageChange(page);
|
|
|
|
|
const handleChangePage = (e) => {
|
|
|
|
|
//滑动到底判断
|
|
|
|
|
let newscrollTop=parseInt(e.currentTarget.scrollTop);
|
|
|
|
|
let allclientHeight=e.currentTarget.clientHeight+newscrollTop;
|
|
|
|
|
if(e.currentTarget.scrollHeight-allclientHeight===0||e.currentTarget.scrollHeight-allclientHeight===1||e.currentTarget.scrollHeight-allclientHeight===-1){
|
|
|
|
|
handlePageChange(pagination.page+1);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
// const listCtx = ;
|
|
|
|
|
useEffect(() => {
|
|
|
|
@ -310,7 +314,7 @@ function JupyterTPI (props) {
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
const oUl = (
|
|
|
|
|
<ul className="jupyter_data_list" >
|
|
|
|
|
<ul className="jupyter_data_list" onScroll={(event)=>handleChangePage(event)} >
|
|
|
|
|
{ oList }
|
|
|
|
|
</ul>
|
|
|
|
|
);
|
|
|
|
@ -420,18 +424,18 @@ function JupyterTPI (props) {
|
|
|
|
|
</div>
|
|
|
|
|
<input id="jupyter_folder_name" className={"file_path_input"} value={jupyter_folder_name}/>
|
|
|
|
|
</h2>
|
|
|
|
|
{ renderCtx }
|
|
|
|
|
<div className='jupyter_pagination'>
|
|
|
|
|
{total<20?"":<Pagination
|
|
|
|
|
simple
|
|
|
|
|
current={pagination.page}
|
|
|
|
|
pageSize={pagination.limit}
|
|
|
|
|
total={total}
|
|
|
|
|
onChange={handleChangePage}
|
|
|
|
|
/>}
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
{ renderCtx }
|
|
|
|
|
{/*<div className='jupyter_pagination'>*/}
|
|
|
|
|
{/* {total<20?"":<Pagination*/}
|
|
|
|
|
{/* simple*/}
|
|
|
|
|
{/* current={pagination.page}*/}
|
|
|
|
|
{/* pageSize={pagination.limit}*/}
|
|
|
|
|
{/* total={total}*/}
|
|
|
|
|
{/* onChange={handleChangePage}*/}
|
|
|
|
|
{/* />}*/}
|
|
|
|
|
{/*</div>*/}
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</Drawer>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|