Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
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
a30e058e
Commit
a30e058e
authored
7 years ago
by
afc163
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update detail
parent
f8028599
master
86048b4
Conventional-Routing
dart
depfu/update/npm/eslint-plugin-compat-3.1.1
depfu/update/npm/merge-umi-mock-data-2.0.6
depfu/update/npm/stylelint-10.0.1
depfu/update/npm/stylelint-order-3.0.0
doc/upgrade
feat-intlKey-intellisense
fix-warnings
master-blocks
master-kim-1
master-kim-backup
v1
v4
v4-fetch-block
v4-kim
vcr
2.2.0
2.1.1
2.1.0
2.0.0
2.0.0-beta.1
1.4.4
1.4.2
1.4.1
1.4.0
1.3.0
1.2.1
1.2.0
1.1.0
1.0.0
0.3.1
0.3.0
0.2.3-rc.3
0.2.3-rc.2
0.2.3-rc.1
0.2.2
0.2.1
0.2.0
0.1.10
No related merge requests found
Changes
2
Hide 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
G2
from
'
g2
'
;
import
{
Divider
}
from
'
antd
'
;
import
equal
from
'
../equal
'
;
import
styles
from
'
./index.less
'
;
...
...
@@ -223,7 +224,7 @@ class Pie extends Component {
<
li
key
=
{
item
.
x
}
onClick
=
{()
=>
this
.
handleLegendClick
(
item
,
i
)}
>
<
span
className
=
{
styles
.
dot
}
style
=
{{
backgroundColor
:
!
item
.
checked
?
'
#aaa
'
:
item
.
color
}}
/
>
<
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
.
value
}
...
...
This diff is collapsed.
Click to expand it.
src/components/Charts/Pie/index.less
View file @
a30e058e
...
...
@@ -35,7 +35,6 @@
}
.legendTitle {
color: @text-color;
margin-right: 8px;
}
.percent {
color: @text-color-secondary;
...
...
This diff is collapsed.
Click to expand it.
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