mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-14 01:11:25 +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)
|