feat(experience-center): 侧栏、页头与生成页布局对齐用户中心规范
- 侧栏:结构、样式与收起交互对齐用户中心,去掉标题块与装饰 - 页头:云端大脑 / 图片生成 / 视频生成统一用户中心页头规格,去掉标题图标,页底与 /console/analytics 统一 - 云端大脑:专家广场 / 我的任务改为线型页签(对齐数据看板),页头操作右置 - 图片生成:参数栏固定、右侧整列局部滚动;工具栏单行,筛选固定宽度省略并悬停提示,清除筛选前置;两行卡片按可视高度拉伸并与左栏底边对齐;空状态居中;对比勾选框缩小居中 - 视频生成:任务队列浮层覆盖展开,表格对齐密钥管理列表,分页移出滚动区修复抖动,任务 ID 完整展示,状态去图标居中 - 三页底部内边距减半统一 验证:ESLint / Prettier / git diff --check 通过,单测 875 项通过;本地 Playwright 浅深主题 × 1920×951 / 1920×1080 / 393×851 布局与交互、6 套主题色兼容回归通过(图片 / 视频任务为模拟数据)
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
import React from 'react';
|
||||
import { Breadcrumb } from 'antd';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import UserCenterPageHeader from '../../../components/common/UserCenterPageHeader';
|
||||
import '../experience-page.css';
|
||||
|
||||
/**
|
||||
* 体验中心子页统一页头:复用用户中心页头规格(GLOBAL_UI_BASELINE 4.4 第 2 条),
|
||||
* 面包屑固定为“体验中心 / 当前页面”,标题 28 / 32px、副标题 14 / 22px、右侧操作走 extra。
|
||||
* 内容边距由各页根节点读取 --uc-page-pad-*,本组件只负责呈现。
|
||||
*
|
||||
* @param {{ title: string, titleSuffix?: React.ReactNode, subtitle?: React.ReactNode, extra?: React.ReactNode, className?: string }} props
|
||||
*/
|
||||
export default function ExperiencePageHeader({
|
||||
title,
|
||||
titleSuffix,
|
||||
subtitle,
|
||||
extra,
|
||||
className = '',
|
||||
}) {
|
||||
const { t } = useTranslation();
|
||||
return (
|
||||
<UserCenterPageHeader
|
||||
className={`exp-page-header ${className}`.trim()}
|
||||
breadcrumb={
|
||||
<Breadcrumb
|
||||
className='ui-dashboard-breadcrumb ui-user-center-breadcrumb'
|
||||
items={[{ title: t('体验中心') }, { title }]}
|
||||
/>
|
||||
}
|
||||
title={
|
||||
titleSuffix ? (
|
||||
<span className='exp-page-title-row'>
|
||||
<span>{title}</span>
|
||||
{titleSuffix}
|
||||
</span>
|
||||
) : (
|
||||
title
|
||||
)
|
||||
}
|
||||
subtitle={subtitle}
|
||||
extra={extra}
|
||||
/>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user