diff --git a/packages/abc/notice-icon/notice-icon-tab.component.html b/packages/abc/notice-icon/notice-icon-tab.component.html index c748288e18..5e2bd1bc88 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 b0e7dfb50d..0363299871 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) {