File tree Expand file tree Collapse file tree 2 files changed +39
-1
lines changed
packages/@vue/cli-ui/src/components Expand file tree Collapse file tree 2 files changed +39
-1
lines changed Original file line number Diff line number Diff line change 14
14
icon =" done"
15
15
/>
16
16
<img
17
- v-else-if =" !isMaterialIcon && !error "
17
+ v-else-if =" displayImage "
18
18
class =" image"
19
19
:src =" image"
20
20
:key =" image"
26
26
:icon =" error || !image ? fallbackIcon : image"
27
27
/>
28
28
</div >
29
+
30
+ <div
31
+ v-if =" displayImage && colorBullet"
32
+ class =" color-bullet"
33
+ />
29
34
</div >
30
35
</template >
31
36
@@ -45,6 +50,11 @@ export default {
45
50
selected: {
46
51
type: Boolean ,
47
52
default: false
53
+ },
54
+
55
+ colorBullet: {
56
+ type: Boolean ,
57
+ default: false
48
58
}
49
59
},
50
60
@@ -58,6 +68,10 @@ export default {
58
68
computed: {
59
69
isMaterialIcon () {
60
70
return / ^ [a-z0-9 _] + $ / .test (this .image )
71
+ },
72
+
73
+ displayImage () {
74
+ return ! this .isMaterialIcon && ! this .error
61
75
}
62
76
},
63
77
@@ -80,6 +94,7 @@ export default {
80
94
81
95
.item-logo
82
96
margin-right $padding-item
97
+ position relative
83
98
.wrapper
84
99
h-box ()
85
100
box-center ()
@@ -98,6 +113,19 @@ export default {
98
113
>>> svg
99
114
fill rgba ($color-text-light, .3 )
100
115
116
+ .color-bullet
117
+ position absolute
118
+ width 8px
119
+ height @width
120
+ border-radius 50%
121
+ right - 1px
122
+ bottom @right
123
+ background white
124
+ border solid 2px $vue-ui-color-light-neutral
125
+ visibility hidden
126
+ .vue-ui-dark-mode &
127
+ border-color $vue-ui-color-dark
128
+
101
129
& .vuejs
102
130
.wrapper
103
131
background lighten ($vue-ui-color-primary , 70% )
@@ -128,14 +156,23 @@ export default {
128
156
.vue-ui-icon
129
157
>>> svg
130
158
fill $vue-ui-color-danger
159
+ .color-bullet
160
+ visibility visible
161
+ background $vue-ui-color-danger
131
162
& .warning
132
163
.vue-ui-icon
133
164
>>> svg
134
165
fill $vue-ui-color-warning
166
+ .color-bullet
167
+ visibility visible
168
+ background $vue-ui-color-warning
135
169
& .info
136
170
.vue-ui-icon
137
171
>>> svg
138
172
fill $vue-ui-color-info
173
+ .color-bullet
174
+ visibility visible
175
+ background $vue-ui-color-info
139
176
& .success
140
177
.vue-ui-icon
141
178
>>> svg
Original file line number Diff line number Diff line change 14
14
:image =" logo ? logo : iconData.icon"
15
15
:class =" iconData.class"
16
16
v-tooltip =" status"
17
+ color-bullet
17
18
/>
18
19
19
20
<ListItemInfo
You can’t perform that action at this time.
0 commit comments