This commit is contained in:
KuroSago 2024-09-23 18:14:41 +08:00
parent 3c877bcec6
commit 1b900a690d
3 changed files with 13 additions and 5 deletions

View File

@ -3,7 +3,7 @@
<view <view
id="layout" id="layout"
:class="{ :class="{
dark: __themeModel === 'dark', dark: __themeModel === 'DARK',
}" }"
class="bg-page flex flex-col" class="bg-page flex flex-col"
:style="__theme" :style="__theme"

View File

@ -23,7 +23,7 @@ type ThemeModelKey = keyof typeof THEME_MODEL;
const themeModelList: { const themeModelList: {
key: ThemeModelKey key: ThemeModelKey
value: string value: ThemeModelKey
}[] = [ }[] = [
{ {
key: 'LIGHT', key: 'LIGHT',
@ -34,6 +34,10 @@ const themeModelList: {
value: 'DARK', value: 'DARK',
}, },
]; ];
onMounted(() => {
//
});
</script> </script>
<template> <template>
@ -97,4 +101,8 @@ const themeModelList: {
</view> </view>
</template> </template>
<style lang="scss" scoped></style> <style lang="scss">
// page {
// --at-apply: uno: bg-background;
// }
</style>

View File

@ -11,7 +11,7 @@ import SvgIcon from '@/components/SvgIcon/index.vue';
<SvgIcon icon="i-mdi-account-box" size="48" class="text-blue" /> <SvgIcon icon="i-mdi-account-box" size="48" class="text-blue" />
<SvgIcon icon="i-mdi-account-box" size="32" class="text-green-400" /> <SvgIcon icon="i-mdi-account-box" size="32" class="text-green-400" />
<SvgIcon icon="i-mdi-account-box" class="text-red-400" /> <SvgIcon icon="i-mdi-account-box" class="text-red-400" />
<SvgIcon icon="i-svg-spinners-12-dots-scale-rotate" /> <SvgIcon icon="i-svg-spinners-12-dots-scale-rotate" class="text-primary" />
</view> </view>
</view> </view>
</template> </template>