123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162 |
- import { fa } from 'element-plus/es/locale';
- import { defineStore } from 'pinia';
- export const useThemeConfig = defineStore('themeConfig', {
- state: (): ThemeConfigState => ({
- themeConfig: {
-
- isDrawer: false,
-
-
- primary: '#409eff',
-
- isIsDark: false,
-
-
- topBar: '#ffffff',
-
- topBarColor: '#606266',
-
- isTopBarColorGradual: false,
-
-
- menuBar: '#545c64',
-
- menuBarColor: '#eaeaea',
-
- menuBarActiveColor: 'rgba(0, 0, 0, 0.2)',
-
- isMenuBarColorGradual: false,
-
-
- columnsMenuBar: '#545c64',
-
- columnsMenuBarColor: '#e6e6e6',
-
- isColumnsMenuBarColorGradual: false,
-
- isColumnsMenuHoverPreload: false,
-
-
- isCollapse: false,
-
- isUniqueOpened: true,
-
- isFixedHeader: true,
-
- isFixedHeaderChange: false,
-
- isClassicSplitMenu: false,
-
- isLockScreen: false,
-
- lockScreenTime: 30,
-
-
- isShowLogo: false,
-
- isShowLogoChange: false,
-
- isBreadcrumb: true,
-
- isTagsview: true,
-
- isBreadcrumbIcon: true,
-
- isTagsviewIcon: true,
-
- isCacheTagsView: true,
-
- isSortableTagsView: true,
-
- isShareTagsView: false,
-
- isFooter: false,
-
- isGrayscale: false,
-
- isInvert: false,
-
- isWartermark: false,
-
- wartermarkText: 'vue-next-admin',
-
-
-
- tagsStyle: 'tags-style-five',
-
- animation: 'slide-right',
-
- columnsAsideStyle: 'columns-round',
-
- columnsAsideLayout: 'columns-vertical',
-
-
- layout: 'defaults',
-
-
- isRequestRoutes: false,
-
-
- globalTitle: '项目管理系统',
-
- globalViceTitle: '项目管理系统',
-
- globalViceTitleMsg: 'v1.0.1',
-
- globalI18n: 'zh-cn',
-
- globalComponentSize: 'default',
-
- pageSizeArray: [10, 20, 30, 40, 50, 100],
-
- pageSize: 20,
- },
- }),
- actions: {
- setThemeConfig(data: ThemeConfigState) {
- this.themeConfig = data.themeConfig;
- },
- },
- });
|