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
22303139
Commit
22303139
authored
Mar 25, 2019
by
chen shuai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bugfix: fix SettingDrawer style error
parent
81ff030b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
12 deletions
+24
-12
src/components/SettingDrawer/index.js
src/components/SettingDrawer/index.js
+17
-12
src/components/SettingDrawer/index.less
src/components/SettingDrawer/index.less
+7
-0
No files found.
src/components/SettingDrawer/index.js
View file @
22303139
import
React
,
{
Pure
Component
}
from
'
react
'
;
import
React
,
{
Component
}
from
'
react
'
;
import
{
Select
,
message
,
Drawer
,
List
,
Switch
,
Divider
,
Icon
,
Button
,
Alert
,
Tooltip
}
from
'
antd
'
;
import
{
formatMessage
}
from
'
umi/locale
'
;
import
{
CopyToClipboard
}
from
'
react-copy-to-clipboard
'
;
...
...
@@ -23,7 +23,7 @@ const Body = ({ children, title, style }) => (
);
@
connect
(({
setting
})
=>
({
setting
}))
class
SettingDrawer
extends
Pure
Component
{
class
SettingDrawer
extends
Component
{
state
=
{
collapse
:
false
,
};
...
...
@@ -207,17 +207,22 @@ class SettingDrawer extends PureComponent {
<
Divider
/>
<
Body
title
=
{
formatMessage
({
id
:
'
app.setting.othersettings
'
})}
>
<
List
.
Item
actions
=
{[
<
Switch
size
=
"
small
"
checked
=
{
!!
colorWeak
}
onChange
=
{
checked
=>
this
.
changeSetting
(
'
colorWeak
'
,
checked
)}
/>
,
<
List
split
=
{
false
}
renderItem
=
{
this
.
renderLayoutSettingItem
}
dataSource
=
{[
{
title
:
formatMessage
({
id
:
'
app.setting.weakmode
'
}),
action
:
(
<
Switch
size
=
"
small
"
checked
=
{
!!
colorWeak
}
onChange
=
{
checked
=>
this
.
changeSetting
(
'
colorWeak
'
,
checked
)}
/
>
),
},
]}
>
{
formatMessage
({
id
:
'
app.setting.weakmode
'
})}
<
/List.Item
>
/
>
<
/Body
>
<
Divider
/>
<
CopyToClipboard
...
...
src/components/SettingDrawer/index.less
View file @
22303139
...
...
@@ -4,6 +4,13 @@
position: relative;
min-height: 100%;
background: #fff;
:global {
.ant-list-item {
span {
flex: 1;
}
}
}
}
.blockChecbox {
...
...
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