- 修复 TabBar 切换激活状态不同步问题 - 修复大量 Wot UI 2.x 图标名称不匹配 - 修复暗黑模式下主题变量错误注入导致亮色模式显示异常 - 优化个人中心 UI(头像标记、图标背景色、菜单结构) - 重构首页图表时间选择器为自定义分段选择器 - 修复登录弹窗文字丢失及验证顺序 - 修复设置页面布局、退出登录按钮及 cell 点击态
27 lines
599 B
Vue
27 lines
599 B
Vue
<script lang="ts" setup>
|
|
import { useThemeStore } from "@/store";
|
|
import { storeToRefs } from "pinia";
|
|
|
|
const themeStore = useThemeStore();
|
|
const { theme, themeVars } = storeToRefs(themeStore);
|
|
</script>
|
|
|
|
<script lang="ts">
|
|
export default {
|
|
options: {
|
|
addGlobalClass: true,
|
|
virtualHost: true,
|
|
styleIsolation: "shared",
|
|
},
|
|
};
|
|
</script>
|
|
|
|
<template>
|
|
<wd-config-provider :theme-vars="themeVars" :custom-class="theme === 'dark' ? 'dark' : ''" :theme="theme === 'dark' ? 'dark' : ''">
|
|
<slot />
|
|
<wd-notify />
|
|
<wd-toast />
|
|
<wd-dialog />
|
|
</wd-config-provider>
|
|
</template>
|