File tree 5 files changed +39
-105
lines changed
.vitepress/theme/components
5 files changed +39
-105
lines changed Original file line number Diff line number Diff line change @@ -3,20 +3,15 @@ import sponsors from './sponsors.json'
3
3
import { computed } from ' vue'
4
4
import { useData } from ' vitepress'
5
5
6
- const props = withDefaults (
7
- defineProps <{
6
+ const { name, size = 140 } = defineProps <{
8
7
name: ' Gold' | ' Platinum' | ' Silver' | ' Bronze'
9
8
size? : number | string
10
- }>(),
11
- {
12
- size: 140 ,
13
- }
14
- )
9
+ }>()
15
10
16
11
const { isDark } = useData ()
17
12
18
13
const list = computed (() =>
19
- sponsors [props . name .toLowerCase ()].map (sponsor => ({
14
+ sponsors [name .toLowerCase ()].map (sponsor => ({
20
15
... sponsor ,
21
16
imgSrc: isDark .value ? sponsor .imgSrcDark : sponsor .imgSrcLight ,
22
17
}))
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ declare module 'vue-router' {
18
18
interface RouteMeta {
19
19
requiresAuth? : boolean
20
20
}
21
- }
21
+ }
22
22
```
23
23
24
24
## Hierarchy
Original file line number Diff line number Diff line change 9
9
"preview" : " vite preview --port 4173"
10
10
},
11
11
"dependencies" : {
12
- "vue" : " ^3.5 .3"
12
+ "vue" : " ~3.4 .3"
13
13
},
14
14
"devDependencies" : {
15
15
"@types/node" : " ^20.16.5" ,
16
16
"@vitejs/plugin-vue" : " ^5.1.3" ,
17
- "@vue/compiler-sfc" : " ^3.5 .3" ,
17
+ "@vue/compiler-sfc" : " ~3.4 .3" ,
18
18
"@vue/tsconfig" : " ^0.5.1" ,
19
19
"typescript" : " ~5.3.3" ,
20
20
"vite" : " ^5.4.3" ,
Original file line number Diff line number Diff line change 128
128
"@vitejs/plugin-vue" : " ^5.1.3" ,
129
129
"@vitest/coverage-v8" : " ^1.6.0" ,
130
130
"@vitest/ui" : " ^1.6.0" ,
131
- "@vue/compiler-sfc" : " ^3.5 .3" ,
132
- "@vue/server-renderer" : " ^3.5 .3" ,
131
+ "@vue/compiler-sfc" : " ~3.4 .3" ,
132
+ "@vue/server-renderer" : " ~3.4 .3" ,
133
133
"@vue/test-utils" : " ^2.4.6" ,
134
134
"browserstack-local" : " ^1.5.5" ,
135
135
"chromedriver" : " ^128.0.1" ,
148
148
"typescript" : " ~5.3.3" ,
149
149
"vite" : " ^5.4.3" ,
150
150
"vitest" : " ^1.6.0" ,
151
- "vue" : " ^3.5 .3"
151
+ "vue" : " ~3.4 .3"
152
152
}
153
153
}
You can’t perform that action at this time.
0 commit comments