ant-design / ant-design/pro-components

🐛[BUG] ProTable 中 某列设置了排序sorter: true 点击分页返回的sort 错误 版本:V2.8.9

Open
#9,161 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
4.8k
Forks
1.4k
Avg merge
10h 44m
Merged PRs (30d)
3

Description

提问前先看看:

https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way/blob/main/README-zh_CN.md

### 🐛 bug 描述
打包之后request 方法的sort参数返回值是{undefined: null}

### 📷 复现步骤
1、某列设置排序sorter: true
2、打包项目
3、点击分页sort参数返回{undefined: null}

### 🏞 期望结果
如果没有点击排序 sort应该返回{} , 不应该返回{undefined: null}

### 💻 复现代码

### © 版本信息

- ProComponents 版本: [e.g. 4.0.0]
- umi 版本
- 浏览器环境
- 开发环境 [e.g. mac OS]

### 🚑 其他信息

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the ProTable case with a column using sorter: true, then inspect the request sort value after pagination in the bundled project. No source file, test, reproducible example, or environment details are provided; done means confirming that pagination without a sort returns {} rather than {undefined: null}.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.