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.
- package/components/breadcrumb.vue +12 -3
- package/css/layout.scss +39 -0
- package/css/modules/color.scss +4 -1
- package/css/modules/elementUI.scss +4 -0
- package/index.js +1 -1
- package/package.json +1 -1
|
@@ -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
|
-
|
|
137
|
-
|
|
138
|
-
|
|
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
|
+
}
|
package/css/modules/color.scss
CHANGED
package/index.js
CHANGED