feat: 参考原型图 ui优化提交 个人端-用户中心 相关的页面

This commit is contained in:
zhanjunhao
2026-11-04 19:59:06 +08:00
parent 472e534fe1
commit e6c41e7587
576 changed files with 18075 additions and 18912 deletions
@@ -17,41 +17,26 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
For commercial licensing, please contact support@quantumnous.com
*/
import React from 'react';
import UserCenterPageHeader from '../../../components/common/UserCenterPageHeader';
import OrgBreadcrumb from './OrgBreadcrumb';
/**
* 企业中心统一页面标题区。
* 所有企业页(/org/*)共用,保证标题字号、副标题、右侧操作区写法一致。
* 企业中心统一页面标题区(/org/*):与个人端共用 UserCenterPageHeader 的样式,
* 面包屑为“企业中心 / 当前页面”,标题 28px、副标题 14px。
*
* @param {React.ComponentType} [icon] 可选的 lucide 图标组件(如 Wallet)
* @param {React.ReactNode} title 主标题
* @param {React.ReactNode} [subtitle] 副标题(一句话说明本页用途)
* @param {React.ReactNode} [actions] 右侧操作区(刷新/新建等按钮)
*/
const OrgPageHeader = ({ icon: Icon, title, subtitle, actions }) => (
<div className='mb-5 flex items-start justify-between gap-4 flex-wrap'>
<div className='flex items-center gap-3 min-w-0'>
{Icon && (
<div className='flex-shrink-0 inline-flex h-9 w-9 items-center justify-center rounded-lg bg-brand/10 text-brand'>
<Icon size={18} />
</div>
)}
<div className='min-w-0'>
<h1 className='text-lg sm:text-xl font-semibold tracking-tight text-[var(--text-primary)] truncate'>
{title}
</h1>
{subtitle && (
<p className='text-[13px] text-gray-500 dark:text-gray-400 mt-0.5 max-w-3xl'>
{subtitle}
</p>
)}
</div>
</div>
{actions && (
<div className='flex items-center gap-2 flex-wrap justify-end'>
{actions}
</div>
)}
</div>
const OrgPageHeader = ({ title, subtitle, actions }) => (
<UserCenterPageHeader
breadcrumb={
<OrgBreadcrumb current={typeof title === 'string' ? title : undefined} />
}
title={title}
subtitle={subtitle}
extra={actions}
/>
);
export default OrgPageHeader;