Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
钟摆人-Puppet゜
ant-design-pro
提交
1a1aa957
A
ant-design-pro
项目概览
钟摆人-Puppet゜
/
ant-design-pro
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
A
ant-design-pro
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
1a1aa957
编写于
10月 24, 2017
作者:
A
afc163
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update dashboard
上级
3e042cbc
变更
4
显示空白变更内容
内联
并排
Showing
4 changed file
with
9 addition
and
10 deletion
+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
未找到文件。
src/components/Charts/Pie/index.js
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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) {
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录