feat: supports specifying the position of the preference button (#4154)
This commit is contained in:
@@ -38,7 +38,7 @@ export {
|
||||
RotateCw,
|
||||
Search,
|
||||
SearchX,
|
||||
Settings2,
|
||||
Settings,
|
||||
Sun,
|
||||
SunMoon,
|
||||
SwatchBook,
|
||||
|
8
packages/@core/base/typings/src/app.d.ts
vendored
8
packages/@core/base/typings/src/app.d.ts
vendored
@@ -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,
|
||||
};
|
||||
|
@@ -19,6 +19,7 @@ const defaultPreferences: Preferences = {
|
||||
locale: 'zh-CN',
|
||||
loginExpiredMode: 'modal',
|
||||
name: 'Vben Admin',
|
||||
preferencesButtonPosition: 'fixed',
|
||||
watermark: false,
|
||||
},
|
||||
breadcrumb: {
|
||||
|
@@ -10,6 +10,7 @@ import type {
|
||||
LoginExpiredModeType,
|
||||
NavigationStyleType,
|
||||
PageTransitionType,
|
||||
PreferencesButtonPositionType,
|
||||
TabsStyleType,
|
||||
ThemeModeType,
|
||||
} from '@vben-core/typings';
|
||||
@@ -49,6 +50,8 @@ interface AppPreferences {
|
||||
loginExpiredMode: LoginExpiredModeType;
|
||||
/** 应用名 */
|
||||
name: string;
|
||||
/** 偏好设置按钮位置 */
|
||||
preferencesButtonPosition: PreferencesButtonPositionType;
|
||||
/**
|
||||
* @zh_CN 是否开启水印
|
||||
*/
|
||||
|
Reference in New Issue
Block a user