index.en-US.md 1.68 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' />`
jim's avatar
jim committed
16
loading | Popup card loading status | boolean | false
17
onClear | Click to clear button the callback  | function(tabName) | -
jim's avatar
jim committed
18 19 20 21 22 23 24 25 26
onItemClick | Click on the list item's callback | function(item, tabProps) | -
onTabChange | Switching callbacks for tabs | function(tabTitle) | -
popupAlign | Popup card location configuration | Object [alignConfig](https://github.com/yiminghe/dom-align#alignconfig-object-details) | -
onPopupVisibleChange | Popup Card Showing or Hiding Callbacks | function(visible) | -
popupVisible | Popup card display state | boolean | -
locale | Default message text | Object | `{ emptyText: '暂无数据', clear: '清空' }`

### NoticeIcon.Tab

jim's avatar
jim committed
27
Property | Description | Type | Default
jim's avatar
jim committed
28 29
----|------|-----|------
title |  header for message Tab | string | -
30
name | identifier for message Tab | string | -
jim's avatar
jim committed
31
list | List data, format refer to the following table | Array | `[]`
jim's avatar
jim committed
32
showClear | Clear button display status | boolean | true
jim's avatar
jim committed
33 34 35 36 37 38
emptyText |  message text when list is empty  | ReactNode | -
emptyImage | image  when list is empty  | string | -


### Tab data

jim's avatar
jim committed
39
Property | Description | Type | Default
jim's avatar
jim committed
40
----|------|-----|------
41
avatar | avatar img url  | string \| ReactNode | -
jim's avatar
jim committed
42 43 44 45
title | title | ReactNode | -
description | description info | ReactNode | -
datetime | Timestamps | ReactNode | -
extra |Additional information in the upper right corner of the list item | ReactNode | -