style: 菜单背景支持跟随暗黑模式

This commit is contained in:
kailong321200875
2023-12-26 14:53:20 +08:00
parent 49a1f54c9f
commit b34aeba10a
4 changed files with 28 additions and 16 deletions

View File

@@ -7,6 +7,8 @@ import { useDesign } from '@/hooks/web/useDesign'
const { getPrefixCls } = useDesign()
const emit = defineEmits(['change'])
const prefixCls = getPrefixCls('theme-switch')
const Sun = useIcon({ icon: 'emojione-monotone:sun', color: '#fde047' })
@@ -23,6 +25,7 @@ const blackColor = 'var(--el-color-black)'
const themeChange = (val: boolean) => {
appStore.setIsDark(val)
emit('change', val)
}
</script>