gy-webcode2 1.1.7 → 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{
package/index.js CHANGED
@@ -14,5 +14,5 @@
14
14
  // https://registry.npmjs.org/gy-webcode2
15
15
 
16
16
  module.exports = {
17
- version :'1.1.7',
17
+ version :'1.1.8',
18
18
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gy-webcode2",
3
- "version": "1.1.7",
3
+ "version": "1.1.8",
4
4
  "description": "gy前端公共代码",
5
5
  "main": "index.js",
6
6
  "scripts": {