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}`)
2424async function setVueVersion(v : string ) {
2525 vueVersion .value = ` loading... `
2626 await store .setVueVersion (v )
27- vueVersion .value = ` v${ v } `
27+ vueVersion .value = v
2828}
2929
3030function resetVueVersion() {
Original file line number Diff line number Diff line change @@ -74,8 +74,8 @@ onMounted(() => {
7474
7575 <ul class =" versions" :class =" { expanded }" >
7676 <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 >
7979 </li >
8080 <div @click =" expanded = false" >
8181 <slot />
@@ -111,4 +111,8 @@ onMounted(() => {
111111 border-top : 6px solid #aaa ;
112112 margin-left : 8px ;
113113}
114+
115+ .versions .active a {
116+ color : var (--green );
117+ }
114118 </style >
You can’t perform that action at this time.
0 commit comments