Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

[Feature] 在树形结构下,希望能增加指定层级的方法

Aperta
#5,340 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
45/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
javascript, typescript
Ambito
frontend

Direzione di ricerca

Start by finding where the hierarchyExpandLevel option is consumed during table initialization, and why changing it through updateOption has no effect; toggleHierarchyState is the existing per-row path the issue wants to avoid. Reproduce with a tree table with a large dataset, then check how expand state is stored. Done means a method like expandLevel(level) expands nodes to that depth without iterating every row, and updateOption with a new hierarchyExpandLevel takes effect. The issue does not say whether other levels should collapse, so confirm that with a maintainer first.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

feature
What problem does this feature solve?

hierarchyExpandLevel只有初始化的时候有用,如果修改hierarchyExpandLevel然后再updateOption无法生效。
目前没有现成的接口来实现展开到指定层级的接口,只能通过遍历所有数据通过toggleHierarchyState来实现,数据量大的情况下比较卡,甚至浏览器可能直接卡死。

What does the proposed API look like?

希望能增加展开树形结构指定层级的方法,如:expandLevel(level:number)

Lingua principale
TypeScript
Stelle
3.7k
Fork
489
Merge medio
20h 49m
PR unite (30g)
18

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di VisActor/VTable

Tutte le issue di VisActor/VTable

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.