Skip to content

Commit

Permalink
fix: headerRender props check
Browse files Browse the repository at this point in the history
  • Loading branch information
sendya committed Oct 20, 2021
1 parent b072d60 commit 6e7be52
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ant-design-vue/pro-layout",
"version": "3.1.0",
"version": "3.1.1",
"license": "MIT",
"files": [
"dist"
Expand Down
2 changes: 1 addition & 1 deletion src/BasicLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ const ProLayout = defineComponent({
headerTitleRender: menuHeaderRender,
menuContentRender: menuContentRender,
headerContentRender,
headerRender: customHeaderRender,
headerRender: props.headerRender !== false ? customHeaderRender : false,
theme: (props.navTheme || 'dark')
.toLocaleLowerCase()
.includes('dark')
Expand Down

0 comments on commit 6e7be52

Please sign in to comment.