File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
packages/sfc-playground/src Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ const vueVersion = ref(`@${currentCommit}`)
24
24
async function setVueVersion(v : string ) {
25
25
vueVersion .value = ` loading... `
26
26
await store .setVueVersion (v )
27
- vueVersion .value = ` v${ v } `
27
+ vueVersion .value = v
28
28
}
29
29
30
30
function resetVueVersion() {
Original file line number Diff line number Diff line change @@ -74,8 +74,8 @@ onMounted(() => {
74
74
75
75
<ul class =" versions" :class =" { expanded }" >
76
76
<li v-if =" !versions" ><a >loading versions...</a ></li >
77
- <li v-for =" version of versions" >
78
- <a @click =" setVersion(version )" >v{{ version }}</a >
77
+ <li v-for =" ver of versions" :class = " { active: ver === version } " >
78
+ <a @click =" setVersion(ver )" >v{{ ver }}</a >
79
79
</li >
80
80
<div @click =" expanded = false" >
81
81
<slot />
@@ -111,4 +111,8 @@ onMounted(() => {
111
111
border-top : 6px solid #aaa ;
112
112
margin-left : 8px ;
113
113
}
114
+
115
+ .versions .active a {
116
+ color : var (--green );
117
+ }
114
118
</style >
You can’t perform that action at this time.
0 commit comments