baidu / baidu/amis

【amis-editor】编辑schema时格式化异常,删除的内容又还原了

Open
#10,367 1 comment 0 reactions 0 assignees View on GitHub
bug need confirm
Dominant language
TypeScript
Stars
18.9k
Forks
2.7k
PR merge metrics
No merged PRs in 30d

Description

#### 描述问题:

【amis-editor】编辑schema时格式化异常,删除的内容又还原了,偶现bug

#### 截图或视频:

https://github.com/baidu/amis/assets/116187210/b1d789e0-42c9-462f-bfca-2771fd967de8

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

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

2. amis 版本是什么?请先在最新 beta 版本测试问题是否存在
6.3.0
3. 粘贴有问题的完整 `amis schema` 代码:
```
{
type: 'page',
body: [
{
type: 'button',
label: '智能评估',
level: 'link',
actionType: 'ajax',
api: {
url: '/dadadas',
data: {
appId: 'xxx'
},
messages: {
success: ''
}
},

id: 'u:7112183a1064',
feedback: {
body: []
}
}
]
}
```

4. 操作步骤
如视频所示。

Contributor guide

No contributing guide indexed for this repository

Research direction

Start in the amis-editor schema-editing flow and reproduce the intermittent formatting issue using the schema in the report, following the linked video. Compare the editor state before and after formatting, especially after deleting content. Done means the deletion remains removed and formatting no longer restores it.

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
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.