From 4c898a7836a94f59a9247efc5cc798a28160d7d4 Mon Sep 17 00:00:00 2001 From: unanmed <1319491857@qq.com> Date: Thu, 27 Feb 2025 22:50:08 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20Comment=20=E5=85=83=E7=B4=A0=E4=B8=8D?= =?UTF-8?q?=E5=8F=82=E4=B8=8E=E6=8E=92=E5=BA=8F=E4=B8=8E=E6=B8=B2=E6=9F=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/render/container.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core/render/container.ts b/src/core/render/container.ts index 77a282b..f11ffe3 100644 --- a/src/core/render/container.ts +++ b/src/core/render/container.ts @@ -101,9 +101,9 @@ export class Container } private sortChildren() { - this.sortedChildren = [...this.children].sort( - (a, b) => a.zIndex - b.zIndex - ); + this.sortedChildren = [...this.children] + .filter(v => !v.isComment) + .sort((a, b) => a.zIndex - b.zIndex); this.update(); }