File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
packages/sfc-playground/src Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ function toggleDark() {
8080 pkg =" vue"
8181 label =" Vue Version"
8282 >
83- <li >
83+ <li :class = " { active: vueVersion === `@${currentCommit}` } " >
8484 <a @click =" resetVueVersion" >This Commit ({{ currentCommit }})</a >
8585 </li >
8686 <li >
Original file line number Diff line number Diff line change @@ -74,7 +74,12 @@ onMounted(() => {
7474
7575 <ul class =" versions" :class =" { expanded }" >
7676 <li v-if =" !versions" ><a >loading versions...</a ></li >
77- <li v-for =" ver of versions" :class =" { active: ver === version }" >
77+ <li
78+ v-for =" (ver, index) of versions"
79+ :class =" {
80+ active: ver === version || (version === 'latest' && index === 0),
81+ }"
82+ >
7883 <a @click =" setVersion(ver)" >v{{ ver }}</a >
7984 </li >
8085 <div @click =" expanded = false" >
You can’t perform that action at this time.
0 commit comments