index.en-US.md 2.14 KB
Newer Older
jim's avatar
jim committed
1 2 3 4 5 6 7 8 9 10 11
---
title: NoticeIcon
subtitle: Notification Menu
cols: 1
order: 9
---

用在导航工具栏上,作为整个产品统一的通知中心。

## API

jim's avatar
jim committed
12
Property | Description | Type | Default
jim's avatar
jim committed
13 14
----|------|-----|------
count | Total number of messages | number | -
15
bell | Change the bell Icon | ReactNode | `<Icon type='bell' />`
何乐's avatar
何乐 committed
16 17
loading | Popup card loading status | boolean | `false`
onClear | Click to clear button the callback | function(tabName) | -
jim's avatar
jim committed
18
onItemClick | Click on the list item's callback | function(item, tabProps) | -
何乐's avatar
何乐 committed
19
onLoadMore | Callback of click for loading more | function(tabProps, event) | -
jim's avatar
jim committed
20
onPopupVisibleChange | Popup Card Showing or Hiding Callbacks | function(visible) | -
何乐's avatar
何乐 committed
21
onTabChange | Switching callbacks for tabs | function(tabTitle) | -
jim's avatar
jim committed
22
popupVisible | Popup card display state | boolean | -
何乐's avatar
何乐 committed
23 24
locale | Default message text | Object | `{ emptyText: 'No notifications', clear: 'Clear', loadedAll: 'Loaded', loadMore: 'Loading more' }`
clearClose | Close menu after clear | boolean | `false`
jim's avatar
jim committed
25 26 27

### NoticeIcon.Tab

jim's avatar
jim committed
28
Property | Description | Type | Default
jim's avatar
jim committed
29
----|------|-----|------
何乐's avatar
何乐 committed
30 31 32
count | Unread messages count of this tab | number | list.length
emptyText | Message text when list is empty | ReactNode | -
emptyImage | Image when list is empty | string | -
jim's avatar
jim committed
33
list | List data, format refer to the following table | Array | `[]`
何乐's avatar
何乐 committed
34 35 36 37 38 39 40 41
loadedAll | All messages have been loaded | boolean | `true`
loading | Loading status of this tab | boolean | `false`
name | identifier for message Tab | string | -
scrollToLoad | Scroll to load | boolean | `true`
skeletonCount | Number of skeleton when tab is loading | number | `5`
skeletonProps | Props of skeleton | SkeletonProps | `{}`
showClear | Clear button display status | boolean | `true`
title | header for message Tab | string | -
jim's avatar
jim committed
42 43 44

### Tab data

jim's avatar
jim committed
45
Property | Description | Type | Default
jim's avatar
jim committed
46
----|------|-----|------
何乐's avatar
何乐 committed
47
avatar | avatar img url | string \| ReactNode | -
jim's avatar
jim committed
48 49 50
title | title | ReactNode | -
description | description info | ReactNode | -
datetime | Timestamps | ReactNode | -
何乐's avatar
何乐 committed
51 52
extra | Additional information in the upper right corner of the list item | ReactNode | -
clickClose | Close menu after clicking list item | boolean | `false`