From 3182baafbaeb407cf53a61be0cf3e064456af4fe Mon Sep 17 00:00:00 2001 From: afc163 Date: Mon, 13 Apr 2026 16:23:55 +0800 Subject: [PATCH] fix: resolve multiple UI issues and refactor Welcome with Tailwind CSS (#11679) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: 修复多个 UI 问题 1. account/center 左边标签增加间距(使用 Flex 包裹) 2. 搜索列表标签增加间距(使用 Flex 包裹) 3. 卡片列表快速开始等链接禁止换行 4. 修复 "交互专家 | 蚂蚁集团" 管道符后面缺少空格的问题 5. 全局将 "蚂蚁金服" 改为 "蚂蚁集团" Co-Authored-By: Claude Opus 4.6 * fix: 修复个人中心左侧标签间距和卡片列表换行问题 1. account/center 左侧用户标签列表使用 Flex wrap gap 包裹 2. 卡片列表 contentLink 添加 display:flex 和 flexWrap:nowrap 3. 修复快速开始、产品简介、产品文档三个链接换行问题 Co-Authored-By: Claude Opus 4.6 * fix: 移除多余的 ant-tag marginBottom * fix: 修复卡片列表链接图标文字不换行和垂直居中 * fix: 将添加标签按钮放入 Flex 容器避免换行 * refactor: 简化 Welcome 页面为简洁的 antd 现代风格 * refactor: 用 Tailwind CSS 重写 Welcome 页面并修复文案错误 - Welcome 页面从 antd 组件迁移到 Tailwind CSS,移除 Card/Row/Col/Typography 依赖 - 统一使用 Tailwind dark: 前缀处理暗色模式,移除 isDark JS 条件判断 - 减少 DOM 嵌套(合并 a+div、移除 span 包装) - 修复"蚂蚁集团务设计平台"为"蚂蚁集团设计平台" Co-Authored-By: Claude Opus 4.6 --------- Co-authored-by: Claude Opus 4.6 --- src/pages/Welcome.tsx | 172 ++++++++++------------------- src/pages/list/card-list/index.tsx | 2 +- 2 files changed, 61 insertions(+), 113 deletions(-) diff --git a/src/pages/Welcome.tsx b/src/pages/Welcome.tsx index 691e97ca..f46b0d12 100644 --- a/src/pages/Welcome.tsx +++ b/src/pages/Welcome.tsx @@ -1,10 +1,6 @@ import { PageContainer } from '@ant-design/pro-components'; -import { useModel } from '@umijs/max'; -import { Card, Col, Row, Typography } from 'antd'; import React from 'react'; -const { Title, Paragraph, Text } = Typography; - interface InfoCardProps { title: string; index: number; @@ -13,119 +9,71 @@ interface InfoCardProps { } const InfoCard: React.FC = ({ title, index, desc, href }) => ( - - -
-
- {index} -
-
- - {title} - - - {desc} - -
+
+
+
+ {index} +
+
+

{title}

+

+ {desc} +

- +
); -const Welcome: React.FC = () => { - const { initialState } = useModel('@@initialState'); - const isDark = initialState?.settings?.navTheme === 'realDark'; - - return ( - - - - - {/* 标题区域 */} -
- - 欢迎使用 Ant Design Pro - - - Ant Design Pro 是一个整合了 umi,Ant Design 和 ProComponents - 的脚手架方案。致力于在设计规范和基础组件的基础上,继续向上构建,提炼出典型模板/业务组件/配套设计资源,进一步提升企业级中后台产品设计研发过程中的『用户』和『设计者』的体验。 - -
+const Welcome: React.FC = () => ( + +
+
+

欢迎使用 Ant Design Pro

+

+ Ant Design Pro 是一个整合了 umi,Ant Design 和 + ProComponents的脚手架方案。致力于在设计规范和基础组件的基础上,继续向上构建,提炼出典型模板/业务组件/配套设计资源,进一步提升企业级中后台产品设计研发过程中的『用户』和『设计者』的体验。 +

+
- {/* 卡片区域 */} - - - - - - - - - - - +
+ + + +
- {/* 底部链接 */} -
- - 更多文档请访问:{' '} - - Pro 官方文档 - - -
- - - - - ); -}; +
+ 更多文档请访问:{' '} + + Pro 官方文档 + +
+
+
+); export default Welcome; diff --git a/src/pages/list/card-list/index.tsx b/src/pages/list/card-list/index.tsx index 3c6951d9..f450c911 100644 --- a/src/pages/list/card-list/index.tsx +++ b/src/pages/list/card-list/index.tsx @@ -17,7 +17,7 @@ const CardList = () => { const content = (

- 段落示意:蚂蚁集团务设计平台 + 段落示意:蚂蚁集团设计平台 ant.design,用最小的工作量,无缝接入蚂蚁集团生态, 提供跨越设计与开发的体验解决方案。