Skip to content

Commit b1186b8

Browse files
committed
打包后样式丢失问题解决
1 parent b2e87c7 commit b1186b8

File tree

4 files changed

+63
-63
lines changed

4 files changed

+63
-63
lines changed

src/assets/less/reset.less

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
/* el-button禁用相关样式 */
22
.el-button {
33
&.is-disabled {
4-
cursor: default;
4+
cursor: default!important;
55
}
66
&.is-disabled {
77
&:focus,
88
&:hover {
9-
cursor: default;
9+
cursor: default!important;
1010
}
1111
}
1212
}

src/components/BreadCrumbs/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export default {
6464
.icon {
6565
font-weight: bold;
6666
font-size: 14px;
67-
color: #333;
67+
color: #333!important;
6868
}
6969
&:hover {
7070
color: #409eff;

src/layout/components/TagsView/TagItem.vue

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -24,31 +24,31 @@ export default {
2424
</script>
2525

2626
<style lang="less">
27-
.tag-item-wrapper {
27+
.tag-item-wrapper {
28+
display: inline-block;
29+
vertical-align: middle;
30+
height: 32px!important;
31+
margin: 4px 2px!important;
32+
padding: 0 10px!important;
33+
border-radius: 3px!important;
34+
line-height: 32px!important;
35+
border: 1px solid #e8eaec!important;
36+
color: #555!important;
37+
background: #fff!important;
38+
overflow: hidden;
39+
cursor: pointer;
40+
.tag-item-dot {
2841
display: inline-block;
29-
vertical-align: middle;
30-
height: 32px;
31-
margin: 4px 2px;
32-
padding: 0 10px;
33-
border-radius: 3px;
34-
line-height: 32px;
35-
border: 1px solid #e8eaec;
36-
color: #555;
37-
background: #fff;
38-
overflow: hidden;
39-
cursor: pointer;
42+
width: 10px;
43+
height: 10px;
44+
margin-right: 6px;
45+
border-radius: 50%;
46+
background: #e8eaec;
47+
}
48+
&.active {
4049
.tag-item-dot {
41-
display: inline-block;
42-
width: 10px;
43-
height: 10px;
44-
margin-right: 6px;
45-
border-radius: 50%;
46-
background: #e8eaec;
47-
}
48-
&.active {
49-
.tag-item-dot {
50-
background: #409eff;
51-
}
50+
background: #409eff;
5251
}
5352
}
53+
}
5454
</style>

src/layout/components/TagsView/index.vue

Lines changed: 37 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<div class="tags-nav clear-fix">
2+
<div class="tags-nav-wrapper clear-fix">
33
<el-button type="text" class="btn-con" @click="handleMove(240)">
44
<i class="icon el-icon-arrow-left"></i>
55
</el-button>
@@ -185,43 +185,43 @@ export default {
185185
</script>
186186

187187
<style lang="less">
188-
.tags-nav {
189-
width: 100%;
188+
.tags-nav-wrapper {
189+
width: 100%;
190+
height: 40px;
191+
.icon {
192+
font-size: 18px;
193+
}
194+
.btn-con {
195+
float: left;
196+
width: 28px;
190197
height: 40px;
191-
.icon {
192-
font-size: 18px;
193-
}
194-
.btn-con {
195-
float: left;
196-
width: 28px;
197-
height: 40px;
198-
padding: 8px 7px 8px 3px;
199-
border-top: solid 1px #f0f0f0;
200-
border-bottom: solid 1px #f0f0f0;
201-
box-sizing: border-box;
202-
}
203-
.btn-close {
204-
width: 40px;
205-
padding-top: 10px;
206-
padding-left: 11px;
207-
border-left: solid 1px #f0f0f0;
208-
cursor: pointer;
209-
}
210-
.tags-views {
211-
position: relative;
212-
float: left;
213-
width: calc(100% - 96px);
214-
height: 40px;
215-
background: #f0f0f0;
216-
box-shadow: inset 0 0 3px 2px #6464641a;
217-
overflow: hidden;
218-
.tags-cont {
219-
position: absolute;
220-
padding: 0 4px;
221-
overflow: visible;
222-
white-space: nowrap;
223-
transition: left .5s ease;
224-
}
198+
padding: 8px 7px 8px 3px;
199+
border-top: solid 1px #f0f0f0;
200+
border-bottom: solid 1px #f0f0f0;
201+
box-sizing: border-box;
202+
}
203+
.btn-close {
204+
width: 40px;
205+
padding-top: 10px;
206+
padding-left: 11px;
207+
border-left: solid 1px #f0f0f0;
208+
cursor: pointer;
209+
}
210+
.tags-views {
211+
position: relative;
212+
float: left;
213+
width: calc(100% - 96px);
214+
height: 40px;
215+
background: #f0f0f0;
216+
box-shadow: inset 0 0 3px 2px #6464641a;
217+
overflow: hidden;
218+
.tags-cont {
219+
position: absolute;
220+
padding: 0 4px;
221+
overflow: visible;
222+
white-space: nowrap;
223+
transition: left .5s ease;
225224
}
226225
}
226+
}
227227
</style>

0 commit comments

Comments
 (0)