mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-15 18:01:24 +08:00
8 lines
168 B
TypeScript
8 lines
168 B
TypeScript
import { useDark, useToggle } from '@vueuse/core'
|
|
|
|
export const isDark = useDark({
|
|
storageKey: 'el-theme-appearance',
|
|
})
|
|
|
|
export const toggleDark = useToggle(isDark)
|