chore: update deps

This commit is contained in:
Anthony Fu committed 2021-02-11 23:17:40 +08:00
1 parent 235f64902e
commit 8dae6f96e5
7 files changed
+374 -158

No files matched your search

+3 -1
View File
@@ -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
View File
@@ -1,2 +1 @@
export * from './dark'
export * from './store'