File tree 2 files changed +14
-5
lines changed
src/client/theme-default/components
2 files changed +14
-5
lines changed Original file line number Diff line number Diff line change @@ -15,10 +15,10 @@ You may use the `Badge` component which is globally available.
15
15
16
16
Code above renders like:
17
17
18
- ### Title <Badge type =" info " text =" default " vertical = " middle " />
19
- ### Title <Badge type =" tip " text =" ^1.9.0 " vertical = " middle " />
20
- ### Title <Badge type =" warning " text =" beta " vertical = " middle " />
21
- ### Title <Badge type =" danger " text =" caution " vertical = " middle " />
18
+ ### Title <Badge type =" info " text =" default " />
19
+ ### Title <Badge type =" tip " text =" ^1.9.0 " />
20
+ ### Title <Badge type =" warning " text =" beta " />
21
+ ### Title <Badge type =" danger " text =" caution " />
22
22
23
23
## Custom Children
24
24
Original file line number Diff line number Diff line change @@ -19,11 +19,20 @@ defineProps<{
19
19
border-radius : 10px ;
20
20
padding : 0 8px ;
21
21
line-height : 18px ;
22
- font-size : 13 px ;
22
+ font-size : 12 px ;
23
23
font-weight : 600 ;
24
24
transform : translateY (-2px );
25
25
}
26
26
27
+ h1 .VPBadge ,
28
+ h2 .VPBadge ,
29
+ h3 .VPBadge ,
30
+ h4 .VPBadge ,
31
+ h5 .VPBadge ,
32
+ h6 .VPBadge {
33
+ vertical-align : top ;
34
+ }
35
+
27
36
h2 .VPBadge {
28
37
border-radius : 11px ;
29
38
line-height : 20px ;
You can’t perform that action at this time.
0 commit comments