From 8cd676e093309e9140b6b65c7b2a03c166e41f44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=A1=E8=89=B2?= Date: Fri, 8 Dec 2023 22:24:11 +0800 Subject: [PATCH] chore: fix build WARNING (#1726) --- packages/abc/notice-icon/notice-icon-tab.component.html | 6 +++--- packages/chart/pie/pie.component.html | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/abc/notice-icon/notice-icon-tab.component.html b/packages/abc/notice-icon/notice-icon-tab.component.html index c748288e1..5e2bd1bc8 100644 --- a/packages/abc/notice-icon/notice-icon-tab.component.html +++ b/packages/abc/notice-icon/notice-icon-tab.component.html @@ -1,4 +1,6 @@ -@if (data.list?.length === 0) { +@if (data.list && data.list.length > 0) { + +} @else {
@if (data.emptyImage) { not found @@ -9,8 +11,6 @@

-} @else { - } diff --git a/packages/chart/pie/pie.component.html b/packages/chart/pie/pie.component.html index b0e7dfb50..036329987 100644 --- a/packages/chart/pie/pie.component.html +++ b/packages/chart/pie/pie.component.html @@ -22,7 +22,7 @@

} -@if (hasLegend && legendData?.length) { +@if (hasLegend && legendData.length > 0) {
    @for (item of legendData; track $index) {