fix: some bugs

This commit is contained in:
vben 2024-06-02 10:20:15 +08:00
parent fed47f5e05
commit 8f1b054bb1
4 changed files with 4 additions and 8 deletions

View File

@ -1,4 +1,5 @@
import type { DeepPartial, Preferences } from '@vben/types';
import type { DeepPartial } from '@vben/types';
import type { Preferences } from '@vben-core/preferences';
/**
* @description

View File

@ -5,7 +5,7 @@ import {
MdiMoonAndStars,
} from '@vben-core/iconify';
import {
preferences,
flatPreferences,
updatePreferences,
usePreferences,
} from '@vben-core/preferences';
@ -64,11 +64,10 @@ const PRESETS = [
/>
</template>
<ToggleGroup
:model-value="preferences.app.themeMode"
v-model="flatPreferences.appThemeMode"
type="single"
variant="outline"
class="gap-2"
@update:model-value="(value) => updatePreference('theme', value)"
>
<ToggleGroupItem
v-for="item in PRESETS"

View File

@ -50,7 +50,6 @@
},
"dependencies": {
"@intlify/core-base": "^9.13.1",
"@vben-core/preferences": "workspace:*",
"@vben-core/typings": "workspace:*",
"vue": "3.4.27",
"vue-i18n": "^9.13.1"

View File

@ -771,9 +771,6 @@ importers:
'@intlify/core-base':
specifier: ^9.13.1
version: 9.13.1
'@vben-core/preferences':
specifier: workspace:*
version: link:../@vben-core/forward/preferences
'@vben-core/typings':
specifier: workspace:*
version: link:../@vben-core/shared/typings