From 56e488f6a40472164a1fdc6408bac8fc3ad8f482 Mon Sep 17 00:00:00 2001 From: liangping <18786721@qq.com> Date: Sat, 20 May 2023 12:23:53 +0800 Subject: [PATCH] fix build error --- src/plugins/vuetify/@core/components/AppDateTimePicker.vue | 1 + src/plugins/vuetify/@core/index.ts | 1 + src/plugins/vuetify/@layouts/components/VerticalNavGroup.vue | 1 + src/plugins/vuetify/@layouts/composable/useLayouts.ts | 3 ++- src/plugins/vuetify/@layouts/utils.ts | 1 + 5 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/plugins/vuetify/@core/components/AppDateTimePicker.vue b/src/plugins/vuetify/@core/components/AppDateTimePicker.vue index fea142d8..39d6a26c 100644 --- a/src/plugins/vuetify/@core/components/AppDateTimePicker.vue +++ b/src/plugins/vuetify/@core/components/AppDateTimePicker.vue @@ -12,6 +12,7 @@ import { filterInputProps, makeVInputProps } from 'vuetify/lib/components/VInput import { filterInputAttrs } from 'vuetify/lib/util/helpers' import { useThemeConfig } from '@core/composable/useThemeConfig' +import { ref } from 'vue' const props = defineProps({ ...makeVInputProps({ diff --git a/src/plugins/vuetify/@core/index.ts b/src/plugins/vuetify/@core/index.ts index f2cef0e6..783301a1 100644 --- a/src/plugins/vuetify/@core/index.ts +++ b/src/plugins/vuetify/@core/index.ts @@ -1,6 +1,7 @@ import type { ThemeConfig, UserThemeConfig } from './types' import { RouteTransitions, Skins } from '@core/enums' import type { UserConfig as LayoutConfig } from '@layouts/types' +import { ref } from 'vue'; export const defineThemeConfig = ( userConfig: UserThemeConfig, diff --git a/src/plugins/vuetify/@layouts/components/VerticalNavGroup.vue b/src/plugins/vuetify/@layouts/components/VerticalNavGroup.vue index b189c8d5..d7452a9b 100644 --- a/src/plugins/vuetify/@layouts/components/VerticalNavGroup.vue +++ b/src/plugins/vuetify/@layouts/components/VerticalNavGroup.vue @@ -4,6 +4,7 @@ import { TransitionExpand, VerticalNavLink } from '@layouts/components' import { themeConfig as config } from '@themeConfig' import type { NavGroup } from '@layouts/types' import { isNavGroupActive, openGroups } from '@layouts/utils' +import { ref } from 'vue' const props = defineProps<{ item: NavGroup diff --git a/src/plugins/vuetify/@layouts/composable/useLayouts.ts b/src/plugins/vuetify/@layouts/composable/useLayouts.ts index 2770e1d5..6e2a557d 100644 --- a/src/plugins/vuetify/@layouts/composable/useLayouts.ts +++ b/src/plugins/vuetify/@layouts/composable/useLayouts.ts @@ -1,8 +1,9 @@ import type { MaybeRef } from '@vueuse/shared' -import type { Ref } from 'vue' +import { computed, unref, type Ref, ref, watch } from 'vue' import { AppContentLayoutNav, NavbarType } from '../enums' import { themeConfig as config } from '@themeConfig' import { injectionKeyIsVerticalNavHovered } from '@layouts' +import { useRoute } from 'vue-router' export const useLayouts = () => { const navbarType = computed({ diff --git a/src/plugins/vuetify/@layouts/utils.ts b/src/plugins/vuetify/@layouts/utils.ts index 8baa9f41..a59969e3 100644 --- a/src/plugins/vuetify/@layouts/utils.ts +++ b/src/plugins/vuetify/@layouts/utils.ts @@ -1,5 +1,6 @@ import type { Router } from 'vue-router' import type { NavGroup, NavLink, NavLinkProps } from '@layouts/types' +import { computed, ref } from 'vue' export const openGroups = ref([])