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
856990a8
Commit
856990a8
authored
Jun 07, 2018
by
jim
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
edit setting title
parent
85ca3167
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
7 deletions
+14
-7
src/components/Charts/TimelineChart/index.js
src/components/Charts/TimelineChart/index.js
+1
-2
src/components/SettingDarwer/index.js
src/components/SettingDarwer/index.js
+13
-5
No files found.
src/components/Charts/TimelineChart/index.js
View file @
856990a8
...
...
@@ -44,8 +44,7 @@ export default class TimelineChart extends React.Component {
});
const
dv
=
ds
.
createView
();
dv
.
source
(
data
)
dv
.
source
(
data
)
.
transform
({
type
:
'
filter
'
,
callback
:
obj
=>
{
...
...
src/components/SettingDarwer/index.js
View file @
856990a8
...
...
@@ -41,13 +41,13 @@ class SettingDarwer extends PureComponent {
onSelect
=
{
value
=>
this
.
changeSetting
(
'
grid
'
,
value
)}
style
=
{{
width
:
80
}}
>
<
Select
.
Option
value
=
"
Wide
"
>
Wide
<
/Select.Option
>
<
Select
.
Option
value
=
"
Fluid
"
>
Fluid
<
/Select.Option
>
<
Select
.
Option
value
=
"
Wide
"
>
定宽
<
/Select.Option
>
<
Select
.
Option
value
=
"
Fluid
"
>
流式
<
/Select.Option
>
<
/Select>
,
],
},
{
title
:
'
Fixed
Header
'
,
title
:
'
固定
Header
'
,
action
:
[
<
Switch
size
=
"
small
"
...
...
@@ -58,6 +58,7 @@ class SettingDarwer extends PureComponent {
},
{
title
:
'
下滑时隐藏 Header
'
,
hide
:
fixedHeader
,
action
:
[
<
Switch
size
=
"
small
"
...
...
@@ -67,7 +68,7 @@ class SettingDarwer extends PureComponent {
],
},
{
title
:
'
Fix
Siderbar
'
,
title
:
'
固定
Siderbar
'
,
action
:
[
<
Switch
size
=
"
small
"
...
...
@@ -76,7 +77,9 @@ class SettingDarwer extends PureComponent {
/>
,
],
},
];
].
filter
(
item
=>
{
return
!
item
.
hide
;
});
};
changeSetting
=
(
key
,
value
)
=>
{
const
nextState
=
{
...
this
.
props
.
setting
};
...
...
@@ -88,6 +91,11 @@ class SettingDarwer extends PureComponent {
nextState
.
grid
=
'
Fluid
'
;
}
}
if
(
key
===
'
fixedHeader
'
)
{
if
(
value
)
{
nextState
.
autoHideHeader
=
false
;
}
}
if
(
key
===
'
colorWeak
'
)
{
if
(
value
===
'
open
'
)
{
document
.
body
.
className
=
'
colorWeak
'
;
...
...
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