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
ba3760a2
Commit
ba3760a2
authored
Nov 02, 2017
by
afc163
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tweak sale Pie margin
parent
36546851
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
15 deletions
+13
-15
src/components/Charts/Pie/index.less
src/components/Charts/Pie/index.less
+3
-3
src/routes/Dashboard/Analysis.js
src/routes/Dashboard/Analysis.js
+10
-12
No files found.
src/components/Charts/Pie/index.less
View file @
ba3760a2
...
...
@@ -6,8 +6,7 @@
position: relative;
}
&.hasLegend .chart {
width: ~"calc(100% - 252px)";
margin-left: 12px;
width: ~"calc(100% - 236px)";
}
.legend {
position: absolute;
...
...
@@ -15,6 +14,7 @@
min-width: 200px;
top: 50%;
transform: translateY(-50%);
margin: 0 20px;
li {
cursor: pointer;
margin-bottom: 16px;
...
...
@@ -72,7 +72,7 @@
& > p {
color: @heading-color;
display: block;
font-size: 1.
3
em;
font-size: 1.
2
em;
height: 32px;
line-height: 32px;
white-space: nowrap;
...
...
src/routes/Dashboard/Analysis.js
View file @
ba3760a2
...
...
@@ -437,20 +437,18 @@ export default class Analysis extends Component {
<
/div
>
<
/div
>
)}
style
=
{{
marginTop
:
24
}}
style
=
{{
marginTop
:
24
,
minHeight
:
509
}}
>
<
h4
style
=
{{
marginTop
:
8
,
marginBottom
:
32
}}
>
้ๅฎ้ข
<
/h4
>
<
div
style
=
{{
marginBottom
:
57
}}
>
<
Pie
hasLegend
subTitle
=
"
้ๅฎ้ข
"
total
=
{
yuan
(
salesPieData
.
reduce
((
pre
,
now
)
=>
now
.
y
+
pre
,
0
))}
data
=
{
salesPieData
}
valueFormat
=
{
val
=>
yuan
(
val
)}
height
=
{
240
}
lineWidth
=
{
4
}
/
>
<
/div
>
<
Pie
hasLegend
subTitle
=
"
้ๅฎ้ข
"
total
=
{
yuan
(
salesPieData
.
reduce
((
pre
,
now
)
=>
now
.
y
+
pre
,
0
))}
data
=
{
salesPieData
}
valueFormat
=
{
val
=>
yuan
(
val
)}
height
=
{
248
}
lineWidth
=
{
4
}
/
>
<
/Card
>
<
/Col
>
<
/Row
>
...
...
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