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
P
pro-blocks
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
pro-blocks
Commits
7126de92
Commit
7126de92
authored
Apr 23, 2018
by
jim
Committed by
陈帅
Apr 25, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
getLengendData => getLegendData
parent
5fd9f36c
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
5 deletions
+20
-5
src/components/Charts/Radar/index.js
src/components/Charts/Radar/index.js
+2
-2
src/components/Charts/index.js
src/components/Charts/index.js
+15
-0
src/layouts/PageHeaderLayout.js
src/layouts/PageHeaderLayout.js
+3
-3
No files found.
src/components/Charts/Radar/index.js
View file @
7126de92
...
...
@@ -19,7 +19,7 @@ export default class Radar extends Component {
componentDidUpdate
(
preProps
)
{
if
(
this
.
props
.
data
!==
preProps
.
data
)
{
this
.
getLe
n
gendData
();
this
.
getLegendData
();
}
}
...
...
@@ -28,7 +28,7 @@ export default class Radar extends Component {
};
// for custom lengend view
getLe
n
gendData
=
()
=>
{
getLegendData
=
()
=>
{
if
(
!
this
.
chart
)
return
;
const
geom
=
this
.
chart
.
getAllGeoms
()[
0
];
// 获取所有的图形
const
items
=
geom
.
get
(
'
dataArray
'
)
||
[];
// 获取图形对应的
...
...
src/components/Charts/index.js
View file @
7126de92
...
...
@@ -47,3 +47,18 @@ export {
TagCloud
,
TimelineChart
,
};
export
default
{
yuan
,
Bar
,
Pie
,
Gauge
,
Radar
,
MiniBar
,
MiniArea
,
MiniProgress
,
ChartCard
,
Field
,
WaterWave
,
TagCloud
,
TimelineChart
,
};
src/layouts/PageHeaderLayout.js
View file @
7126de92
...
...
@@ -3,16 +3,16 @@ import { Link } from 'dva/router';
import
PageHeader
from
'
../components/PageHeader
'
;
import
GridContent
from
'
./GridContent
'
;
import
styles
from
'
./PageHeaderLayout.less
'
;
import
Me
un
Context
from
'
./MeunContext
'
;
import
Me
nu
Context
from
'
./MeunContext
'
;
export
default
({
children
,
wrapperClassName
,
top
,
...
restProps
})
=>
(
<
div
style
=
{{
margin
:
'
-24px -24px 0
'
}}
className
=
{
wrapperClassName
}
>
{
top
}
<
Me
un
Context
.
Consumer
>
<
Me
nu
Context
.
Consumer
>
{
value
=>
{
return
<
PageHeader
{...
value
}
key
=
"
pageheader
"
{...
restProps
}
linkElement
=
{
Link
}
/>
;
}}
<
/Me
un
Context.Consumer
>
<
/Me
nu
Context.Consumer
>
{
children
?
(
<
div
className
=
{
styles
.
content
}
>
<
GridContent
>
{
children
}
<
/GridContent
>
...
...
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