chore: update deps
This commit is contained in:
1 parent
235f64902e
commit
8dae6f96e5
7 files changed
+374
-158
No files matched your search
+3
-1
@@ -1,5 +1,5 @@
|
||||
import { watch, computed } from 'vue'
|
||||
import { usePreferredDark } from '@vueuse/core'
|
||||
import { usePreferredDark, useToggle } from '@vueuse/core'
|
||||
import { colorSchema } from './store'
|
||||
|
||||
const preferredDark = usePreferredDark()
|
||||
@@ -16,6 +16,8 @@ export const isDark = computed({
|
||||
},
|
||||
})
|
||||
|
||||
export const toggleDark = useToggle(isDark)
|
||||
|
||||
watch(
|
||||
isDark,
|
||||
v => typeof document !== 'undefined' && document.documentElement.classList.toggle('dark', v),
|
||||
|
||||
@@ -1,2 +1 @@
|
||||
export * from './dark'
|
||||
export * from './store'
|
||||
Reference in new issue
Block a user