1
0
Code Issues Pull Requests Packages Projects Releases Wiki Activity GitHub Gitee

Compare commits

...

1 Commits

Author SHA1 Message Date
c47855afee chore: 一些小改动 2025-03-06 22:15:16 +08:00
2 changed files with 5 additions and 5 deletions

View File

@@ -1,6 +1,5 @@
<script setup lang="ts"> <script setup lang="ts">
import MainView from './views/MainView.vue' import MainView from './views/MainView.vue'
import { ref } from 'vue'
import { ElConfigProvider } from 'element-plus' import { ElConfigProvider } from 'element-plus'
import { useThemeConfigStore } from './stores/themeConfig'; import { useThemeConfigStore } from './stores/themeConfig';
@@ -11,7 +10,8 @@ const themeConfigStore = useThemeConfigStore()
{{ themeConfigStore.elConfig.size }} {{ themeConfigStore.elConfig.size }}
{{ themeConfigStore.themeConfig.themeMode }} {{ themeConfigStore.themeConfig.themeMode }}
<el-config-provider :size="themeConfigStore.elConfig.size" :z-index="themeConfigStore.elConfig.zIndex" <el-config-provider :size="themeConfigStore.elConfig.size" :z-index="themeConfigStore.elConfig.zIndex"
:button="{ autoInsertSpace: true }" :locale="locale"> :button="{ autoInsertSpace: true }">
<!-- :locale="locale" -->
<MainView /> <MainView />
</el-config-provider> </el-config-provider>
</template> </template>

View File

@@ -16,9 +16,9 @@ export const useThemeConfigStore = defineStore('themeConfig', () => {
}) })
const themeConfig = ref<{ const themeConfig = ref<{
themeMode: ThemeMode, themeMode: ThemeMode;
// updateThemeMode: Function, // updateThemeMode: Function;
getCurrentThemeMode: Function, getCurrentThemeMode: Function;
}>({ }>({
themeMode: 'auto', themeMode: 'auto',
// updateThemeMode: (themeMode: ThemeMode) => { // updateThemeMode: (themeMode: ThemeMode) => {