Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
fix: 根据布局模式设置logo宽度 (#213)
Browse files Browse the repository at this point in the history
  • Loading branch information
jinmao88 committed Oct 26, 2023
1 parent 451865f commit d8e4016
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/layouts/src/components/header.vue
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ const getShowHeaderMultipleTab = computed(() => {
const showHeaderLogo = computed(() => {
return unref(isTopMenu) || unref(isMix)
})
//根据布局模式设置logo宽度
const logoWidth = computed(() => (unref(isTopMenu) ? 150 : getMenuWidth))
</script>
<template>
<VbenSpace vertical>
Expand All @@ -63,8 +65,8 @@ const showHeaderLogo = computed(() => {
<Logo
v-if="showHeaderLogo"
:style="{
width: getMenuWidth + 'px',
maxWidth: getMenuWidth + 'px',
width: logoWidth + 'px',
maxWidth: logoWidth + 'px',
}"
/>
<HeaderTrigger v-if="getShowHeaderTrigger" />
Expand Down

0 comments on commit d8e4016

Please sign in to comment.