fix: some bugs
parent
fed47f5e05
commit
8f1b054bb1
|
@ -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 项目配置文件
|
* @description 项目配置文件
|
||||||
|
|
|
@ -5,7 +5,7 @@ import {
|
||||||
MdiMoonAndStars,
|
MdiMoonAndStars,
|
||||||
} from '@vben-core/iconify';
|
} from '@vben-core/iconify';
|
||||||
import {
|
import {
|
||||||
preferences,
|
flatPreferences,
|
||||||
updatePreferences,
|
updatePreferences,
|
||||||
usePreferences,
|
usePreferences,
|
||||||
} from '@vben-core/preferences';
|
} from '@vben-core/preferences';
|
||||||
|
@ -64,11 +64,10 @@ const PRESETS = [
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
<ToggleGroup
|
<ToggleGroup
|
||||||
:model-value="preferences.app.themeMode"
|
v-model="flatPreferences.appThemeMode"
|
||||||
type="single"
|
type="single"
|
||||||
variant="outline"
|
variant="outline"
|
||||||
class="gap-2"
|
class="gap-2"
|
||||||
@update:model-value="(value) => updatePreference('theme', value)"
|
|
||||||
>
|
>
|
||||||
<ToggleGroupItem
|
<ToggleGroupItem
|
||||||
v-for="item in PRESETS"
|
v-for="item in PRESETS"
|
||||||
|
|
|
@ -50,7 +50,6 @@
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@intlify/core-base": "^9.13.1",
|
"@intlify/core-base": "^9.13.1",
|
||||||
"@vben-core/preferences": "workspace:*",
|
|
||||||
"@vben-core/typings": "workspace:*",
|
"@vben-core/typings": "workspace:*",
|
||||||
"vue": "3.4.27",
|
"vue": "3.4.27",
|
||||||
"vue-i18n": "^9.13.1"
|
"vue-i18n": "^9.13.1"
|
||||||
|
|
|
@ -771,9 +771,6 @@ importers:
|
||||||
'@intlify/core-base':
|
'@intlify/core-base':
|
||||||
specifier: ^9.13.1
|
specifier: ^9.13.1
|
||||||
version: 9.13.1
|
version: 9.13.1
|
||||||
'@vben-core/preferences':
|
|
||||||
specifier: workspace:*
|
|
||||||
version: link:../@vben-core/forward/preferences
|
|
||||||
'@vben-core/typings':
|
'@vben-core/typings':
|
||||||
specifier: workspace:*
|
specifier: workspace:*
|
||||||
version: link:../@vben-core/shared/typings
|
version: link:../@vben-core/shared/typings
|
||||||
|
|
Loading…
Reference in New Issue