feat(web): 页头操作按钮独立成行——标题下 content 槽右侧对齐,关闭面包屑

This commit is contained in:
2026-09-24 17:10:28 +08:00
parent 27e167b8e5
commit 04bec3aa84
3 changed files with 12 additions and 14 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
import { createContext, useContext, useEffect } from 'react';
import type { ReactNode } from 'react';
// 页头动作槽:页面挂载时把自己的操作按钮注册到布局 PageContainer 的 extra(与标题同一行),
// 页头动作槽:页面挂载时把自己的操作按钮注册到布局 PageContainer 的 content(标题下方独立操作行,右侧对齐),
// 卸载时自动清除。Layout 提供 Provider,页面只消费 usePageActions。
const PageActionsContext = createContext<(node: ReactNode) => void>(() => {});