💄 给 v-select 添加 theme

*找子元素实在找不到 T_T
This commit is contained in:
BTMuli
2023-10-27 11:06:36 +08:00
parent 8ce6c547bd
commit 3db8008f3a
2 changed files with 17 additions and 2 deletions

View File

@@ -96,6 +96,7 @@
label="首页显示组件"
:multiple="true"
:chips="true"
:theme="vuetifyTheme"
/>
<template #append>
<v-btn class="config-btn" @click="submitHome"> 确定</v-btn>
@@ -208,6 +209,9 @@ const userInfo = computed(() => {
avatar: info.avatar || "/source/UI/defaultUser.webp",
};
});
const vuetifyTheme = computed(() => {
return appStore.theme === "dark" ? "dark" : "light";
});
// load version
onMounted(async () => {