ant-design / ant-design/pro-components

🧐[问题]transform 中如何返回 新的namepath

Open
#9,128 1 comment 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

### 🧐 问题描述
transform 中如何返回 新的namepath ,比如:
` {
console.log("-------->ProFormDatePicker transform value:", value)
const namePat2 = ['items', itemIdx, 'answerData', 'keys'];
return {
['items', itemIdx, 'answerData', 'keys']: value
};
}}
/>`

上述不能这样 return,有什么办法吗
### 💻 示例代码

Contributor guide

Open the contributing guide

Research direction

Start by tracing ProFormDatePicker's transform handling and how name paths are represented in the form APIs; the issue does not name a source file or test. Confirm whether returning a dynamically constructed name path is supported, and define completion as a documented or tested way to produce the requested nested field output.

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
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.