- 页头标题 24px 降到 20px,说明 14px 降到 13px,标题与说明间距 8px 收到 6px - 页头到主体间距从 24px 提到 32px,与卡片间 16px 拉开层级 - 说明文字增加 880px 最大宽度,长句不再横跨整行 - 页面标题与侧栏导航用词对齐:信任内容、业务提供项、小程序页面、能力插件 - 信任内容页说明文案精简到一行内 - 概览页对象主标题降到 18px,避免与页面标题同级 - design.md 同步字号表、页头规范与导航命名约定
22 lines
484 B
TypeScript
22 lines
484 B
TypeScript
import type { ReactNode } from "react";
|
|
|
|
export function AdminPageHeader({
|
|
title,
|
|
description,
|
|
extra,
|
|
}: {
|
|
title: string;
|
|
description?: string;
|
|
extra?: ReactNode;
|
|
}) {
|
|
return (
|
|
<header className="admin-page-header">
|
|
<div className="admin-page-header-text">
|
|
<h1 className="admin-page-header-title">{title}</h1>
|
|
{description ? <p className="admin-page-header-description">{description}</p> : null}
|
|
</div>
|
|
{extra}
|
|
</header>
|
|
);
|
|
}
|