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
aa833043
Commit
aa833043
authored
Sep 15, 2017
by
nikogu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clost:
https://github.com/ant-design/test2/issues/12
parent
21dba8bc
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
57 additions
and
24 deletions
+57
-24
src/routes/Dashboard/Analysis.js
src/routes/Dashboard/Analysis.js
+51
-21
src/routes/Dashboard/Analysis.less
src/routes/Dashboard/Analysis.less
+6
-3
No files found.
src/routes/Dashboard/Analysis.js
View file @
aa833043
...
...
@@ -253,13 +253,16 @@ export default class Analysis extends Component {
<
TabPane
tab
=
"
销售额
"
key
=
"
sales
"
>
<
Row
gutter
=
{
72
}
>
<
Col
xl
=
{
16
}
lg
=
{
12
}
md
=
{
12
}
sm
=
{
24
}
xs
=
{
24
}
>
<
div
className
=
{
styles
.
salesBar
}
>
<
Bar
height
=
{
292
}
title
=
"
销售额趋势
"
data
=
{
salesData
}
/
>
<
/div
>
<
/Col
>
<
Col
xl
=
{
8
}
lg
=
{
12
}
md
=
{
12
}
sm
=
{
24
}
xs
=
{
24
}
>
<
div
className
=
{
styles
.
salesRank
}
>
<
h4
className
=
{
styles
.
rankingTitle
}
>
门店销售额排名
<
/h4
>
<
ul
className
=
{
styles
.
rankingList
}
>
{
...
...
@@ -272,11 +275,38 @@ export default class Analysis extends Component {
))
}
<
/ul
>
<
/div
>
<
/Col
>
<
/Row
>
<
/TabPane
>
<
TabPane
tab
=
"
访问量
"
key
=
"
visits
"
>
访问量没有
,
因为偷懒了
<
TabPane
tab
=
"
访问量
"
key
=
"
views
"
>
<
Row
gutter
=
{
72
}
>
<
Col
xl
=
{
16
}
lg
=
{
12
}
md
=
{
12
}
sm
=
{
24
}
xs
=
{
24
}
>
<
div
className
=
{
styles
.
salesBar
}
>
<
Bar
height
=
{
292
}
title
=
"
访问量趋势
"
data
=
{
salesData
}
/
>
<
/div
>
<
/Col
>
<
Col
xl
=
{
8
}
lg
=
{
12
}
md
=
{
12
}
sm
=
{
24
}
xs
=
{
24
}
>
<
div
className
=
{
styles
.
salesRank
}
>
<
h4
className
=
{
styles
.
rankingTitle
}
>
门店访问量排名
<
/h4
>
<
ul
className
=
{
styles
.
rankingList
}
>
{
rankingListData
.
map
((
item
,
i
)
=>
(
<
li
key
=
{
item
.
title
}
>
<
span
className
=
{(
i
<
3
)
&&
styles
.
active
}
>
{
i
+
1
}
<
/span
>
<
span
>
{
item
.
title
}
<
/span
>
<
span
>
{
numeral
(
item
.
total
).
format
(
'
0,0
'
)}
<
/span
>
<
/li
>
))
}
<
/ul
>
<
/div
>
<
/Col
>
<
/Row
>
<
/TabPane
>
<
/Tabs
>
<
/div
>
...
...
@@ -390,4 +420,4 @@ export default class Analysis extends Component {
<
/div
>
);
}
}
}
src/routes/Dashboard/Analysis.less
View file @
aa833043
...
...
@@ -57,10 +57,13 @@
}
.salesCard {
:global {
.ant-tabs-content {
padding: 0 24px 24px 24px;
.salesBar {
padding: 0 0 24px 24px;
}
.salesRank {
padding: 0 24px 24px 0;
}
:global {
.ant-tabs-bar {
padding-left: 24px;
.ant-tabs-nav .ant-tabs-tab {
...
...
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