ant-design / ant-design/pro-components
👑 [需求]增加关闭Protable中transform的深合并的开关
- 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
### 🔩 所属模块或组件
ProTable更新到最新版本后,transform属性变成了深合并模式。
### 🥰 需求描述
transform变成深合并模式后,将会将原本值传递到查询条件。原本的业务场景只需要修改之后的值,这个模式也关不掉,而且传递原本的值,后端将会生效这个查询条件,影响原本业务场景了。希望增加一个关闭深合并模式的属性,走原本直接替换的逻辑。
### ⛰ 功能需求适用场景
大多属业务场景中,是不需要转换之前的值的,对于后端来说转换之前的值是无效数据。
### 🧐 解决方案
增加一个类似deepMergeOpen的开关,能够关闭深合并,只获取到转换后的值。
### 🚑 其他信息
Contributor guide
Research direction
The issue concerns ProTable's transform behavior, but names no file or test. Start by locating the ProTable transform implementation and its deep-merge handling; compare current behavior with the requested opt-out. The work is done when transformed query values follow the selected merge behavior and the relevant tests cover both modes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100