n20-common-lib 1.3.22 → 1.3.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "n20-common-lib",
3
- "version": "1.3.22",
3
+ "version": "1.3.23",
4
4
  "private": false,
5
5
  "main": "src/index.js",
6
6
  "scripts": {
7
7
  "serve": "vue-cli-service serve",
8
8
  "serve:theme": "vue-cli-service serve --testTheme",
9
9
  "test": "vue-cli-service serve --test",
10
- "build": "vue-cli-service build",
10
+ "build": "vue-cli-service build --testTheme",
11
11
  "lint": "vue-cli-service lint",
12
12
  "build:Jenkins_1": "vue-cli-service build --serverConfig ./server-config-jenkins.jsonc",
13
13
  "build:gzip": "vue-cli-service build --gzip",
@@ -80,7 +80,7 @@
80
80
  </template>
81
81
 
82
82
  <script>
83
- import { asideMenu } from '../../../../theme.config.js'
83
+ import { asideMenu } from '../../../utils/theme.config.js'
84
84
 
85
85
  import MenuItem from './menuItem.vue'
86
86
  import SubmenuTitle from './submenuTitle.vue'
@@ -179,7 +179,7 @@
179
179
  </template>
180
180
 
181
181
  <script>
182
- import { themeList } from '../../../../theme.config.js'
182
+ import { themeList } from '../../../utils/theme.config.js'
183
183
 
184
184
  import dialogWrap from '../../Dialog/index.vue'
185
185
  import changePwd from './changePwd.vue'
@@ -0,0 +1,22 @@
1
+ const themeList = [
2
+ { label: '科技蓝', value: 'blue', color: '#007aff', aD: `$--color-primary: #007aff;` },
3
+ { label: '中国红', value: 'red', color: '#f5222d', aD: `$--color-primary: #f5222d;` },
4
+ { label: '阳光橘', value: 'orange', color: '#fa541c', aD: `$--color-primary: #fa541c;` },
5
+ { label: '金融金', value: 'yellow', color: '#fadb14', aD: `$--color-primary: #fadb14;` },
6
+ { label: '青春绿', value: 'green', color: '#3eaf7c', aD: `$--color-primary: #3eaf7c;` },
7
+ { label: '天空蓝', value: 'lightBlue', color: '#1890ff', aD: `$--color-primary: #1890ff;` },
8
+ { label: '优雅紫', value: 'purple', color: '#722ed1', aD: `$--color-primary: #722ed1;` }
9
+ ]
10
+
11
+ // 菜单颜色(仅支持 hex 格式)
12
+ const asideMenu = {
13
+ backgroundColor: '#3d4b6a',
14
+ textColor: '#fefefea6',
15
+ activeTextColor: '#ffffff'
16
+ }
17
+
18
+ if (typeof exports === 'object' && typeof module === 'object') {
19
+ module.exports = { themeList, asideMenu }
20
+ } else if (typeof exports === 'object') {
21
+ exports = { themeList, asideMenu }
22
+ }