gy-webcode2 1.2.1 → 2.0.0

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.
@@ -6,6 +6,9 @@ $theme_hailan : (
6
6
  sidebar_bgColor:#ffffff,
7
7
  // 字体颜色
8
8
  sidebar_color:#262626,
9
- // 子菜单背景
10
- sidebar_children_bgColor:#fff,
9
+ //高亮背景色
10
+ sidebar_children_activeBgColor:#fff,
11
+ sidebar_children_activeColor:#1890ff,
12
+ wrapper_bgColor:#003a8c,
13
+ wrapper_bgColor2:#F1F6FC,
11
14
  );
@@ -5,7 +5,12 @@ $theme_shenlan : (
5
5
  // 背景
6
6
  sidebar_bgColor:#ffffff,
7
7
  // 字体颜色
8
- sidebar_color:#262626,
9
- // 子菜单背景
10
- sidebar_children_bgColor:#fff,
8
+ sidebar_color:#fff,
9
+
10
+ //高亮背景色
11
+ sidebar_children_activeBgColor:#233867,
12
+ sidebar_children_activeColor:#1890ff,
13
+
14
+ wrapper_bgColor:#0A1225,
15
+ wrapper_bgColor2:#192540,
11
16
  );
@@ -1,16 +1,16 @@
1
- @import "./global.scss";
2
- @import "./styles/default.scss";
3
- @import "./styles/shenlan.scss";
4
- @import "./styles/hailan.scss";
1
+ @import "global";
2
+ @import "styles/default";
3
+ @import "styles/shenlan";
4
+ @import "styles/hailan";
5
5
 
6
- @import "./colors/default.scss";
7
- @import "./colors/hong.scss";
8
- @import "./colors/cheng.scss";
9
- @import "./colors/huang.scss";
10
- @import "./colors/qing.scss";
11
- @import "./colors/lv.scss";
12
- @import "./colors/shenaln.scss";
13
- @import "./colors/zi.scss";
6
+ @import "colors/default";
7
+ @import "colors/hong";
8
+ @import "colors/cheng";
9
+ @import "colors/huang";
10
+ @import "colors/qing";
11
+ @import "colors/lv";
12
+ @import "colors/shenaln";
13
+ @import "colors/zi";
14
14
 
15
15
 
16
16
 
@@ -35,7 +35,7 @@ $themeColors:(
35
35
  @each $theme-name, $theme-map in $themes {
36
36
  //!global 把局部变量强升为全局变量
37
37
  $theme-map: $theme-map !global;
38
- [data-theme="#{$theme-name}"] & {
38
+ [data-theme="#{$theme-name}"] & {
39
39
  @content;
40
40
  }
41
41
  }
@@ -46,7 +46,7 @@ $themeColors:(
46
46
  @each $theme-name, $theme-map in $themeColors {
47
47
  //!global 把局部变量强升为全局变量
48
48
  $theme-map: $theme-map !global;
49
- [data-theme-color="#{$theme-name}"] & {
49
+ [data-theme-color="#{$theme-name}"] & {
50
50
  @content;
51
51
  }
52
52
  }
@@ -58,10 +58,16 @@ $themeColors:(
58
58
  @return map-get($theme-map, $key);
59
59
  }
60
60
 
61
- @mixin theme($key, $colorName: $key) {
61
+ @mixin theme($key, $colorName: $key,$opacity:null) {
62
62
  @include themeMixin {
63
63
  // #{$key}: #{$key};
64
- #{$key}: themed($colorName);
64
+
65
+ @if($opacity == null){
66
+ #{$key}: themed($colorName);
67
+ }
68
+ @else {
69
+ #{$key}: rgba(themed($colorName),$opacity);
70
+ }
65
71
  }
66
72
  }
67
73
 
@@ -75,4 +81,4 @@ $themeColors:(
75
81
  #{$key}: rgba(themed($colorName),$opacity);
76
82
  }
77
83
  }
78
- }
84
+ }
package/index.js CHANGED
@@ -1,6 +1,14 @@
1
1
  // npm publish 发布
2
2
  // npm adduser 登录
3
3
  // npm login 登录
4
+ // 添加镜像
5
+ //npm config set registry https://registry.npmmirror.com
6
+ // 删除镜像
7
+ // npm config delete registry
8
+ // 查看镜像
9
+ // npm config get registry
10
+ // 清除缓存
11
+ // npm cache verify
4
12
 
5
13
  // 版本号 x.y.z :
6
14
  //其中z 表示一些小的bugfix, 更改z的号,
@@ -14,6 +22,7 @@
14
22
  // https://registry.npmjs.org/gy-webcode2
15
23
 
16
24
  // 1.2.0 breadcrumb 使用store的menuPath了
25
+ // 2.0.0 全新UI改版
17
26
  module.exports = {
18
- version :'1.2.1',
27
+ version :'2.0.0',
19
28
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gy-webcode2",
3
- "version": "1.2.1",
3
+ "version": "2.0.0",
4
4
  "description": "gy前端公共代码",
5
5
  "main": "index.js",
6
6
  "scripts": {