feat: 完善后台设计语言细节

- 统一说明文案层级:Typography.Paragraph 次要文案迁移到 admin-section-description
- 状态色补齐边框与中间调令牌,Alert/错误条/Descriptions 与 StatusTag 同源
- 咨询详情描述列表去表格线,改为键值展示并统一令牌
- 新增 BrandMark,侧栏与登录页标识改用品牌首字
- 信任内容改用列表行,空状态、表格骨架屏、主按钮脏检查落地
- design.md 同步令牌映射、切换控件选型与组件清单
This commit is contained in:
que01 committed 2026-10-14 11:21:31 +08:00
1 parent 2f26828f09
commit 3ef46b0aa8
25 files changed
+836 -393

No files matched your search

@@ -1,4 +1,4 @@
import { Alert, Button, Form, Input, Select, Space, Switch, Typography, message } from "antd";
import { Alert, Button, Form, Input, Select, Space, Switch, message } from "antd";
import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
import { useEffect } from "react";
import type { RuntimeWorkspace } from "@personal-brand/api-client";
@@ -79,9 +79,9 @@ export function InquiryPreviewEditor({
onValuesChange={(_, values) => onDraft(update(values))}
onFinish={(values) => save.mutate(values)}
>
<Typography.Paragraph type="secondary">
<p className="admin-section-description admin-offset-bottom">
{record.name} · 编辑字段:{field.label}
</Typography.Paragraph>
</p>
<Form.Item
name="label"
label="字段标题"
@@ -109,7 +109,7 @@ export function InquiryPreviewEditor({
<Form.List name="options">
{(fields, { add, remove }) => (
<div>
{fields.length ? <Typography.Title level={5}>选项</Typography.Title> : null}
{fields.length ? <h4 className="admin-subhead admin-offset-bottom-xs">选项</h4> : null}
{fields.map(({ key, name }) => (
<Space key={key} align="start">
<Form.Item name={[name, "label"]} label="选项名称" rules={[{ required: true }]}>
@@ -538,7 +538,7 @@ export function PresentationEditor({
</Space>
<div className="presentation-editor__workspace">
<div className="presentation-editor__preview">
<Typography.Title level={5}>页面预览</Typography.Title>
<h3 className="admin-section-title admin-flush">页面预览</h3>
{selectedPage === "detail" && draftWorkspace?.offerings.length ? (
<Select
aria-label="选择详情页业务内容"
@@ -568,8 +568,8 @@ export function PresentationEditor({
/>
</div>
<aside className="presentation-editor__outline" aria-label="页面区域">
<Typography.Title level={5}>页面区域</Typography.Title>
<Typography.Paragraph type="secondary">选择区域,编辑对应内容</Typography.Paragraph>
<h3 className="admin-section-title admin-flush">页面区域</h3>
<p className="admin-section-description">选择区域,编辑对应内容</p>
{visibleTargets.length ? (
<Space className="presentation-editor__regions admin-offset-top" wrap>
{visibleTargets.map((target) => (
@@ -610,9 +610,9 @@ export function PresentationEditor({
) : null}
</aside>
<div className="presentation-editor__inspector">
<Typography.Title level={5}>
<h3 className="admin-section-title admin-flush">
{selectedTarget?.label ?? pageTitle(selectedPage ?? "home")}
</Typography.Title>
</h3>
<StatusTag
tone={
save.isError
@@ -784,10 +784,10 @@ export function PresentationEditor({
/>
) : !selectedTarget ? (
<div className="presentation-editor__empty">
<Typography.Title level={5}>选择要编辑的区域</Typography.Title>
<Typography.Paragraph type="secondary">
<h3 className="admin-subhead">选择要编辑的区域</h3>
<p className="admin-section-description">
点击预览中的内容,或使用区域列表,查看并修改对应字段。
</Typography.Paragraph>
</p>
</div>
) : (
<Form
@@ -802,15 +802,15 @@ export function PresentationEditor({
{editableSections.map((section, index) => (
<section key={section.key} aria-labelledby={`section-${section.key}`}>
{selectedTarget && index > 0 ? <Divider /> : null}
<Typography.Title id={`section-${section.key}`} level={5}>
<h4 id={`section-${section.key}`} className="admin-subhead">
{selectedTarget
? fieldTargetTitle(section, selectedTarget.label)
: section.title}
</Typography.Title>
</h4>
{!selectedTarget ? (
<Typography.Paragraph type="secondary">
<p className="admin-section-description admin-offset-bottom">
{section.description}
</Typography.Paragraph>
</p>
) : null}
<Row gutter={16}>
{section.fields.map((field) => (
@@ -877,16 +877,14 @@ export function PresentationEditor({
) : null}
{!editableSections.some((section) => section.fields.length) &&
!relevantPageLinks.length ? (
<Typography.Paragraph type="secondary">
这个页面没有单独的品牌文案配置。
</Typography.Paragraph>
<p className="admin-section-description">这个页面没有单独的品牌文案配置。</p>
) : null}
{selectedTarget &&
!editableSections.some((section) => section.fields.length) &&
relevantPageLinks.length ? (
<Typography.Paragraph type="secondary">
<p className="admin-section-description">
此区域内容由对应的业务管理页面维护。
</Typography.Paragraph>
</p>
) : null}
</div>
<div className="presentation-editor__form-actions admin-actions admin-offset-top-lg">