feat: tabs adds a variety of style configurations

This commit is contained in:
vben
2024-07-14 18:32:37 +08:00
parent ebf73b2df9
commit 3a91a24e0d
16 changed files with 248 additions and 33 deletions

View File

@@ -69,10 +69,12 @@ const defaultPreferences: Preferences = {
width: 240,
},
tabbar: {
dragable: true,
enable: true,
keepAlive: true,
persist: true,
showIcon: true,
styleType: 'chrome',
},
theme: {
builtinType: 'default',

View File

@@ -10,6 +10,7 @@ import type {
NavigationStyleType,
PageTransitionType,
SupportedLanguagesType,
TabsStyleType,
ThemeModeType,
} from '@vben-core/typings';
@@ -135,6 +136,8 @@ interface ShortcutKeyPreferences {
}
interface TabbarPreferences {
/** 是否开启多标签页拖拽 */
dragable: boolean;
/** 是否开启多标签页 */
enable: boolean;
/** 开启标签页缓存功能 */
@@ -143,6 +146,8 @@ interface TabbarPreferences {
persist: boolean;
/** 是否开启多标签页图标 */
showIcon: boolean;
/** 标签页风格 */
styleType: TabsStyleType;
}
interface ThemePreferences {