input-table组件节点嵌套的children属性所属父节点上没有显示折叠按钮,折叠按钮显示在根节点了
- Dominant language
- TypeScript
- Stars
- 18.9k
- Forks
- 2.7k
- PR merge metrics
- No merged PRs in 30d
Description
#### 描述问题:
如题,希望改回amis 3.2那种效果,把折叠按钮显示在每个有children的节点上而不是只在根节点显示一个总的折叠按钮。
#### 截图或视频:

#### 如何复现(请务必完整填写下面内容):
1. 你是如何使用 amis 的?
`sdk`
2. amis 版本是什么?请先在最新 beta 版本测试问题是否存在
3.6,6.0都有此问题,但是3.2是好的,希望改回成3.2的效果。
4. 粘贴有问题的完整 `amis schema` 代码:
```
{
"type": "page",
"body": {
"type": "form",
"data": {
"fields": [
{
"name": "客户",
"code": "account"
},
{
"type": "table",
"name": "问题",
"code": "project_issue",
"fields": [
{
"name": "提出",
"code": "project_issue_requester"
},
{
"name": "问题名称",
"code": "project_issue_name"
}
],
"children": [
{
"name": "提出",
"code": "project_issue_requester"
},
{
"name": "问题名称",
"code": "project_issue_name"
}
]
}
],
},
"api": "/amis/api/mock2/form/saveForm",
"body": [
{
"type": "input-table",
"label": false,
"name": "fields",
"draggable": true,
"showIndex": true,
"id": "steedos_input_table_fields_g8hwhrczm",
"columns": [
{
"type": "input-text",
"static": true,
"readonly": true,
"label": "Api 名称",
"name": "code"
},
{
"type": "input-text",
"static": true,
"readonly": true,
"label": "名称",
"name": "name"
}
]
}
]
}
}
```
5. 操作步骤
把上面的schema代码copy到官网示例 https://aisuda.bce.baidu.com/amis/zh-CN/components/form/input-table#%E6%98%BE%E7%A4%BA%E5%BA%8F%E5%8F%B7 中就能重现。
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the input-table example at the linked official documentation URL and reproduce the behavior using the supplied amis schema. Compare the nested-children collapse controls in amis 3.2 with versions 3.6 and 6.0. Done means each node containing children displays its own collapse button rather than only the root node displaying a single global button.
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
- 35/100