Update main.js
This commit is contained in:
parent
25da5c728b
commit
d5f9efeceb
|
@ -154,10 +154,14 @@ import _ from "lodash";
|
|||
render() {
|
||||
const { data} = this.props;
|
||||
let page_num =Math.ceil( data.count / this.state.count);
|
||||
|
||||
console.log(page_num)
|
||||
|
||||
|
||||
let btnPages = []
|
||||
for(let i = 1;i<page_num + 1;i++ )
|
||||
{
|
||||
|
||||
console.log(1)
|
||||
// let o = {}
|
||||
// o.page = i;
|
||||
// o.text = i ;
|
||||
|
@ -165,7 +169,8 @@ import _ from "lodash";
|
|||
}
|
||||
|
||||
|
||||
let btns = this.getPageArr(btnPages,this.state.page,3)
|
||||
|
||||
let btns = this.getPageArr(btnPages,this.state.page,8)
|
||||
return (
|
||||
<div className="pagination">
|
||||
<div className="pagination-context">
|
||||
|
|
Loading…
Reference in New Issue