fix: rework setup to improve SSR compatibility
This commit is contained in:
parent
fd7d30a38a
commit
d8d163dbd0
22 changed files with 137 additions and 73 deletions
5
constants/symbols.ts
Normal file
5
constants/symbols.ts
Normal file
|
@ -0,0 +1,5 @@
|
|||
import type { InjectionKey, Ref } from 'vue'
|
||||
import type { ColorMode, FontSize } from '~/types'
|
||||
|
||||
export const InjectionKeyFontSize = Symbol('font-size') as InjectionKey<Ref<FontSize>>
|
||||
export const InjectionKeyColorMode = Symbol('color-mode') as InjectionKey<Ref<ColorMode>>
|
Loading…
Add table
Add a link
Reference in a new issue