@hkyhy/marsun-components-core 0.1.133 → 0.1.134
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/dist/components/Tools/Inbox/InboxBell/InboxBell.d.ts +7 -0
- package/dist/components/Tools/Inbox/InboxBell/InboxBell.js +288 -260
- package/dist/components/Tools/Inbox/InboxBell/InboxBell.js.map +1 -1
- package/dist/components/Tools/Inbox/InboxBell/style.module.scss.js +54 -52
- package/dist/components/Tools/Inbox/InboxBell/style.module.scss.js.map +1 -1
- package/dist/marsun-components-core.css +1 -1
- package/dist/styles/global.css +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -136,6 +136,7 @@ node scripts/version-check.mjs --apply # → 0.1.99
|
|
|
136
136
|
|
|
137
137
|
也可在 Actions 中手动运行 **Publish npm**,填写已有 tag 重新发布。
|
|
138
138
|
|
|
139
|
+
- 2026-10-14:`v0.1.134` — InboxBell Drawer「清空未读」可选 `markAllRead`;Demo/vitest
|
|
139
140
|
- 2026-10-12:`v0.1.133` — DispositionBar 短徽章;模板来源 Tag;ActionList 去壳/铃铛摘要色;执行门禁 SSOT;vite external 子路径防双 React(feat 分支曾误标 0.1.135 未进 main,顺号回正)
|
|
140
141
|
- 2026-10-11:`v0.1.132` — 重试发布消息模板富文本(0.1.131 CI 绿但 npm 未见)
|
|
141
142
|
- 2026-10-11:`v0.1.131` — 消息模板富文本色/加粗回显(配置页;seed 另仓)
|
|
@@ -54,6 +54,13 @@ export type InboxBellProps = {
|
|
|
54
54
|
fetchInbox: (params: InboxBellListParams) => Promise<InboxBellListResult>;
|
|
55
55
|
/** 标记已读 */
|
|
56
56
|
markRead: (id: string) => Promise<void | InboxBellItem>;
|
|
57
|
+
/**
|
|
58
|
+
* 清空未读(本用户+租户+app 全部未读标已读)。不传则不展示按钮。
|
|
59
|
+
* 成功后铃铛会刷新列表与角标。
|
|
60
|
+
*/
|
|
61
|
+
markAllRead?: () => Promise<{
|
|
62
|
+
updated?: number;
|
|
63
|
+
} | void>;
|
|
57
64
|
/** 点击条目:默认用 window.location / 业务 navigate */
|
|
58
65
|
onNavigate?: (href: string, item: InboxBellItem) => void;
|
|
59
66
|
/**
|