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
a30e058e
Commit
a30e058e
authored
Oct 25, 2017
by
afc163
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update detail
parent
f8028599
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
src/components/Charts/Pie/index.js
src/components/Charts/Pie/index.js
+2
-1
src/components/Charts/Pie/index.less
src/components/Charts/Pie/index.less
+0
-1
No files found.
src/components/Charts/Pie/index.js
View file @
a30e058e
import
React
,
{
Component
}
from
'
react
'
;
import
React
,
{
Component
}
from
'
react
'
;
import
G2
from
'
g2
'
;
import
G2
from
'
g2
'
;
import
{
Divider
}
from
'
antd
'
;
import
equal
from
'
../equal
'
;
import
equal
from
'
../equal
'
;
import
styles
from
'
./index.less
'
;
import
styles
from
'
./index.less
'
;
...
@@ -223,7 +224,7 @@ class Pie extends Component {
...
@@ -223,7 +224,7 @@ class Pie extends Component {
<
li
key
=
{
item
.
x
}
onClick
=
{()
=>
this
.
handleLegendClick
(
item
,
i
)}
>
<
li
key
=
{
item
.
x
}
onClick
=
{()
=>
this
.
handleLegendClick
(
item
,
i
)}
>
<
span
className
=
{
styles
.
dot
}
style
=
{{
backgroundColor
:
!
item
.
checked
?
'
#aaa
'
:
item
.
color
}}
/
>
<
span
className
=
{
styles
.
dot
}
style
=
{{
backgroundColor
:
!
item
.
checked
?
'
#aaa
'
:
item
.
color
}}
/
>
<
span
className
=
{
styles
.
legendTitle
}
>
{
item
.
x
}
<
/span
>
<
span
className
=
{
styles
.
legendTitle
}
>
{
item
.
x
}
<
/span
>
<
span
className
=
{
styles
.
line
}
/
>
<
Divider
type
=
"
vertical
"
/>
<
span
className
=
{
styles
.
percent
}
>
{
`
${(
item
[
'
..percent
'
]
*
100
).
toFixed
(
2
)}
%`
}
<
/span
>
<
span
className
=
{
styles
.
percent
}
>
{
`
${(
item
[
'
..percent
'
]
*
100
).
toFixed
(
2
)}
%`
}
<
/span
>
<
span
<
span
className
=
{
styles
.
value
}
className
=
{
styles
.
value
}
...
...
src/components/Charts/Pie/index.less
View file @
a30e058e
...
@@ -35,7 +35,6 @@
...
@@ -35,7 +35,6 @@
}
}
.legendTitle {
.legendTitle {
color: @text-color;
color: @text-color;
margin-right: 8px;
}
}
.percent {
.percent {
color: @text-color-secondary;
color: @text-color-secondary;
...
...
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