baidu / baidu/amis

升级到3.4.1之后,input-table的单元格name存在点时数据域有影响

Open
#14,136 0 comments 0 reactions 0 assignees View on GitHub
need confirm
Dominant language
TypeScript
Stars
18.9k
Forks
2.7k
PR merge metrics
No merged PRs in 30d

Description

#### 描述问题:

升级到3.4.1之后,input-table的单元格name存在点时数据域有影响。第二个name修改会覆盖第一个的修改。

#### 截图或视频:

Image

#### 如何复现(请务必完整填写下面内容):

1. 你是如何使用 amis 的?
`npm`

2. amis 版本是什么?请先在最新 beta 版本测试问题是否存在
3.4.1之后
3. 粘贴有问题的完整 `amis schema` 代码:
```
{
"type": "page",
"body": {
"type": "form",
"debug": true,
"api": "https://aliyunfc-amis-mock-gmecwxibod.cn-beijing.fcapp.run/api/amis-mock/mock2/form/saveForm",
"body": [
{
"type": "input-table",
"name": "table",
"label": false,
"addable": true,
"copyable": true,
"editable": true,
"value": [
{
"a": "a1",
"b": "b1"
}
],
"columns": [
{
"name": "obj.a",
"label": "A"
},
{
"name": "obj.b",
"label": "B"
}
]
}
]
}
}
```

4. 操作步骤
1、先修改A,输入’a',修改之后obj: { a: 'a' }
2、再修改B,输入‘b',修改之后期望obj: { a: 'a', b: 'b' },但实际为 obj: { b: 'b' },覆盖了之前的值

Image

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at the input-table implementation and reproduce the supplied schema using the two dotted cell names, obj.a and obj.b. Trace how each cell edit updates the row data, then verify that editing both cells preserves both nested values rather than replacing the first; repeat the reported steps to confirm the fix.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.