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; + } +}