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
1a1aa957
Commit
1a1aa957
authored
Oct 24, 2017
by
afc163
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update dashboard
parent
3e042cbc
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
10 deletions
+9
-10
src/components/Charts/Pie/index.js
src/components/Charts/Pie/index.js
+1
-1
src/components/Charts/Pie/index.less
src/components/Charts/Pie/index.less
+4
-0
src/routes/Dashboard/Analysis.js
src/routes/Dashboard/Analysis.js
+2
-2
src/routes/Dashboard/Analysis.less
src/routes/Dashboard/Analysis.less
+2
-7
No files found.
src/components/Charts/Pie/index.js
View file @
1a1aa957
...
...
@@ -192,7 +192,7 @@ class Pie extends Component {
return
(
<
div
className
=
{
styles
.
pie
}
style
=
{{
height
}}
>
<
div
>
{
title
&&
<
h4
className
=
{
styles
.
title
}
>
{
title
}
<
/h4>
}
{
title
&&
<
h4
className
=
{
styles
.
title
}
>
{
title
}
<
/h4>
}
<
div
className
=
{
styles
.
content
}
>
<
div
ref
=
{
this
.
handleRef
}
/
>
{
...
...
src/components/Charts/Pie/index.less
View file @
1a1aa957
...
...
@@ -44,6 +44,9 @@
position: absolute;
right: 0;
}
.title {
margin-bottom: 16px;
}
.total {
opacity: 0;
position: absolute;
...
...
@@ -58,6 +61,7 @@
line-height: 22px;
height: 22px;
margin-bottom: 8px;
font-weight: normal;
}
& > p {
color: @heading-color;
...
...
src/routes/Dashboard/Analysis.js
View file @
1a1aa957
...
...
@@ -386,7 +386,7 @@ export default class Analysis extends Component {
)}
style
=
{{
marginTop
:
24
}}
>
<
div
style
=
{{
marginTop
:
32
,
marginBottom
:
54
}}
>
<
div
style
=
{{
marginTop
:
32
,
marginBottom
:
108
}}
>
<
Pie
hasLegend
title
=
"
销售额
"
...
...
@@ -394,7 +394,7 @@ export default class Analysis extends Component {
total
=
{
yuan
(
salesPieData
.
reduce
((
pre
,
now
)
=>
now
.
y
+
pre
,
0
))}
data
=
{
salesPieData
}
valueFormat
=
{
val
=>
yuan
(
val
)}
height
=
{
314
}
height
=
{
260
}
/
>
<
/div
>
<
/Card
>
...
...
src/routes/Dashboard/Analysis.less
View file @
1a1aa957
...
...
@@ -104,9 +104,6 @@
.ant-tabs-bar {
border-bottom: none;
}
.ant-tabs-ink-bar {
top: 1px;
}
.ant-tabs-nav-container-scrolling {
padding-left: 40px;
padding-right: 40px;
...
...
@@ -141,11 +138,9 @@
margin-top: 16px;
}
.salesCard {
.salesBar {
.salesCard .salesBar {
padding: 16px;
}
}
}
@media screen and (max-width: @screen-sm) {
...
...
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