From 61e1ffc6c49e17223e1701cf79e473577303540f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B6=85=E7=BA=A7=E8=80=81=E7=99=BD=E5=85=94?= Date: Wed, 20 Aug 2025 18:44:54 +0800 Subject: [PATCH] =?UTF-8?q?style(=E7=BB=84=E4=BB=B6):=20=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E6=B5=81=E9=87=8F=E6=B1=A0=E9=80=89=E6=8B=A9=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=E5=A4=B4=E5=83=8F=E6=98=BE=E7=A4=BA=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 将PoolSelection组件中的头像显示从Avatar组件改为显示名称首字母的div,提升视觉一致性 --- Cunkebao/src/components/PoolSelection/index.tsx | 4 +++- Cunkebao/src/pages/mobile/test/select.tsx | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Cunkebao/src/components/PoolSelection/index.tsx b/Cunkebao/src/components/PoolSelection/index.tsx index 715c1a13..184fd1e8 100644 --- a/Cunkebao/src/components/PoolSelection/index.tsx +++ b/Cunkebao/src/components/PoolSelection/index.tsx @@ -82,7 +82,9 @@ export default function PoolSelection({ {selectedOptions.map(item => (
- +
+ {(item.nickname || item.name || "").charAt(0)} +
{item.nickname || item.name}
{item.wechatId || item.mobile}
diff --git a/Cunkebao/src/pages/mobile/test/select.tsx b/Cunkebao/src/pages/mobile/test/select.tsx index f586895e..a24e53ac 100644 --- a/Cunkebao/src/pages/mobile/test/select.tsx +++ b/Cunkebao/src/pages/mobile/test/select.tsx @@ -36,7 +36,7 @@ const ComponentTest: React.FC = () => { const [selectedFriendsOptions, setSelectedFriendsOptions] = useState< FriendSelectionItem[] >([]); - + // 流量池选择状态 const [selectedPools, setSelectedPools] = useState([]); return ( @@ -160,7 +160,7 @@ const ComponentTest: React.FC = () => {
- +

PoolSelection 组件测试