Add a primary button with a Plus icon to the SidebarMenu and adjust styles for better layout

This commit is contained in:
超级老白兔
2025-11-08 16:16:32 +08:00
parent 6eddf2f6db
commit d722c03744
2 changed files with 5 additions and 2 deletions

View File

@@ -13,6 +13,8 @@
margin-bottom: 16px;
padding: 0;
background: #fff;
display: flex;
gap: 10px;
}
.tabsContainer {

View File

@@ -1,6 +1,6 @@
import React, { useState, useEffect } from "react";
import { Input, Skeleton } from "antd";
import { SearchOutlined } from "@ant-design/icons";
import { Input, Skeleton, Button } from "antd";
import { SearchOutlined, PlusOutlined } from "@ant-design/icons";
import WechatFriends from "./WechatFriends";
import MessageList from "./MessageList/index";
import FriendsCircle from "./FriendsCicle";
@@ -126,6 +126,7 @@ const SidebarMenu: React.FC<SidebarMenuProps> = ({ loading = false }) => {
onClear={handleClearSearch}
allowClear
/>
<Button type="primary" icon={<PlusOutlined />}></Button>
</div>
{/* 标签页切换 */}