We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
期望给onShowSizeChange增加返回值,通过返回值判断是否要继续执行onPageChange,现在只要传了onShowSizeChange,就会调用onPageChange,是否可以这样,比如
_this.changePageSize = function (size) { /*... 原来的逻辑 ... */ //在这里增加个判断,可以让用户选择是否继续调用onChange,也可以用户手动调用 const noChangePage = _this.props.onShowSizeChange(current, size); if (noChangePage === 'reject') return if ('onChange' in _this.props && _this.props.onChange) { _this.props.onChange(current, size); } };
The text was updated successfully, but these errors were encountered:
No branches or pull requests
期望给onShowSizeChange增加返回值,通过返回值判断是否要继续执行onPageChange,现在只要传了onShowSizeChange,就会调用onPageChange,是否可以这样,比如
The text was updated successfully, but these errors were encountered: