gy-webcode2 1.1.6 → 1.1.8

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.
@@ -119,6 +119,11 @@ export default {
119
119
  },
120
120
  methods:{
121
121
  backClick(){
122
+ let routeName = this.$route.name;
123
+ let rIndex = this.breadcrumb_list[routeName].findIndex(i => i.id == this.myID)
124
+ this.breadcrumb_list[routeName] = this.breadcrumb_list[routeName].slice(0,rIndex)
125
+
126
+
122
127
  this.$emit('goBack');
123
128
  },
124
129
  itemClick(data,index){
@@ -133,9 +138,13 @@ export default {
133
138
  }
134
139
  },
135
140
  beforeDestroy(){
136
- let routeName = this.$route.name;
137
- let rIndex = this.routerBreadcrumb.findIndex(i => i.id == this.myID)
138
- this.breadcrumb_list[routeName] = this.routerBreadcrumb.splice(0,rIndex);
141
+ if(this.routerBreadcrumb[0] && this.routerBreadcrumb[0].id == this.myID){
142
+ let routeName = this.$route.name;
143
+ this.breadcrumb_list[routeName] = []
144
+ }
145
+ // let routeName = this.$route.name;
146
+ // let rIndex = this.routerBreadcrumb.findIndex(i => i.id == this.myID)
147
+ // this.breadcrumb_list[routeName] = this.routerBreadcrumb.splice(0,rIndex);
139
148
  }
140
149
  }
141
150
  </script>
package/css/layout.scss CHANGED
@@ -191,6 +191,16 @@
191
191
  line-height: 32px;
192
192
  &.noPad{
193
193
  padding:12px 0 0 0;
194
+ .start{
195
+ .item:nth-of-type(1){
196
+ margin-left: 0;
197
+ }
198
+ }
199
+ .end{
200
+ .item:nth-last-of-type(1){
201
+ margin-right: 0;
202
+ }
203
+ }
194
204
  }
195
205
  .start{
196
206
  display: flex;
@@ -393,3 +403,32 @@
393
403
  }
394
404
  }
395
405
 
406
+ .rightMenuBox{
407
+ position: fixed;
408
+ width: 100px;
409
+ // height: 200px;
410
+ padding:5px 0;
411
+ background: #fff;
412
+ left: 10px;
413
+ top: 10px;
414
+ z-index: 999;
415
+ // box-shadow: 0 0 10px 3px #aaa;
416
+ box-shadow: 0 0 10px 0px #aaa ;
417
+ border-radius:4px;
418
+ .item{
419
+ display: flex;
420
+ align-items: center;
421
+ font-size: 12px;
422
+ height: 30px;
423
+ // border: 1px solid #000;
424
+ padding-left: 12px;
425
+ cursor: pointer;
426
+ .icon{
427
+ margin-right: 5px;
428
+ }
429
+ &:hover{
430
+ // color: #009499;
431
+ @include themeColor("color",'hover')
432
+ }
433
+ }
434
+ }
@@ -48,7 +48,10 @@
48
48
  .color_2{
49
49
  color: $color2;
50
50
  }
51
-
51
+ .color_3{
52
+ color: $color3;
53
+ // background-color: rgba($color: #000000, $alpha: 1.0);
54
+ }
52
55
  .color_4{
53
56
  color: $color4;
54
57
  // background-color: rgba($color: #000000, $alpha: 1.0);
@@ -107,6 +107,10 @@
107
107
  min-width: auto ;
108
108
  font-size: 12px ;
109
109
  }
110
+ &.is-disabled{
111
+ color: #fff !important;
112
+ opacity: 0.5 !important;
113
+ }
110
114
  }
111
115
  // 输入框
112
116
  .el-input__inner{
@@ -111,7 +111,7 @@
111
111
  position: relative;
112
112
  &:hover{
113
113
  // color: #60abff ;
114
- @include themeColor('background-color','hover');
114
+ @include themeColor('color','hover');
115
115
  }
116
116
  .icon{
117
117
  transition: all 0.3s ease;
package/index.js CHANGED
@@ -10,8 +10,9 @@
10
10
  // ~的意思是匹配最近的小版本 比如~1.0.2将会匹配所有的1.0.x版本,但不匹配1.1.0
11
11
  // ^的意思是最近的一个大版本 比如1.0.2 将会匹配 所有 1.x.x, 但不包括2.x.x
12
12
  // * 这意味着安装最新版本的依赖包
13
- // 已使用项目 指标管理
13
+ // 已使用项目 指标管理、数据治理
14
+ // https://registry.npmjs.org/gy-webcode2
14
15
 
15
16
  module.exports = {
16
- version :'1.1.6',
17
+ version :'1.1.8',
17
18
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gy-webcode2",
3
- "version": "1.1.6",
3
+ "version": "1.1.8",
4
4
  "description": "gy前端公共代码",
5
5
  "main": "index.js",
6
6
  "scripts": {