baidu / baidu/amis

list组件body数组内的node节点无法使用type

Open
#3,757 0 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

#### 实现场景:
list组件内嵌入一个tpl节点,展现链接。

#### 存在的问题:
1.1.7版本支持一下效果。最新版本1.8.0-beat.2不支持。

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

```
{
"type": "page",
"body": [
{
"type": "list",
"source": "${collections}",
"listItem": {
"body": [
{
"type": "hbox",
"columns": [
{
"type": "static-tpl",
"label": "collectionId",
"name": "collectionId",
"tpl": "123"
},
{
"label": "accountId",
"name": "accountId"
},
{
"label": "管理员",
"name": "managerUidList"
}
]
}
]
}
}
],
"data": {
"text": "World!",
"collections": [
{
"collectionId": "123",
"accountId": "123"
}
]
}
}
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the supplied AMIS schema and inspect the list component's handling of node objects in listItem.body, comparing versions 1.7 and 1.8.0-beta.2. Reproduce the schema and verify that the nested static-tpl node's type is recognized and renders the link as expected.

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.