feat: supports specifying the position of the preference button (#4154)

This commit is contained in:
Vben
2024-08-14 23:02:39 +08:00
committed by GitHub
parent 9c6e059aac
commit 30223f18db
15 changed files with 121 additions and 21 deletions

View File

@@ -38,7 +38,7 @@ export {
RotateCw,
Search,
SearchX,
Settings2,
Settings,
Sun,
SunMoon,
SwatchBook,

View File

@@ -7,6 +7,13 @@ type LayoutType =
type ThemeModeType = 'auto' | 'dark' | 'light';
/**
* 偏好设置按钮位置
* fixed 固定在右侧
* header 顶栏
*/
type PreferencesButtonPositionType = 'fixed' | 'header';
type BuiltinThemeType =
| 'custom'
| 'deep-blue'
@@ -92,6 +99,7 @@ export type {
LoginExpiredModeType,
NavigationStyleType,
PageTransitionType,
PreferencesButtonPositionType,
TabsStyleType,
ThemeModeType,
};