fix: 侧边栏菜单拖拽功能在设置内增加开关

This commit is contained in:
zouawen
2026-02-28 11:19:01 +08:00
parent b2013436c5
commit 8e71261d49
10 changed files with 139 additions and 65 deletions

View File

@@ -85,6 +85,7 @@ const defaultPreferences: Preferences = {
collapsedButton: true,
collapsedShowTitle: false,
collapseWidth: 60,
draggable: true,
enable: true,
expandOnHover: true,
extraCollapse: false,

View File

@@ -170,6 +170,8 @@ interface SidebarPreferences {
collapsedShowTitle: boolean;
/** 侧边栏折叠宽度 */
collapseWidth: number;
/** 侧边栏菜单拖拽 */
draggable: boolean;
/** 侧边栏是否可见 */
enable: boolean;
/** 菜单自动展开状态 */