gy-webcode2 1.0.10 → 1.0.12
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 +14 -0
- package/css/modules/table.scss +5 -1
- package/css/modules/tags.scss +11 -1
- package/extend/local.js +21 -0
- package/package.json +1 -1
- package/scripts/watermark.js +1 -1
|
@@ -56,6 +56,20 @@ export default {
|
|
|
56
56
|
headerMenuHide:defaultConfig.headerMenuHide
|
|
57
57
|
}
|
|
58
58
|
},
|
|
59
|
+
watch:{
|
|
60
|
+
names(){
|
|
61
|
+
let breadcrumb_list = this.$store.state.menu.breadcrumb_list;
|
|
62
|
+
if(this.names.length){
|
|
63
|
+
this.names.forEach(item => {
|
|
64
|
+
breadcrumb_list.push({
|
|
65
|
+
name:item,
|
|
66
|
+
click:this.backClick
|
|
67
|
+
})
|
|
68
|
+
})
|
|
69
|
+
}
|
|
70
|
+
// console.log(breadcrumb_list);
|
|
71
|
+
}
|
|
72
|
+
},
|
|
59
73
|
computed:{
|
|
60
74
|
names(){
|
|
61
75
|
return this.name ? this.name.split(',') : []
|
package/css/modules/table.scss
CHANGED
|
@@ -33,6 +33,7 @@
|
|
|
33
33
|
padding: 7px 0 !important;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
+
|
|
36
37
|
}
|
|
37
38
|
.el-table--enable-row-hover .el-table__body tr:hover>td.el-table__cell{
|
|
38
39
|
@include themeColor("background-color",'hover',0.1)
|
|
@@ -74,10 +75,13 @@
|
|
|
74
75
|
bottom: -1px;
|
|
75
76
|
}
|
|
76
77
|
&.gutter .el-table th.gutter{
|
|
77
|
-
background: #
|
|
78
|
+
background: #fafafa;
|
|
78
79
|
display: table-cell!important;
|
|
79
80
|
}
|
|
80
81
|
|
|
82
|
+
.el-table__fixed-right-patch{
|
|
83
|
+
background: #fafafa;
|
|
84
|
+
}
|
|
81
85
|
.tr_error{
|
|
82
86
|
background: #fff0f0;
|
|
83
87
|
}
|
package/css/modules/tags.scss
CHANGED
|
@@ -12,7 +12,9 @@
|
|
|
12
12
|
&.wide{
|
|
13
13
|
padding: 4px 8px ;
|
|
14
14
|
}
|
|
15
|
-
|
|
15
|
+
&.noBoder{
|
|
16
|
+
border-color: transparent !important;
|
|
17
|
+
}
|
|
16
18
|
&.hui{
|
|
17
19
|
background: #f5f5f5;
|
|
18
20
|
border-color: hsl(0, 0%, 96%);
|
|
@@ -35,6 +37,7 @@
|
|
|
35
37
|
&.hong{
|
|
36
38
|
background: #ff4d50;
|
|
37
39
|
border-color: #ff4d50;
|
|
40
|
+
color: #fff;
|
|
38
41
|
}
|
|
39
42
|
&.hong2{
|
|
40
43
|
background: #fff0f0;
|
|
@@ -73,6 +76,7 @@
|
|
|
73
76
|
&.lan3{
|
|
74
77
|
background: #353688;
|
|
75
78
|
border-color: #353688;
|
|
79
|
+
color: #fff;
|
|
76
80
|
}
|
|
77
81
|
&.lan4{
|
|
78
82
|
background: #f1f1f9;
|
|
@@ -86,6 +90,7 @@
|
|
|
86
90
|
&.lan5{
|
|
87
91
|
background: #155bd5;
|
|
88
92
|
border-color: #155bd5;
|
|
93
|
+
color: #fff;
|
|
89
94
|
}
|
|
90
95
|
&.lan6{
|
|
91
96
|
background: #edf3ff;
|
|
@@ -99,6 +104,7 @@
|
|
|
99
104
|
&.lv{
|
|
100
105
|
background: #4fc519;
|
|
101
106
|
border-color: #4fc519;
|
|
107
|
+
color: #fff;
|
|
102
108
|
}
|
|
103
109
|
&.lv2{
|
|
104
110
|
border-color: #f8ffed;
|
|
@@ -112,6 +118,7 @@
|
|
|
112
118
|
&.huang{
|
|
113
119
|
background: #fbad15;
|
|
114
120
|
border-color: #fbad15;
|
|
121
|
+
color: #fff;
|
|
115
122
|
}
|
|
116
123
|
&.huang2{
|
|
117
124
|
background: #fefbe8;
|
|
@@ -125,6 +132,7 @@
|
|
|
125
132
|
&.cheng{
|
|
126
133
|
background: #eb6a0c;
|
|
127
134
|
border-color: #eb6a0c;
|
|
135
|
+
color: #fff;
|
|
128
136
|
}
|
|
129
137
|
&.cheng2{
|
|
130
138
|
background: #fff4f1;
|
|
@@ -138,6 +146,7 @@
|
|
|
138
146
|
&.zi{
|
|
139
147
|
background: #893fd4;
|
|
140
148
|
border-color: #893fd4;
|
|
149
|
+
color: #fff;
|
|
141
150
|
}
|
|
142
151
|
&.zi2{
|
|
143
152
|
background: #faeffd;
|
|
@@ -151,6 +160,7 @@
|
|
|
151
160
|
&.fen{
|
|
152
161
|
background: #d42a8d;
|
|
153
162
|
border-color: #d42a8d;
|
|
163
|
+
color: #fff;
|
|
154
164
|
}
|
|
155
165
|
|
|
156
166
|
&.fen2{
|
package/extend/local.js
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 用来获取和设置localStorage存储
|
|
3
|
+
**/
|
|
4
|
+
let local = {
|
|
5
|
+
get(key, value) {
|
|
6
|
+
localStorage.setItem(key, JSON.stringify(value))
|
|
7
|
+
},
|
|
8
|
+
set(key) {
|
|
9
|
+
return JSON.parse(localStorage.getItem(key)) || [];
|
|
10
|
+
},
|
|
11
|
+
del(key) {
|
|
12
|
+
localStorage.removeItem(key);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export default {
|
|
17
|
+
install: function (vm) {
|
|
18
|
+
vm.prototype.$local = local
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
package/package.json
CHANGED
package/scripts/watermark.js
CHANGED
|
@@ -17,7 +17,7 @@ export default function({text="",color="rgba(0,0,0,0.07)",width=300,height=300})
|
|
|
17
17
|
ctx.fillStyle = color;
|
|
18
18
|
|
|
19
19
|
ctx.rotate(-25*Math.PI/180);
|
|
20
|
-
ctx.fillText(`(${text}
|
|
20
|
+
ctx.fillText(`(${text}`, 50, 80);
|
|
21
21
|
// ctx.rotate(30*Math.PI/180);
|
|
22
22
|
let img = cw.toDataURL("image/webp");
|
|
23
23
|
// console.log(a);
|