From bcd7bde2ba9c2eebc4f6be1e55cfb65637d451da Mon Sep 17 00:00:00 2001 From: Rogee Date: Thu, 24 Sep 2026 17:42:31 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20AGENTS.md=20UI=20=E8=A7=84=E8=8C=83?= =?UTF-8?q?=E6=94=B9=E4=B8=BA=E5=88=97=E8=A1=A8=E9=A1=B5=E5=8D=A1=E7=89=87?= =?UTF-8?q?=E5=8F=B3=E4=B8=8A=E8=A7=92=E6=8C=89=E9=92=AE=E5=B8=83=E5=B1=80?= =?UTF-8?q?=EF=BC=88=E5=AF=B9=E9=BD=90=20ant-design-pro=20TableList?= =?UTF-8?q?=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AGENTS.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 1ca699f..fccb659 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -61,8 +61,8 @@ ## UI 规范(antd/pro) -- 页面标题与操作按钮各占一行:标题用 PageContainer 自带 `title`/`subTitle`,按钮经 `usePageActions` 注册到 Layout 页头 content 槽(`Flex justify="flex-end"`),不写自定义对齐样式,勿在其他位置另造对齐方式。 -- 页面级操作按钮通过 `usePageActions` 注册到页头槽,不得在卡片内重复渲染。 +- 页面标题用 PageContainer 自带 `title`/`subTitle`;页头不另造按钮行。 +- 列表页(对齐 ant-design-pro TableList):主操作按钮(带 icon)放表格 Card 内右上角,与卡片左上角统计信息同行(`Flex justify="space-between" align="center"`,间距用 `marginBottom: 16`),按钮只出现在卡片内,不再经 `usePageActions` 注册到页头;非列表页的操作按钮仍经 `usePageActions` 注册到页头 content 槽。 - 弃用 API 禁止回潮:`Alert` 用 `title`/`description`(非 `message`)、纵向堆叠用 `Flex vertical`(非 `Space direction`)、静态 `message.xxx` 改 `App.useApp()`。以 `antd lint` 结果为准。 ## 沟通方式