diff --git a/apps/admin/autoResolver/components.d.ts b/apps/admin/autoResolver/components.d.ts
index 75f618a..d435602 100644
--- a/apps/admin/autoResolver/components.d.ts
+++ b/apps/admin/autoResolver/components.d.ts
@@ -36,6 +36,7 @@ declare module 'vue' {
NPopover: typeof import('@celeris/ca-components')['NPopover']
NResult: typeof import('@celeris/ca-components')['NResult']
NScrollbar: typeof import('@celeris/ca-components')['NScrollbar']
+ NSelect: typeof import('@celeris/ca-components')['NSelect']
NSpace: typeof import('@celeris/ca-components')['NSpace']
NSpin: typeof import('@celeris/ca-components')['NSpin']
NSwitch: typeof import('@celeris/ca-components')['NSwitch']
diff --git a/apps/admin/src/composables/setting/useTransitionSetting.ts b/apps/admin/src/composables/setting/useTransitionSetting.ts
index d1a5db2..e09d90a 100644
--- a/apps/admin/src/composables/setting/useTransitionSetting.ts
+++ b/apps/admin/src/composables/setting/useTransitionSetting.ts
@@ -10,7 +10,23 @@ export function useTransitionSetting() {
const getShouldOpenPageLoading = toRef(() => appStore.getTransitionSetting.shouldOpenPageLoading);
- const getBasicTransition = toRef(() => appStore.getTransitionSetting.basicTransition);
+ const getRouterBasicTransition = toRef(() => appStore.getTransitionSetting.routerBasicTransition);
+
+ const setRouterBasicTransition = (routerBasicTransition: TransitionSetting["routerBasicTransition"]) => {
+ appStore.setProjectSetting({ transitionSetting: { routerBasicTransition } });
+ };
+
+ const setShouldEnableTransition = (shouldEnable: TransitionSetting["shouldEnable"]) => {
+ appStore.setProjectSetting({ transitionSetting: { shouldEnable } });
+ };
+
+ const setShouldOpenNProgress = (shouldOpenNProgress: TransitionSetting["shouldOpenNProgress"]) => {
+ appStore.setProjectSetting({ transitionSetting: { shouldOpenNProgress } });
+ };
+
+ const setShouldOpenPageLoading = (shouldOpenPageLoading: TransitionSetting["shouldOpenPageLoading"]) => {
+ appStore.setProjectSetting({ transitionSetting: { shouldOpenPageLoading } });
+ };
function getTransitionSetting() {
return appStore.getTransitionSetting;
@@ -23,8 +39,12 @@ export function useTransitionSetting() {
setTransitionSetting,
getShouldEnableTransition,
+ setShouldEnableTransition,
getShouldOpenNProgress,
+ setShouldOpenNProgress,
getShouldOpenPageLoading,
- getBasicTransition,
+ setShouldOpenPageLoading,
+ getRouterBasicTransition,
+ setRouterBasicTransition,
};
}
diff --git a/apps/admin/src/layouts/setting/components/SettingDrawer/components/SettingTransition/index.vue b/apps/admin/src/layouts/setting/components/SettingDrawer/components/SettingTransition/index.vue
new file mode 100644
index 0000000..6d9dbe2
--- /dev/null
+++ b/apps/admin/src/layouts/setting/components/SettingDrawer/components/SettingTransition/index.vue
@@ -0,0 +1,61 @@
+
+
+
+
+ {{ t('layouts.header.transitionSetting.title') }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/apps/admin/src/layouts/setting/components/SettingDrawer/components/index.ts b/apps/admin/src/layouts/setting/components/SettingDrawer/components/index.ts
index 6508921..959415b 100644
--- a/apps/admin/src/layouts/setting/components/SettingDrawer/components/index.ts
+++ b/apps/admin/src/layouts/setting/components/SettingDrawer/components/index.ts
@@ -1,6 +1,7 @@
import DarkMode from "./DarkMode/index.vue";
import SettingMenu from "./SettingMenu/index.vue";
+import SettingTransition from "./SettingTransition/index.vue";
import ThemeBackup from "./ThemeBackup/index.vue";
import ThemeColor from "./ThemeColor/index.vue";
-export { DarkMode, SettingMenu, ThemeBackup, ThemeColor };
+export { DarkMode, SettingMenu, SettingTransition, ThemeBackup, ThemeColor };
diff --git a/apps/admin/src/layouts/setting/components/SettingDrawer/index.vue b/apps/admin/src/layouts/setting/components/SettingDrawer/index.vue
index 9939570..8e9af14 100644
--- a/apps/admin/src/layouts/setting/components/SettingDrawer/index.vue
+++ b/apps/admin/src/layouts/setting/components/SettingDrawer/index.vue
@@ -1,6 +1,6 @@