amis-editor拖入crud组件后,如何界面化配置新增弹窗、编辑弹窗的接口
- Dominant language
- TypeScript
- Stars
- 18.9k
- Forks
- 2.7k
- PR merge metrics
- No merged PRs in 30d
Description
#### 是否关联于某个问题吗:
配置项里面只有快速保存的接口
#### 预期的解决方案:
告知我如何配置新增弹窗和编辑弹窗的接口配置,理想的json是这样的:
```json
{
"type": "button",
"icon": "fa fa-pencil",
"actionType": "dialog",
"dialog": {
"title": "编辑",
"body": {
"type": "form",
"name": "sample-edit-form",
"api": "/amis/api/sample/$id",
"body": [{
"type": "input-text",
"name": "engine",
"label": "Engine",
"required": true
}]
}
}
}
```
#### 其他可接受方案:
如果amis-editor默认没有这个配置项,希望给我一点思路去添加配置项
#### 任何附加信息:

Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reviewing the amis-editor CRUD component configuration and the existing quick-save API option described in the issue. Determine whether the editor already exposes dialog form APIs; done means documenting the configuration path or defining the required editor options for both create and edit dialogs, with a verified JSON example.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100