Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
ant-design-pro
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
duanledexianxianxian
ant-design-pro
Commits
4a7320ed
Commit
4a7320ed
authored
Apr 29, 2019
by
ιεΈ
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix style error
parent
ec5a5c49
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
34 deletions
+27
-34
src/components/GlobalHeader/index.less
src/components/GlobalHeader/index.less
+22
-32
src/layouts/BasicLayout.tsx
src/layouts/BasicLayout.tsx
+5
-2
No files found.
src/components/GlobalHeader/index.less
View file @
4a7320ed
...
@@ -2,14 +2,6 @@
...
@@ -2,14 +2,6 @@
@pro-header-hover-bg: rgba(0, 0, 0, 0.025);
@pro-header-hover-bg: rgba(0, 0, 0, 0.025);
.header {
position: relative;
height: @layout-header-height;
padding: 0;
background: #fff;
box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08);
}
.logo {
.logo {
display: inline-block;
display: inline-block;
height: @layout-header-height;
height: @layout-header-height;
...
@@ -100,7 +92,6 @@
...
@@ -100,7 +92,6 @@
}
}
@media only screen and (max-width: @screen-md) {
@media only screen and (max-width: @screen-md) {
.header {
:global(.ant-divider-vertical) {
:global(.ant-divider-vertical) {
vertical-align: unset;
vertical-align: unset;
}
}
...
@@ -126,5 +117,4 @@
...
@@ -126,5 +117,4 @@
}
}
}
}
}
}
}
}
}
src/layouts/BasicLayout.tsx
View file @
4a7320ed
import
{
ConnectState
,
ConnectProps
}
from
'
@/models/connect
'
;
import
{
ConnectState
,
ConnectProps
}
from
'
@/models/connect
'
;
import
RightContent
from
'
@/components/GlobalHeader/RightContent
'
;
import
RightContent
from
'
@/components/GlobalHeader/RightContent
'
;
import
{
formatMessage
}
from
'
umi-plugin-react/locale
'
;
import
{
connect
}
from
'
dva
'
;
import
{
connect
}
from
'
dva
'
;
import
React
,
{
useState
}
from
'
react
'
;
import
React
,
{
useState
}
from
'
react
'
;
import
logo
from
'
../assets/logo.svg
'
;
import
logo
from
'
../assets/logo.svg
'
;
...
@@ -12,6 +11,7 @@ import {
...
@@ -12,6 +11,7 @@ import {
Settings
,
Settings
,
SettingDrawer
,
SettingDrawer
,
}
from
'
@ant-design/pro-layout
'
;
}
from
'
@ant-design/pro-layout
'
;
import
Link
from
'
umi/link
'
;
export
interface
BasicLayoutProps
extends
BasicLayoutComponentsProps
,
ConnectProps
{
export
interface
BasicLayoutProps
extends
BasicLayoutComponentsProps
,
ConnectProps
{
breadcrumbNameMap
:
{
[
path
:
string
]:
MenuDataItem
};
breadcrumbNameMap
:
{
[
path
:
string
]:
MenuDataItem
};
...
@@ -43,7 +43,10 @@ const BasicLayout: React.FC<BasicLayoutProps> = props => {
...
@@ -43,7 +43,10 @@ const BasicLayout: React.FC<BasicLayoutProps> = props => {
<
BasicLayoutComponents
<
BasicLayoutComponents
logo
=
{
logo
}
logo
=
{
logo
}
onCollapse
=
{
handleMenuCollapse
}
onCollapse
=
{
handleMenuCollapse
}
rightContentRender
=
{
RightProps
=>
<
RightContent
{
...
RightProps
}
/>
}
menuItemRender
=
{
(
menuItemProps
,
defaultDom
)
=>
{
return
<
Link
to
=
{
menuItemProps
.
path
}
>
{
defaultDom
}
</
Link
>;
}
}
rightContentRender
=
{
rightProps
=>
<
RightContent
{
...
rightProps
}
/>
}
{
...
props
}
{
...
props
}
{
...
settings
}
{
...
settings
}
>
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment