Skip to content

NotificationCenter 消息中心 ​

铃铛上显示未读数。点开是消息列表,可以清空,也可以点进一条。

消息
vue
<CkNotificationCenter :items="notices" @select="openNotice" @clear="notices = []" />

API ​

属性说明类型默认
items消息。read 为 true 时不计入未读{ id, title, description?, time?, read? }[]—
事件说明
select点中一条消息
clear点了清空