From db7b7cd047ff4c2216f365e9f1b6e8bf6e978a07 Mon Sep 17 00:00:00 2001 From: xingyu Date: Sat, 12 Aug 2023 17:04:48 +0800 Subject: [PATCH] fix: comp size --- src/App.vue | 5 ++++- src/components/Form/src/props.ts | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/App.vue b/src/App.vue index 7fb1ec10..db2bc82a 100644 --- a/src/App.vue +++ b/src/App.vue @@ -4,6 +4,7 @@ import 'dayjs/locale/zh-cn' import { ConfigProvider } from 'ant-design-vue' import { storeToRefs } from 'pinia' +import { computed } from 'vue' import { AppProvider } from '@/components/Application' import { useTitle } from '@/hooks/web/useTitle' import { useLocale } from '@/locales/useLocale' @@ -13,12 +14,14 @@ import { useAppStore } from '@/store/modules/app' const { getAntdLocale } = useLocale() const appStore = useAppStore() const { themeConfig } = storeToRefs(appStore) + +const componentSize = computed(() => appStore.getComponentSize) // Listening to page changes and dynamically changing site titles useTitle()