pref(ideContainer): 修改右侧侧边栏的默认展开值

master
钟良源 5 months ago
parent 4680b1762c
commit 939eb0a1e6

@ -9,7 +9,7 @@ const TabPane = Tabs.TabPane;
const RightSideBar: React.FC = () => {
const [activeTab, setActiveTab] = useState('1');
const [isExpanded, setIsExpanded] = useState(true);
const [isExpanded, setIsExpanded] = useState(false);
const [manualWidth, setManualWidth] = useState<number | null>(null); // 记录手动调整的宽度
const handleTabClick = (key: string) => {
@ -19,7 +19,8 @@ const RightSideBar: React.FC = () => {
setManualWidth(null);
}
setIsExpanded(!isExpanded);
} else {
}
else {
setActiveTab(key);
setIsExpanded(true);
// 切换标签时重置手动宽度

Loading…
Cancel
Save