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
bbb44ba8
Commit
bbb44ba8
authored
Sep 02, 2018
by
afc163
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve details
parent
2f57afd1
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
45 additions
and
18 deletions
+45
-18
src/components/NumberInfo/index.js
src/components/NumberInfo/index.js
+13
-2
src/locales/en-US.js
src/locales/en-US.js
+4
-4
src/pages/Dashboard/Analysis.js
src/pages/Dashboard/Analysis.js
+13
-3
src/pages/Dashboard/Analysis.less
src/pages/Dashboard/Analysis.less
+15
-9
No files found.
src/components/NumberInfo/index.js
View file @
bbb44ba8
...
@@ -10,8 +10,19 @@ const NumberInfo = ({ theme, title, subTitle, total, subTotal, status, suffix, g
...
@@ -10,8 +10,19 @@ const NumberInfo = ({ theme, title, subTitle, total, subTotal, status, suffix, g
})}
})}
{...
rest
}
{...
rest
}
>
>
{
title
&&
<
div
className
=
{
styles
.
numberInfoTitle
}
>
{
title
}
<
/div>
}
{
title
&&
(
{
subTitle
&&
<
div
className
=
{
styles
.
numberInfoSubTitle
}
>
{
subTitle
}
<
/div>
}
<
div
className
=
{
styles
.
numberInfoTitle
}
title
=
{
typeof
title
===
'
string
'
?
title
:
''
}
>
{
title
}
<
/div
>
)}
{
subTitle
&&
(
<
div
className
=
{
styles
.
numberInfoSubTitle
}
title
=
{
typeof
subTitle
===
'
string
'
?
subTitle
:
''
}
>
{
subTitle
}
<
/div
>
)}
<
div
className
=
{
styles
.
numberInfoValue
}
style
=
{
gap
?
{
marginTop
:
gap
}
:
null
}
>
<
div
className
=
{
styles
.
numberInfoValue
}
style
=
{
gap
?
{
marginTop
:
gap
}
:
null
}
>
<
span
>
<
span
>
{
total
}
{
total
}
...
...
src/locales/en-US.js
View file @
bbb44ba8
...
@@ -38,19 +38,19 @@ export default {
...
@@ -38,19 +38,19 @@ export default {
'
app.home.introduce
'
:
'
introduce
'
,
'
app.home.introduce
'
:
'
introduce
'
,
'
app.analysis.test
'
:
'
Gongzhuan No.{no} shop
'
,
'
app.analysis.test
'
:
'
Gongzhuan No.{no} shop
'
,
'
app.analysis.introduce
'
:
'
Introduce
'
,
'
app.analysis.introduce
'
:
'
Introduce
'
,
'
app.analysis.total-sales
'
:
'
total s
ales
'
,
'
app.analysis.total-sales
'
:
'
Total S
ales
'
,
'
app.analysis.day-sales
'
:
'
Day Sales
'
,
'
app.analysis.day-sales
'
:
'
Day Sales
'
,
'
app.analysis.visits
'
:
'
Visits
'
,
'
app.analysis.visits
'
:
'
Visits
'
,
'
app.analysis.visits-trend
'
:
'
Visits Trend
'
,
'
app.analysis.visits-trend
'
:
'
Visits Trend
'
,
'
app.analysis.visits-ranking
'
:
'
Visits Ranking
'
,
'
app.analysis.visits-ranking
'
:
'
Visits Ranking
'
,
'
app.analysis.day-visits
'
:
'
Day Visits
'
,
'
app.analysis.day-visits
'
:
'
Day Visits
'
,
'
app.analysis.week
'
:
'
week r
atio
'
,
'
app.analysis.week
'
:
'
Week R
atio
'
,
'
app.analysis.day
'
:
'
day r
atio
'
,
'
app.analysis.day
'
:
'
Day R
atio
'
,
'
app.analysis.payments
'
:
'
Payments
'
,
'
app.analysis.payments
'
:
'
Payments
'
,
'
app.analysis.conversion-rate
'
:
'
Conversion Rate
'
,
'
app.analysis.conversion-rate
'
:
'
Conversion Rate
'
,
'
app.analysis.operational-effect
'
:
'
Operational Effect
'
,
'
app.analysis.operational-effect
'
:
'
Operational Effect
'
,
'
app.analysis.sales-trend
'
:
'
Stores Sales Trend
'
,
'
app.analysis.sales-trend
'
:
'
Stores Sales Trend
'
,
'
app.analysis.sales-ranking
'
:
'
sales r
anking
'
,
'
app.analysis.sales-ranking
'
:
'
Sales R
anking
'
,
'
app.analysis.all-year
'
:
'
All Year
'
,
'
app.analysis.all-year
'
:
'
All Year
'
,
'
app.analysis.all-month
'
:
'
All Month
'
,
'
app.analysis.all-month
'
:
'
All Month
'
,
'
app.analysis.all-week
'
:
'
All Week
'
,
'
app.analysis.all-week
'
:
'
All Week
'
,
...
...
src/pages/Dashboard/Analysis.js
View file @
bbb44ba8
...
@@ -456,9 +456,19 @@ class Analysis extends Component {
...
@@ -456,9 +456,19 @@ class Analysis extends Component {
<
ul
className
=
{
styles
.
rankingList
}
>
<
ul
className
=
{
styles
.
rankingList
}
>
{
this
.
rankingListData
.
map
((
item
,
i
)
=>
(
{
this
.
rankingListData
.
map
((
item
,
i
)
=>
(
<
li
key
=
{
item
.
title
}
>
<
li
key
=
{
item
.
title
}
>
<
span
className
=
{
i
<
3
?
styles
.
active
:
''
}
>
{
i
+
1
}
<
/span
>
<
span
<
span
>
{
item
.
title
}
<
/span
>
className
=
{
`
${
styles
.
rankingItemNumber
}
${
<
span
>
{
numeral
(
item
.
total
).
format
(
'
0,0
'
)}
<
/span
>
i
<
3
?
styles
.
active
:
''
}
`
}
>
{
i
+
1
}
<
/span
>
<
span
className
=
{
styles
.
rankingItemTitle
}
title
=
{
item
.
title
}
>
{
item
.
title
}
<
/span
>
<
span
className
=
{
styles
.
rankingItemValue
}
>
{
numeral
(
item
.
total
).
format
(
'
0,0
'
)}
<
/span
>
<
/li
>
<
/li
>
))}
))}
<
/ul
>
<
/ul
>
...
...
src/pages/Dashboard/Analysis.less
View file @
bbb44ba8
...
@@ -20,30 +20,36 @@
...
@@ -20,30 +20,36 @@
li {
li {
.clearfix();
.clearfix();
margin-top: 16px;
margin-top: 16px;
display: flex;
align-items: center;
span {
span {
color: @text-color;
color: @text-color;
font-size: 14px;
font-size: 14px;
line-height: 22px;
line-height: 22px;
}
}
span:first-child
{
.rankingItemNumber
{
background-color: @background-color-base;
background-color: @background-color-base;
border-radius: 20px;
border-radius: 20px;
display: inline-block;
display: inline-block;
font-size: 12px;
font-size: 12px;
font-weight: 600;
font-weight: 600;
margin-right:
24
px;
margin-right:
16
px;
height: 20px;
height: 20px;
line-height: 20px;
line-height: 20px;
width: 20px;
width: 20px;
text-align: center;
text-align: center;
margin-top: 1.5px;
&.active {
background-color: #314659;
color: #fff;
}
}
}
span.active {
.rankingItemTitle {
//background-color: @primary-color;
flex: 1;
background-color: #314659;
white-space: nowrap;
color: #fff;
text-overflow: ellipsis;
}
overflow: hidden;
span:last-child {
margin-right: 8px;
float: right;
}
}
}
}
}
}
...
...
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