Compare commits

..

No commits in common. "b4c14c85e67464582b301d7e61dc051ee13190a5" and "6b38b667d3390aad198fea303a3a39e1b539b9ba" have entirely different histories.

3 changed files with 5 additions and 13 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: ThemeModelKey value: string
}[] = [ }[] = [
{ {
key: 'LIGHT', key: 'LIGHT',
@ -34,14 +34,10 @@ const themeModelList: {
value: 'DARK', value: 'DARK',
}, },
]; ];
onMounted(() => {
//
});
</script> </script>
<template> <template>
<view class="bg-background flex-1"> <view class="bg-background flex-1">
<div class="py-[32rpx] b flex flex-col b-[#123]"> <div class="py-[32rpx] b flex flex-col b-[#123]">
<h2 class="text-onBackground"> <h2 class="text-onBackground">
click it to change themeModel click it to change themeModel
@ -101,8 +97,4 @@ onMounted(() => {
</view> </view>
</template> </template>
<style lang="scss"> <style lang="scss" scoped></style>
// 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" class="text-primary" /> <SvgIcon icon="i-svg-spinners-12-dots-scale-rotate" />
</view> </view>
</view> </view>
</template> </template>