Commit f6bf59f2 authored by Sendya's avatar Sendya

fix: Header contentWidth type check

parent a7c7d0eb
...@@ -30,7 +30,7 @@ export const HeaderViewProps = { ...@@ -30,7 +30,7 @@ export const HeaderViewProps = {
const renderContent = (h, props) => { const renderContent = (h, props) => {
const isTop = props.layout === 'topmenu' const isTop = props.layout === 'topmenu'
const maxWidth = 1200 - 280 - 120 const maxWidth = 1200 - 280 - 120
const contentWidth = props.contentWidth const contentWidth = props.contentWidth === 'Fixed'
const baseCls = 'ant-pro-top-nav-header' const baseCls = 'ant-pro-top-nav-header'
const { logo, title, theme, isMobile, headerRender, rightContentRender } = props const { logo, title, theme, isMobile, headerRender, rightContentRender } = props
const rightContentProps = { theme, isTop, isMobile } const rightContentProps = { theme, isTop, isMobile }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment