commit | author | age
|
9bcb19
|
1 |
/** |
I |
2 |
* 项目默认配置项 |
|
3 |
* primaryColor - 默认主题色, 如果修改颜色不生效,请清理 localStorage |
|
4 |
* navTheme - sidebar theme ['dark', 'light'] 两种主题 |
|
5 |
* colorWeak - 色盲模式 |
|
6 |
* layout - 整体布局方式 ['sidemenu', 'topmenu'] 两种布局 |
|
7 |
* fixedHeader - 固定 Header : boolean |
|
8 |
* fixSiderbar - 固定左侧菜单栏 : boolean |
|
9 |
* autoHideHeader - 向下滚动时,隐藏 Header : boolean |
|
10 |
* contentWidth - 内容区布局: 流式 | 固定 |
|
11 |
* |
|
12 |
* storageOptions: {} - Vue-ls 插件配置项 (localStorage/sessionStorage) |
|
13 |
* production: 变量暂先设定为 false,目的是各种环境都正常显示设置抽屉,真实环境请放开注释 |
|
14 |
* |
|
15 |
* |
|
16 |
*/ |
|
17 |
|
|
18 |
export default { |
|
19 |
primaryColor: '#1890ff', // primary color of ant design |
|
20 |
navTheme: 'dark', // theme for nav menu |
|
21 |
layout: 'sidemenu', // nav menu position: sidemenu or topmenu |
|
22 |
contentWidth: 'Fixed', // layout of content: Fluid or Fixed, only works when layout is topmenu |
|
23 |
fixedHeader: false, // sticky header |
|
24 |
fixSiderbar: false, // sticky siderbar |
|
25 |
autoHideHeader: false, // auto hide header |
|
26 |
colorWeak: false, |
|
27 |
multiTab: false, |
|
28 |
production: process.env.NODE_ENV === 'production' && process.env.VUE_APP_PREVIEW !== 'true', |
|
29 |
// vue-ls options |
|
30 |
storageOptions: { |
|
31 |
namespace: 'pro__', // key prefix |
|
32 |
name: 'ls', // name variable Vue.[ls] or this.[$ls], |
|
33 |
storage: 'local' // storage name session, local, memory |
|
34 |
} |
|
35 |
} |