baidu / baidu/amis

each循环时,树状分类有多个层级children子类时,子类重复别名,后面的子类会重复出现

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

因each循环时,只能找到键名,无法找到键值,然后用键值去循环子类。可以使用行政区域去测试该问题。会发现,渲染出来后,数据会重复出现,主要时,别名相同

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the issue with an administrative-region tree in an each loop, using multiple child levels with repeated aliases. Trace how the loop resolves child keys and values, then verify that each child renders once rather than duplicating later children.

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
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.