From 43730a5a92f41cdd1be23b94d36255a707c20f28 Mon Sep 17 00:00:00 2001 From: cole Date: Fri, 2 Aug 2024 17:36:09 +0800 Subject: [PATCH] feat: layout mobile --- src/layout/compatible/navbar/index.jsx | 6 +++++- src/views/Home.jsx | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/layout/compatible/navbar/index.jsx b/src/layout/compatible/navbar/index.jsx index 4d7a6b4..64ece52 100644 --- a/src/layout/compatible/navbar/index.jsx +++ b/src/layout/compatible/navbar/index.jsx @@ -6,6 +6,7 @@ import Fullscreen from '../../components/fullscreen' import Language from '../../components/language' import Avatar from '../../components/avatar' import { HamburgerOutlined } from '@/components/icon' +import { useSite } from '@site' import { getElement } from '@site//utils/dom' import { useConfigInject } from '@site/utils/extend' import useStyle from './style' @@ -30,6 +31,7 @@ export default defineComponent({ setup (props, { emit, attrs }) { const { prefixCls } = useConfigInject('pro-layout-navbar', props) const [wrapSSR, hashId] = useStyle(prefixCls) + const $site = useSite() const popupContainer = ref(null) @@ -53,7 +55,9 @@ export default defineComponent({
- + {$site.screen.gt.xs ? ( + + ) : null}
diff --git a/src/views/Home.jsx b/src/views/Home.jsx index e2279b4..bef251e 100644 --- a/src/views/Home.jsx +++ b/src/views/Home.jsx @@ -152,7 +152,7 @@ export default defineComponent({ ]), extra: ({ pageData }) => ( - + {pageData.length} Cole