File tree 4 files changed +22
-8
lines changed
src/client/theme-default/components
4 files changed +22
-8
lines changed Original file line number Diff line number Diff line change @@ -14,12 +14,19 @@ const { page } = useData()
14
14
<template >
15
15
<div class =" VPMenuLink" >
16
16
<VPLink
17
- :class =" { active: isActive(page.relativePath, item.activeMatch || item.link, !!item.activeMatch) }"
17
+ :class =" {
18
+ active: isActive(
19
+ page.relativePath,
20
+ item.activeMatch || item.link,
21
+ !!item.activeMatch
22
+ )
23
+ }"
18
24
:href =" item.link"
19
25
:target =" item.target"
20
26
:rel =" item.rel"
27
+ :no-icon =" item.noIcon"
21
28
>
22
- {{ item.text }}
29
+ < span v-html = " item.text" ></ span >
23
30
</VPLink >
24
31
</div >
25
32
</template >
@@ -40,7 +47,9 @@ const { page } = useData()
40
47
font-weight : 500 ;
41
48
color : var (--vp-c-text-1 );
42
49
white-space : nowrap ;
43
- transition : background-color 0.25s , color 0.25s ;
50
+ transition :
51
+ background-color 0.25s ,
52
+ color 0.25s ;
44
53
}
45
54
46
55
.link :hover {
Original file line number Diff line number Diff line change @@ -22,9 +22,9 @@ const { page } = useData()
22
22
)
23
23
}"
24
24
:href =" item.link"
25
- :noIcon =" item.noIcon"
26
25
:target =" item.target"
27
26
:rel =" item.rel"
27
+ :no-icon =" item.noIcon"
28
28
tabindex =" 0"
29
29
>
30
30
<span v-html =" item.text" ></span >
Original file line number Diff line number Diff line change @@ -16,9 +16,10 @@ const closeScreen = inject('close-screen') as () => void
16
16
:href =" item.link"
17
17
:target =" item.target"
18
18
:rel =" item.rel"
19
+ :no-icon =" item.noIcon"
19
20
@click =" closeScreen"
20
21
>
21
- {{ item.text }}
22
+ < span v-html = " item.text" ></ span >
22
23
</VPLink >
23
24
</template >
24
25
Original file line number Diff line number Diff line change @@ -16,9 +16,11 @@ const closeScreen = inject('close-screen') as () => void
16
16
:href =" item.link"
17
17
:target =" item.target"
18
18
:rel =" item.rel"
19
+ :no-icon =" item.noIcon"
19
20
@click =" closeScreen"
20
- v-html =" item.text"
21
- />
21
+ >
22
+ <span v-html =" item.text" ></span >
23
+ </VPLink >
22
24
</template >
23
25
24
26
<style scoped>
@@ -30,7 +32,9 @@ const closeScreen = inject('close-screen') as () => void
30
32
font-size : 14px ;
31
33
font-weight : 500 ;
32
34
color : var (--vp-c-text-1 );
33
- transition : border-color 0.25s , color 0.25s ;
35
+ transition :
36
+ border-color 0.25s ,
37
+ color 0.25s ;
34
38
}
35
39
36
40
.VPNavScreenMenuLink :hover {
You can’t perform that action at this time.
0 commit comments