Skip to content

在使用有下拉选项分页器时,重置后,展现没有效果。 #1782

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
lz2205324544 opened this issue Feb 12, 2020 · 2 comments
Closed
Labels

Comments

@lz2205324544
Copy link

重置分页

我在下拉选项中选择1条/页时,点击重置,发现并没有返回到最开始加载时的5条/页.

下面是我关于重置的代码

reset(){
       // 重置分页
   
        this.pagination.pageSize=this.pagination.defaultPageSize   //5
        this.pagination.current=this.pagination.defaultCurrent     //1

        this.paginationInfo=null
}

但是我发现只要在
this.pagination.pageSize=this.pagination.defaultPageSize //5
this.pagination.current=this.pagination.defaultCurrent //1

先进行个 this.pagination.pageSize=15就可以了,只要一开始赋的值不是和默认的一样就行了。

reset(){
       // 重置分页
        this.pagination.pageSize=15
        this.pagination.pageSize=this.pagination.defaultPageSize   //5
        this.pagination.current=this.pagination.defaultCurrent     //1

        this.paginationInfo=null
}

我就有点纳闷了,不知道为什么会这样?

@close-issue-app
Copy link

Your issue has been closed because it does not conform to our issue requirements. Please use the Issue Helper to create an issue, thank you!

为了能够进行高效沟通,我们对 issue 有一定的格式要求,你的 issue 因为不符合要求而被自动关闭。你可以通过 issue 助手 来创建 issue 以方便我们定位错误。谢谢配合!

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 12, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant