From 6e6652ce15536f8f00fdd4d39dbbb729f7820965 Mon Sep 17 00:00:00 2001 From: zhangpan104 Date: Thu, 20 Jul 2023 12:48:08 +0800 Subject: [PATCH] fix-componentPropsLint Signed-off-by: zhangpan104 --- .../notificationpanel/src/main/ets/pages/notification.ets | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/product/pc/notificationpanel/src/main/ets/pages/notification.ets b/product/pc/notificationpanel/src/main/ets/pages/notification.ets index d8a1fb9f..d6aba97b 100644 --- a/product/pc/notificationpanel/src/main/ets/pages/notification.ets +++ b/product/pc/notificationpanel/src/main/ets/pages/notification.ets @@ -33,6 +33,7 @@ const NOTIFICATION_TITLE_ICON_MARGIN = 24; @Component export default struct Notification { @StorageLink('notificationList') notificationList: any[] = [] + @State isEnd: boolean = false aboutToAppear() { Log.showInfo(TAG, `aboutToAppear Start`); @@ -54,7 +55,10 @@ export default struct Notification { .margin({ top: NO_NOTIFICATION_TOP_MARGIN }) } else { Column() { - NotificationListComponent({ config: { itemMargin: NOTIFICATION_ITEM_MARGIN } }) + NotificationListComponent({ + config: { itemMargin: NOTIFICATION_ITEM_MARGIN }, + listIsEnd: $isEnd + }) } .flexShrink(1) }