feat: 完善后台设计语言细节
- 统一说明文案层级:Typography.Paragraph 次要文案迁移到 admin-section-description - 状态色补齐边框与中间调令牌,Alert/错误条/Descriptions 与 StatusTag 同源 - 咨询详情描述列表去表格线,改为键值展示并统一令牌 - 新增 BrandMark,侧栏与登录页标识改用品牌首字 - 信任内容改用列表行,空状态、表格骨架屏、主按钮脏检查落地 - design.md 同步令牌映射、切换控件选型与组件清单
This commit is contained in:
1 parent
2f26828f09
commit
3ef46b0aa8
25 files changed
+836
-393
No files matched your search
@@ -1,4 +1,4 @@
|
||||
import { Alert, Button, Form, Input, Modal, Segmented, Select, Typography } from "antd";
|
||||
import { Alert, Button, Form, Input, Modal, Segmented, Select } from "antd";
|
||||
import type {
|
||||
Offering,
|
||||
RuntimeWorkspace,
|
||||
@@ -103,7 +103,7 @@ export function OfferingEditorModal({
|
||||
onFinish={onFinish}
|
||||
>
|
||||
<div className="service-offering-editor__form-scroll">
|
||||
<Typography.Title level={5}>基础信息</Typography.Title>
|
||||
<h4 className="admin-subhead">基础信息</h4>
|
||||
<Form.Item name="kind" label="类型" rules={[{ required: true }]}>
|
||||
<Select
|
||||
options={[
|
||||
@@ -153,12 +153,12 @@ export function OfferingEditorModal({
|
||||
</Form.Item>
|
||||
{activeTemplateFields.length ? (
|
||||
<div>
|
||||
<Typography.Title level={5}>
|
||||
<h4 className="admin-subhead">
|
||||
{previewPage === "offerings" ? "列表展示字段" : "详情展示字段"}
|
||||
</Typography.Title>
|
||||
<Typography.Paragraph type="secondary">
|
||||
</h4>
|
||||
<p className="admin-section-description admin-offset-bottom">
|
||||
这里只编辑左侧预览对应的字段;它们与小程序页面编辑的是同一份业务数据。
|
||||
</Typography.Paragraph>
|
||||
</p>
|
||||
<RecordContentFields
|
||||
section={{
|
||||
...templateFieldSection,
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
import { Button, Popconfirm, Space, Table } from "antd";
|
||||
import type { Offering } from "@personal-brand/api-client";
|
||||
import { AdminSection } from "../../components/AdminSection.js";
|
||||
import { EmptyState } from "../../components/EmptyState.js";
|
||||
import { TableSkeleton } from "../../components/TableSkeleton.js";
|
||||
import { MutationError } from "../../components/QueryState.js";
|
||||
import { StatusTag } from "../../components/StatusTag.js";
|
||||
import type { useOfferingMutations } from "./use-offering-data.js";
|
||||
@@ -95,17 +97,24 @@ export function OfferingsTable({
|
||||
: "已启用的项目会公开展示。"
|
||||
}
|
||||
>
|
||||
<Table
|
||||
scroll={{ x: 760 }}
|
||||
rowKey="id"
|
||||
loading={loading}
|
||||
dataSource={items}
|
||||
columns={columns}
|
||||
/>
|
||||
{items.length === 0 && (
|
||||
<p className="admin-empty-inline">
|
||||
还没有公开业务提供项。创建后,小程序服务页会优先读取这些内容。
|
||||
</p>
|
||||
{loading && items.length === 0 ? (
|
||||
<TableSkeleton />
|
||||
) : (
|
||||
<Table
|
||||
scroll={{ x: 760 }}
|
||||
rowKey="id"
|
||||
dataSource={items}
|
||||
columns={columns}
|
||||
locale={{
|
||||
emptyText: (
|
||||
<EmptyState
|
||||
compact
|
||||
title="还没有业务提供项"
|
||||
description="创建后,小程序业务展示页会优先读取这些内容。"
|
||||
/>
|
||||
),
|
||||
}}
|
||||
/>
|
||||
)}
|
||||
<MutationError error={saveError} />
|
||||
<MutationError error={toggleOffering.error} />
|
||||
|
||||
Reference in new issue
Block a user