File tree 2 files changed +19
-4
lines changed
src/client/theme-default/components
2 files changed +19
-4
lines changed Original file line number Diff line number Diff line change @@ -25,8 +25,16 @@ defineProps<{
25
25
:tag =" link ? 'a' : 'div'"
26
26
>
27
27
<article class =" box" >
28
+ <div v-if =" typeof icon === 'object' && icon.wrap" class =" icon" >
29
+ <VPImage
30
+ :image =" icon"
31
+ :alt =" icon.alt"
32
+ :height =" icon.height || 48"
33
+ :width =" icon.width || 48"
34
+ />
35
+ </div >
28
36
<VPImage
29
- v-if =" typeof icon === 'object'"
37
+ v-else- if =" typeof icon === 'object'"
30
38
:image =" icon"
31
39
:alt =" icon.alt"
32
40
:height =" icon.height || 48"
@@ -66,7 +74,7 @@ defineProps<{
66
74
height : 100% ;
67
75
}
68
76
69
- .VPFeature :deep(.VPImage ) {
77
+ .box > :deep(.VPImage ) {
70
78
margin-bottom : 20px ;
71
79
}
72
80
Original file line number Diff line number Diff line change @@ -190,13 +190,20 @@ export namespace DefaultTheme {
190
190
191
191
export type FeatureIcon =
192
192
| string
193
- | { src : string ; alt ?: string ; width ?: string ; height : string }
193
+ | {
194
+ src : string
195
+ alt ?: string
196
+ width ?: string
197
+ height ?: string
198
+ wrap ?: boolean
199
+ }
194
200
| {
195
201
light : string
196
202
dark : string
197
203
alt ?: string
198
204
width ?: string
199
- height : string
205
+ height ?: string
206
+ wrap ?: boolean
200
207
}
201
208
202
209
// sidebar -------------------------------------------------------------------
You can’t perform that action at this time.
0 commit comments