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
318152e3
Commit
318152e3
authored
Jun 06, 2018
by
jim
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
edit drawer icon
parent
6e3422fe
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
35 deletions
+35
-35
src/components/SettingDarwer/index.js
src/components/SettingDarwer/index.js
+21
-8
src/components/SettingDarwer/index.less
src/components/SettingDarwer/index.less
+14
-27
No files found.
src/components/SettingDarwer/index.js
View file @
318152e3
import
React
,
{
PureComponent
}
from
'
react
'
;
import
{
Select
,
message
,
List
,
Switch
,
Divider
}
from
'
antd
'
;
import
{
Select
,
message
,
List
,
Switch
,
Divider
,
Icon
}
from
'
antd
'
;
import
DrawerMenu
from
'
rc-drawer-menu
'
;
import
{
connect
}
from
'
dva
'
;
import
styles
from
'
./index.less
'
;
...
...
@@ -125,17 +125,30 @@ class SettingDarwer extends PureComponent {
const
{
collapse
,
silderTheme
,
themeColor
,
layout
,
colorWeak
}
=
this
.
props
.
setting
;
return
(
<
div
className
=
{
styles
.
settingDarwer
}
>
<
div
className
=
{
styles
.
mini_bar
}
onClick
=
{
this
.
togglerContent
}
>
<
img
alt
=
"
logo
"
src
=
"
https://gw.alipayobjects.com/zos/rmsportal/ApQgLmeZDNJMomKNvavq.svg
"
/>
<
/div
>
<
DrawerMenu
parent
=
{
null
}
level
=
{
null
}
handleChild
=
{
null
}
open
=
{
collapse
}
onHandleClick
=
{
this
.
togglerContent
}
handleChild
=
{
!
collapse
?
(
<
Icon
type
=
"
setting
"
style
=
{{
color
:
'
#FFF
'
,
fontSize
:
20
,
}}
/
>
)
:
(
<
Icon
type
=
"
close
"
style
=
{{
color
:
'
#FFF
'
,
fontSize
:
20
,
}}
/
>
)
}
placement
=
"
right
"
width
=
"
336px
"
style
=
{{
...
...
src/components/SettingDarwer/index.less
View file @
318152e3
@import '~antd/lib/style/themes/default.less';
.settingDarwer {
.mini_bar {
width: 50px;
height: 45px;
border-top-left-radius: 28px;
border-bottom-left-radius: 28px;
text-align: center;
font-size: 24px;
background: white;
position: fixed;
bottom: 50px;
right: 50px;
cursor: pointer;
z-index: 99;
box-shadow: 0 0 6px 0 rgba(0, 21, 41, 0.35);
img {
width: 28px;
height: 28px;
}
}
:global {
.drawer {
z-index: 999;
}
}
}
.content {
width: 273px;
height: 100%;
...
...
@@ -75,3 +48,17 @@
line-height: 22px;
margin-bottom: 12px;
}
:global {
.drawer-handle {
top: 240px;
background: #1890ff;
width: 57px;
height: 48px;
padding: 14px 18px;
padding-left: 24px;
}
.drawer-right .drawer-handle {
left: -57px;
}
}
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