diff --git a/src/components/pagination/main.js b/src/components/pagination/main.js index 817f6ca7..97c78e04 100644 --- a/src/components/pagination/main.js +++ b/src/components/pagination/main.js @@ -81,13 +81,17 @@ import _ from "lodash"; this.props.onNextClick(page_num); } onPageClick(e){ + console.log(e) + if(e=="…") + { + return; + } + this.setState({page:e}) this.props.onJumpPage(e) } onInputChange(e,page_num){ - console.log("当前页码变化") - let jump = e.target.value > page_num ? page_num : e.target.value; this.setState({jump_page:jump}) } @@ -139,6 +143,8 @@ import _ from "lodash"; btnPages.push(o); } + + let btns = this.getPageArr(btnPages,this.state.page,5) return (