From fe47552c5a8beecf0cf8eb790de42f4771655ff1 Mon Sep 17 00:00:00 2001 From: hujiale <13306077+hujiale9527@user.noreply.gitee.com> Date: Wed, 9 Oct 2024 19:02:44 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A1=86=E6=9E=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ui-kit/layout-ui/src/vben-layout.vue | 120 +++++------------- .../shadcn-ui/src/components/logo/logo.vue | 23 ++-- .../src/widgets/notification/notification.vue | 8 +- .../widgets/user-dropdown/user-dropdown.vue | 8 +- 4 files changed, 53 insertions(+), 106 deletions(-) diff --git a/packages/@core/ui-kit/layout-ui/src/vben-layout.vue b/packages/@core/ui-kit/layout-ui/src/vben-layout.vue index 7d2dfa9e..b4117136 100644 --- a/packages/@core/ui-kit/layout-ui/src/vben-layout.vue +++ b/packages/@core/ui-kit/layout-ui/src/vben-layout.vue @@ -18,7 +18,7 @@ import { } from './components'; import { useLayout } from './hooks/use-layout'; -interface Props extends VbenLayoutProps {} +interface Props extends VbenLayoutProps { } defineOptions({ name: 'VbenLayout', @@ -120,7 +120,6 @@ const sidebarEnableState = computed(() => { */ const sidebarMarginTop = computed(() => { const { headerHeight, isMobile } = props; - console.log(props); return (isMixedNav.value && !isMobile) || currentLayout.value === 'sidebar-topbar' ? headerHeight @@ -245,9 +244,9 @@ const tabbarStyle = computed((): CSSProperties => { let marginLeft = 0; // 如果不是混合导航,tabbar 的宽度为 100% - if (!isMixedNav.value || props.sidebarHidden) { + if ((!isMixedNav.value || props.sidebarHidden) && currentLayout.value !== 'sidebar-topbar') { width = '100%'; - } else if (sidebarEnable.value) { + } else if (sidebarEnable.value ) { // 鼠标在侧边栏上时,且侧边栏展开时的宽度 const onHoveringWidth = sidebarExpandOnHover.value ? props.sidebarWidth @@ -278,9 +277,9 @@ const contentStyle = computed((): CSSProperties => { return { marginTop: fixed && - !isFullContent.value && - !headerIsHidden.value && - (!isHeaderAutoMode.value || scrollY.value < headerWrapperHeight.value) + !isFullContent.value && + !headerIsHidden.value && + (!isHeaderAutoMode.value || scrollY.value < headerWrapperHeight.value) ? `${headerWrapperHeight.value}px` : 0, paddingBottom: `${footerEnable && footerFixed ? footerHeight : 0}px`, @@ -448,31 +447,15 @@ function handleHeaderToggle() { diff --git a/packages/@core/ui-kit/shadcn-ui/src/components/logo/logo.vue b/packages/@core/ui-kit/shadcn-ui/src/components/logo/logo.vue index 1c3b4470..ea4b01e1 100644 --- a/packages/@core/ui-kit/shadcn-ui/src/components/logo/logo.vue +++ b/packages/@core/ui-kit/shadcn-ui/src/components/logo/logo.vue @@ -26,6 +26,10 @@ interface Props { * @zh_CN Logo 主题 */ theme?: string; + /** + * logo字体颜色 + */ + textClass?: string; } defineOptions({ @@ -43,21 +47,10 @@ withDefaults(defineProps(), { diff --git a/packages/effects/layouts/src/widgets/user-dropdown/user-dropdown.vue b/packages/effects/layouts/src/widgets/user-dropdown/user-dropdown.vue index 9a0f2d10..7406561f 100644 --- a/packages/effects/layouts/src/widgets/user-dropdown/user-dropdown.vue +++ b/packages/effects/layouts/src/widgets/user-dropdown/user-dropdown.vue @@ -53,6 +53,10 @@ interface Props { * 文本 */ text?: string; + /** + * 是否隐藏锁定屏幕 + */ + hideLockLcreen?: boolean } defineOptions({ @@ -196,7 +200,8 @@ if (enableShortcutKey.value) { {{ menu.text }} - +