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

如果主动关闭 视图调试窗口,应该释放对视图树的引用

Aperta
#375 0 commenti 0 reazioni 1 assegnatario Vedi su GitHub

@AdamCaoQAQ ci sta già lavorando.

Dal 23/3/2022.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

bug Platform: tenon

AnimationEntry1 子视图的释放在控制台不能输出

描述

Hummer version:

复现步骤

预期结果

class AnimationEntry1 extends View {
    view: View;
    constructor() {
        super();
        this.style = {
            width: 200,
            height: 200,
            backgroundColor: '#aa0044'
        };
        this.view = new View();
        this.view.style = {
            width: 100,
            height: 100,
            backgroundColor: '#00FF00'
        }
        this.appendChild(this.view);
    }
}

class RootView extends View {
    listViews:Array<AnimationEntry1> = new Array<AnimationEntry1>()

    constructor() {
        super();
        this.style = {
            width: '100%',
            height: '100%',
            backgroundColor: "#FF0000",
        }
        for (let index = 0; index <3; index++) {
            const element = new AnimationEntry1();
            this.listViews.push(element);
            this.appendChild(element);
        }
        this.addEventListener('tap', ()=> {
           while(this.listViews.length > 0) {
            this.listViews.pop();
           }
           this.removeAll();
           console.log("AnimationEntry 点击了");
        });
    }
}
Hummer.render(new RootView());
Lingua principale
Objective-C
Stelle
1.4k
Fork
186
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

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 didi/Hummer

Tutte le issue di didi/Hummer

Issue simili

Altre issue su Objective-C

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.