File tree 2 files changed +5
-15
lines changed
src/cool/modules/base/components/process
2 files changed +5
-15
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " cool-admin-vue" ,
3
- "version" : " 3.2.1 " ,
3
+ "version" : " 3.2.2 " ,
4
4
"scripts" : {
5
5
"serve" : " vue-cli-service serve" ,
6
6
"build" : " vue-cli-service build" ,
Original file line number Diff line number Diff line change @@ -104,6 +104,10 @@ export default {
104
104
},
105
105
106
106
adScroll (index ) {
107
+ if (index < 0 ) {
108
+ index = 0 ;
109
+ }
110
+
107
111
const el = this .$refs [` item-${ index} ` ][0 ];
108
112
109
113
if (el) {
@@ -131,7 +135,6 @@ export default {
131
135
align-items : center ;
132
136
height : 30px ;
133
137
position : relative ;
134
-
135
138
& __left ,
136
139
& __right {
137
140
background-color : #fff ;
@@ -140,32 +143,26 @@ export default {
140
143
padding : 0 2px ;
141
144
border-radius : 3px ;
142
145
cursor : pointer ;
143
-
144
146
& :hover {
145
147
background-color : #eee ;
146
148
}
147
149
}
148
-
149
150
& __left {
150
151
margin-right : 10px ;
151
152
}
152
-
153
153
& __right {
154
154
margin-left : 10px ;
155
155
}
156
-
157
156
& __scroller {
158
157
width : 100% ;
159
158
flex : 1 ;
160
159
overflow-x : auto ;
161
160
overflow-y : hidden ;
162
161
white-space : nowrap ;
163
-
164
162
& ::-webkit-scrollbar {
165
163
display : none ;
166
164
}
167
165
}
168
-
169
166
& __item {
170
167
display : inline-flex ;
171
168
align-items : center ;
@@ -178,40 +175,33 @@ export default {
178
175
margin-right : 10px ;
179
176
color : #909399 ;
180
177
cursor : pointer ;
181
-
182
178
& :last-child {
183
179
margin-right : 0 ;
184
180
}
185
-
186
181
i {
187
182
font-size : 14px ;
188
183
width : 0 ;
189
184
overflow : hidden ;
190
185
transition : all 0.3s ;
191
-
192
186
& :hover {
193
187
color : #fff ;
194
188
background-color : $color-primary ;
195
189
}
196
190
}
197
-
198
191
& :hover {
199
192
.el-icon-close {
200
193
width : 14px ;
201
194
margin-left : 5px ;
202
195
}
203
196
}
204
-
205
197
& .active {
206
198
span {
207
199
color : $color-primary ;
208
200
}
209
-
210
201
i {
211
202
width : auto ;
212
203
margin-left : 5px ;
213
204
}
214
-
215
205
& :before {
216
206
background-color : $color-primary ;
217
207
}
You can’t perform that action at this time.
0 commit comments