From 7f0e81d8b9d0c8ef2ccd4b5d4ab4c5afb4b569cc Mon Sep 17 00:00:00 2001 From: zuiidea Date: Mon, 28 Nov 2016 22:46:16 +0800 Subject: [PATCH] sales charts --- README.md | 1 + src/components/dashboard/sales.js | 7 ++++++- src/components/dashboard/sales.less | 21 +++++++++++++++++++++ 3 files changed, 28 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index adae91a..0664a60 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,7 @@ - [x] 主布局示例 - [x] 数据列表 - [x] 表单相关 +- [ ] dashbord首页 - [ ] 可视化图表 ## 开发及构建 diff --git a/src/components/dashboard/sales.js b/src/components/dashboard/sales.js index 9ed9d3a..3c6c592 100644 --- a/src/components/dashboard/sales.js +++ b/src/components/dashboard/sales.js @@ -24,7 +24,12 @@ function Sales(props) { - + { + const list = content.payload.map((item,key) =>
  • {item.name+':'+item.value}
  • ) + return

    {content.label}

      {list}
    + }}/> diff --git a/src/components/dashboard/sales.less b/src/components/dashboard/sales.less index 82fe6cf..9483687 100644 --- a/src/components/dashboard/sales.less +++ b/src/components/dashboard/sales.less @@ -5,3 +5,24 @@ font-size: 16px; } } +.tooltip{ + background: #fff; + padding: 20px; + font-size: 14px; + .tiptitle{ + font-weight: 700; + font-size: 16px; + margin-bottom: 8px; + } + .tipitem{ + height: 32px; + line-height: 32px; + } + .radiusdot{ + width:12px; + height:12px; + margin-right: 8px; + border-radius:50%; + display:inline-block; + } +}