vue3-vant4-mobile/src/hooks/setting/useDesignSetting.ts
2024-02-17 13:52:03 +08:00

25 lines
636 B
TypeScript

import { computed } from 'vue'
import { useDesignSettingStore } from '@/store/modules/designSetting'
export function useDesignSetting() {
const designStore = useDesignSettingStore()
const getDarkMode = computed(() => designStore.darkMode)
const getAppTheme = computed(() => designStore.appTheme)
const getAppThemeList = computed(() => designStore.appThemeList)
const getIsPageAnimate = computed(() => designStore.isPageAnimate)
const getPageAnimateType = computed(() => designStore.pageAnimateType)
return {
getDarkMode,
getAppTheme,
getAppThemeList,
getIsPageAnimate,
getPageAnimateType,
}
}