baidu / baidu/amis

form 表单中非接口请求set的data 中有 key 中存在 . 符号问题

Open
#8,672 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
18.9k
Forks
2.7k
PR merge metrics
No merged PRs in 30d

Description

#### 实现场景:
使用 form schema 会自定义一些data 数据和 接口数据 merge , 自定义这个数据中的键值对中键值名字中存在 “.”
例如:aaa.b: 123

#### 存在的问题:
会被解析
aaa : {
b: 123
}

尝试使用 convertKeyToPath 属性,但他是处理接口返回的,这种手动注入的数据设置 key 不处理呢?

#### 当前方案:
请粘贴你当前方案的完整 amis schema 代码...

```
code here...
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the form schema data merge described in the issue, using a manually injected key such as `aaa.b`, and compare it with the `convertKeyToPath` handling for interface data. The issue does not name a source file or test; done means the intended handling of literal dots in manually injected keys is defined and verified without changing the existing interface-data behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.