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
72b393e9
Commit
72b393e9
authored
Oct 20, 2017
by
ddcat1115
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://github.com/ant-design/test2
parents
d8aef5ae
ff612c5c
Changes
34
Show whitespace changes
Inline
Side-by-side
Showing
34 changed files
with
221 additions
and
81 deletions
+221
-81
mock/api.js
mock/api.js
+5
-5
src/components/AvatarList/index.js
src/components/AvatarList/index.js
+1
-0
src/components/AvatarList/index.less
src/components/AvatarList/index.less
+12
-0
src/components/Charts/Bar/index.js
src/components/Charts/Bar/index.js
+3
-1
src/components/Charts/ChartCard/index.less
src/components/Charts/ChartCard/index.less
+3
-2
src/components/Charts/Gauge/index.js
src/components/Charts/Gauge/index.js
+1
-1
src/components/Charts/MiniArea/index.js
src/components/Charts/MiniArea/index.js
+2
-1
src/components/Charts/MiniBar/index.js
src/components/Charts/MiniBar/index.js
+1
-1
src/components/Charts/Pie/index.js
src/components/Charts/Pie/index.js
+8
-1
src/components/Charts/Pie/index.less
src/components/Charts/Pie/index.less
+1
-1
src/components/Charts/Radar/index.less
src/components/Charts/Radar/index.less
+1
-0
src/components/Charts/TimelineChart/index.js
src/components/Charts/TimelineChart/index.js
+3
-3
src/components/Charts/Trend/index.less
src/components/Charts/Trend/index.less
+1
-1
src/components/EditableLinkGroup/index.js
src/components/EditableLinkGroup/index.js
+1
-1
src/components/EditableLinkGroup/index.less
src/components/EditableLinkGroup/index.less
+2
-1
src/components/StandardTable/index.js
src/components/StandardTable/index.js
+1
-1
src/routes/Dashboard/Analysis.js
src/routes/Dashboard/Analysis.js
+10
-10
src/routes/Dashboard/Analysis.less
src/routes/Dashboard/Analysis.less
+27
-4
src/routes/Dashboard/Monitor.js
src/routes/Dashboard/Monitor.js
+5
-5
src/routes/Dashboard/Monitor.less
src/routes/Dashboard/Monitor.less
+1
-1
src/routes/Dashboard/Workplace.js
src/routes/Dashboard/Workplace.js
+7
-7
src/routes/Dashboard/Workplace.less
src/routes/Dashboard/Workplace.less
+15
-10
src/routes/List/BasicList.js
src/routes/List/BasicList.js
+3
-1
src/routes/List/BasicList.less
src/routes/List/BasicList.less
+38
-1
src/routes/List/CardList.less
src/routes/List/CardList.less
+8
-0
src/routes/List/CoverCardList.js
src/routes/List/CoverCardList.js
+2
-2
src/routes/List/CoverCardList.less
src/routes/List/CoverCardList.less
+2
-2
src/routes/List/FilterCardList.js
src/routes/List/FilterCardList.js
+1
-1
src/routes/List/SearchList.js
src/routes/List/SearchList.js
+18
-10
src/routes/List/SearchList.less
src/routes/List/SearchList.less
+19
-2
src/routes/List/TableList.js
src/routes/List/TableList.js
+2
-2
src/routes/List/TableList.less
src/routes/List/TableList.less
+12
-0
src/theme.js
src/theme.js
+1
-1
src/utils/utils.less
src/utils/utils.less
+4
-2
No files found.
mock/api.js
View file @
72b393e9
...
@@ -18,10 +18,10 @@ export function fakeList(count) {
...
@@ -18,10 +18,10 @@ export function fakeList(count) {
'
https://gw.alipayobjects.com/zos/rmsportal/VcmdbCBcwPTGYgbYeMzX.png
'
,
// DesignLab
'
https://gw.alipayobjects.com/zos/rmsportal/VcmdbCBcwPTGYgbYeMzX.png
'
,
// DesignLab
];
];
const
covers
=
[
const
covers
=
[
'
https://gw.alipayobjects.com/zos/rmsportal/
nQIAJyTLNeVJfUpTskWk
.png
'
,
'
https://gw.alipayobjects.com/zos/rmsportal/
HrxcVbrKnCJOZvtzSqjN
.png
'
,
'
https://gw.alipayobjects.com/zos/rmsportal/
pnhtvpOTzypPvmHVrfKN
.png
'
,
'
https://gw.alipayobjects.com/zos/rmsportal/
alaPpKWajEbIYEUvvVNf
.png
'
,
'
https://gw.alipayobjects.com/zos/rmsportal/
SVrKVZEFDnhDTNpkplZj
.png
'
,
'
https://gw.alipayobjects.com/zos/rmsportal/
RLwlKSYGSXGHuWSojyvp
.png
'
,
'
https://gw.alipayobjects.com/zos/rmsportal/
bUIOUkPTHgfGdDhgsAgE
.png
'
,
'
https://gw.alipayobjects.com/zos/rmsportal/
gLaIAoVWTtLbBWZNYEMg
.png
'
,
];
];
const
list
=
[];
const
list
=
[];
...
@@ -31,7 +31,7 @@ export function fakeList(count) {
...
@@ -31,7 +31,7 @@ export function fakeList(count) {
owner
:
'
曲丽丽
'
,
owner
:
'
曲丽丽
'
,
title
:
titles
[
i
%
8
],
title
:
titles
[
i
%
8
],
avatar
:
avatars
[
i
%
4
],
avatar
:
avatars
[
i
%
4
],
cover
:
covers
[
i
%
4
],
cover
:
Math
.
floor
(
i
/
4
)
%
2
===
0
?
covers
[
i
%
4
]
:
covers
[
3
-
(
i
%
4
)
],
status
:
[
'
active
'
,
'
exception
'
,
'
normal
'
][
i
%
3
],
status
:
[
'
active
'
,
'
exception
'
,
'
normal
'
][
i
%
3
],
percent
:
Math
.
ceil
(
Math
.
random
()
*
50
)
+
50
,
percent
:
Math
.
ceil
(
Math
.
random
()
*
50
)
+
50
,
logo
:
[
'
https://gw.alipayobjects.com/zos/rmsportal/KoJjkdbuTFxzJmmjuDVR.png
'
,
'
https://gw.alipayobjects.com/zos/rmsportal/UxGORCvEXJEsxOfEKZiA.png
'
][
i
%
2
],
logo
:
[
'
https://gw.alipayobjects.com/zos/rmsportal/KoJjkdbuTFxzJmmjuDVR.png
'
,
'
https://gw.alipayobjects.com/zos/rmsportal/UxGORCvEXJEsxOfEKZiA.png
'
][
i
%
2
],
...
...
src/components/AvatarList/index.js
View file @
72b393e9
...
@@ -22,6 +22,7 @@ const Item = ({ src, size, tips, onClick = (() => {}) }) => {
...
@@ -22,6 +22,7 @@ const Item = ({ src, size, tips, onClick = (() => {}) }) => {
const
cls
=
classNames
(
styles
.
avatarItem
,
{
const
cls
=
classNames
(
styles
.
avatarItem
,
{
[
styles
.
avatarItemLarge
]:
size
===
'
large
'
,
[
styles
.
avatarItemLarge
]:
size
===
'
large
'
,
[
styles
.
avatarItemSmall
]:
size
===
'
small
'
,
[
styles
.
avatarItemSmall
]:
size
===
'
small
'
,
[
styles
.
avatarItemMini
]:
size
===
'
mini
'
,
});
});
return
(
return
(
...
...
src/components/AvatarList/index.less
View file @
72b393e9
...
@@ -27,3 +27,15 @@
...
@@ -27,3 +27,15 @@
width: @avatar-size-sm;
width: @avatar-size-sm;
height: @avatar-size-sm;
height: @avatar-size-sm;
}
}
.avatarItemMini {
width: 20px;
height: 20px;
:global {
.ant-avatar {
width: 20px;
height: 20px;
line-height: 20px;
}
}
}
src/components/Charts/Bar/index.js
View file @
72b393e9
...
@@ -72,7 +72,9 @@ class Bar extends PureComponent {
...
@@ -72,7 +72,9 @@ class Bar extends PureComponent {
name
:
'
x
'
,
name
:
'
x
'
,
},
},
});
});
chart
.
interval
().
position
(
'
x*y
'
).
color
(
color
);
chart
.
interval
().
position
(
'
x*y
'
).
color
(
color
).
style
({
fillOpacity
:
1
,
});
chart
.
render
();
chart
.
render
();
this
.
chart
=
chart
;
this
.
chart
=
chart
;
...
...
src/components/Charts/ChartCard/index.less
View file @
72b393e9
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
.total {
.total {
.textOverflow();
.textOverflow();
color: @heading-color;
color: @heading-color;
margin-top:
8
px;
margin-top:
4
px;
font-size: 30px;
font-size: 30px;
line-height: 38px;
line-height: 38px;
height: 38px;
height: 38px;
...
@@ -37,7 +37,8 @@
...
@@ -37,7 +37,8 @@
.footer {
.footer {
border-top: 1px solid @border-color-split;
border-top: 1px solid @border-color-split;
padding-top: 8px;
padding-top: 8px;
margin-top: 11px;
margin-top: 20px;
margin-bottom: 10px;
& > * {
& > * {
position: relative;
position: relative;
}
}
...
...
src/components/Charts/Gauge/index.js
View file @
72b393e9
...
@@ -121,7 +121,7 @@ class Gauge extends PureComponent {
...
@@ -121,7 +121,7 @@ class Gauge extends PureComponent {
height
,
height
,
animate
:
false
,
animate
:
false
,
plotCfg
:
{
plotCfg
:
{
margin
:
[
10
,
0
,
30
,
0
],
margin
:
[
10
,
10
,
30
,
1
0
],
},
},
});
});
...
...
src/components/Charts/MiniArea/index.js
View file @
72b393e9
...
@@ -85,7 +85,8 @@ class MiniArea extends PureComponent {
...
@@ -85,7 +85,8 @@ class MiniArea extends PureComponent {
view
.
source
(
data
,
dataConfig
);
view
.
source
(
data
,
dataConfig
);
view
.
area
().
position
(
'
x*y
'
).
color
(
color
).
shape
(
'
smooth
'
);
view
.
area
().
position
(
'
x*y
'
).
color
(
color
).
shape
(
'
smooth
'
)
.
style
({
fillOpacity
:
1
});
chart
.
on
(
'
tooltipchange
'
,
(
ev
)
=>
{
chart
.
on
(
'
tooltipchange
'
,
(
ev
)
=>
{
const
item
=
ev
.
items
[
0
];
const
item
=
ev
.
items
[
0
];
...
...
src/components/Charts/MiniBar/index.js
View file @
72b393e9
...
@@ -25,7 +25,7 @@ class MiniBar extends PureComponent {
...
@@ -25,7 +25,7 @@ class MiniBar extends PureComponent {
}
}
renderChart
(
data
)
{
renderChart
(
data
)
{
const
{
height
=
0
,
fit
=
true
,
color
=
'
#
33ABFB
'
}
=
this
.
props
;
const
{
height
=
0
,
fit
=
true
,
color
=
'
#
1890FF
'
}
=
this
.
props
;
if
(
!
data
||
(
data
&&
data
.
length
<
1
))
{
if
(
!
data
||
(
data
&&
data
.
length
<
1
))
{
return
;
return
;
...
...
src/components/Charts/Pie/index.js
View file @
72b393e9
...
@@ -59,8 +59,11 @@ class Pie extends Component {
...
@@ -59,8 +59,11 @@ class Pie extends Component {
margin
,
percent
,
color
,
margin
,
percent
,
color
,
inner
=
0.75
,
inner
=
0.75
,
animate
=
true
,
animate
=
true
,
colors
,
}
=
this
.
props
;
}
=
this
.
props
;
const
defaultColors
=
colors
||
[
'
#8543E0
'
,
'
#F04864
'
,
'
#FACC14
'
,
'
#1890FF
'
,
'
#13C2C2
'
,
'
#2FC25B
'
];
let
selected
=
this
.
props
.
selected
||
true
;
let
selected
=
this
.
props
.
selected
||
true
;
let
tooltip
=
this
.
props
.
tooltips
||
true
;
let
tooltip
=
this
.
props
.
tooltips
||
true
;
...
@@ -146,7 +149,11 @@ class Pie extends Component {
...
@@ -146,7 +149,11 @@ class Pie extends Component {
inner
,
inner
,
});
});
if
(
percent
)
{
chart
.
intervalStack
().
position
(
Stat
.
summary
.
percent
(
'
y
'
)).
color
(
'
x
'
,
formatColor
).
selected
(
selected
);
chart
.
intervalStack
().
position
(
Stat
.
summary
.
percent
(
'
y
'
)).
color
(
'
x
'
,
formatColor
).
selected
(
selected
);
}
else
{
chart
.
intervalStack
().
position
(
Stat
.
summary
.
percent
(
'
y
'
)).
color
(
'
x
'
,
defaultColors
).
selected
(
selected
);
}
chart
.
render
();
chart
.
render
();
this
.
chart
=
chart
;
this
.
chart
=
chart
;
...
...
src/components/Charts/Pie/index.less
View file @
72b393e9
...
@@ -62,7 +62,7 @@
...
@@ -62,7 +62,7 @@
& > p {
& > p {
color: @heading-color;
color: @heading-color;
display: block;
display: block;
font-size:
24
px;
font-size:
30
px;
height: 32px;
height: 32px;
line-height: 32px;
line-height: 32px;
}
}
...
...
src/components/Charts/Radar/index.less
View file @
72b393e9
...
@@ -12,6 +12,7 @@
...
@@ -12,6 +12,7 @@
}
}
h6 {
h6 {
color: @heading-color;
color: @heading-color;
padding-left: 16px;
font-size: 24px;
font-size: 24px;
line-height: 32px;
line-height: 32px;
margin-top: 2px;
margin-top: 2px;
...
...
src/components/Charts/TimelineChart/index.js
View file @
72b393e9
...
@@ -30,7 +30,7 @@ class TimelineChart extends Component {
...
@@ -30,7 +30,7 @@ class TimelineChart extends Component {
}
}
renderChart
(
data
)
{
renderChart
(
data
)
{
const
{
height
=
400
,
margin
=
[
60
,
4
0
,
40
,
40
],
titleMap
}
=
this
.
props
;
const
{
height
=
400
,
margin
=
[
60
,
2
0
,
40
,
40
],
titleMap
}
=
this
.
props
;
if
(
!
data
||
(
data
&&
data
.
length
<
1
))
{
if
(
!
data
||
(
data
&&
data
.
length
<
1
))
{
return
;
return
;
...
@@ -81,8 +81,8 @@ class TimelineChart extends Component {
...
@@ -81,8 +81,8 @@ class TimelineChart extends Component {
},
},
});
});
chart
.
line
().
position
(
'
x*y1
'
).
color
(
'
#
4FAAEB
'
);
chart
.
line
().
position
(
'
x*y1
'
).
color
(
'
#
1890FF
'
);
chart
.
line
().
position
(
'
x*y2
'
).
color
(
'
#
9AD681
'
);
chart
.
line
().
position
(
'
x*y2
'
).
color
(
'
#
2FC25B
'
);
this
.
chart
=
chart
;
this
.
chart
=
chart
;
...
...
src/components/Charts/Trend/index.less
View file @
72b393e9
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
display: none;
display: none;
}
}
.title {
.title {
margin-right:
4
px;
margin-right:
8
px;
}
}
.value {
.value {
color: @text-color;
color: @text-color;
...
...
src/components/EditableLinkGroup/index.js
View file @
72b393e9
...
@@ -30,7 +30,7 @@ class EditableLinkGroup extends PureComponent {
...
@@ -30,7 +30,7 @@ class EditableLinkGroup extends PureComponent {
}
}
{
{
<
Button
size
=
"
small
"
onClick
=
{()
=>
this
.
handleOnClick
()}
>
<
Button
size
=
"
small
"
onClick
=
{()
=>
this
.
handleOnClick
()}
>
<
Icon
type
=
"
plus
"
/>
添加
<
Icon
type
=
"
plus
"
/>
添加
<
/Button
>
<
/Button
>
}
}
<
/div
>
<
/div
>
...
...
src/components/EditableLinkGroup/index.less
View file @
72b393e9
...
@@ -16,12 +16,13 @@
...
@@ -16,12 +16,13 @@
& > button {
& > button {
border-color: @primary-color;
border-color: @primary-color;
color: @primary-color;
color: @primary-color;
padding-left: 12px;
padding-right: 12px;
i {
i {
position: relative;
position: relative;
top: -1px;
top: -1px;
}
}
span {
span {
margin-left: 0 !important;
position: relative;
position: relative;
top: -1px;
top: -1px;
}
}
...
...
src/components/StandardTable/index.js
View file @
72b393e9
...
@@ -130,7 +130,7 @@ class StandardTable extends PureComponent {
...
@@ -130,7 +130,7 @@ class StandardTable extends PureComponent {
<
p
>
<
p
>
已选择
<
a
>
{
selectedRowKeys
.
length
}
<
/a> 项  
;
已选择
<
a
>
{
selectedRowKeys
.
length
}
<
/a> 项  
;
服务调用总计
<
span
style
=
{{
fontWeight
:
600
}}
>
{
totalCallNo
}
<
/span>
万
服务调用总计
<
span
style
=
{{
fontWeight
:
600
}}
>
{
totalCallNo
}
<
/span>
万
<
a
onClick
=
{
this
.
cleanSelectedKeys
}
style
=
{{
marginLeft
:
8
}}
>
清空
<
/a
>
<
a
onClick
=
{
this
.
cleanSelectedKeys
}
style
=
{{
marginLeft
:
24
}}
>
清空
<
/a
>
<
/p
>
<
/p
>
)}
)}
type
=
"
info
"
type
=
"
info
"
...
...
src/routes/Dashboard/Analysis.js
View file @
72b393e9
...
@@ -148,7 +148,7 @@ export default class Analysis extends Component {
...
@@ -148,7 +148,7 @@ export default class Analysis extends Component {
const
activeKey
=
currentTabKey
||
(
offlineData
[
0
]
&&
offlineData
[
0
].
name
);
const
activeKey
=
currentTabKey
||
(
offlineData
[
0
]
&&
offlineData
[
0
].
name
);
const
CustomTab
=
({
data
,
currentTabKey
:
currentKey
})
=>
(
const
CustomTab
=
({
data
,
currentTabKey
:
currentKey
})
=>
(
<
Row
gutter
=
{
8
}
style
=
{{
width
:
138
,
margin
:
'
8px
28px
'
}}
>
<
Row
gutter
=
{
8
}
style
=
{{
width
:
138
,
margin
:
'
8px
0
'
}}
>
<
Col
span
=
{
12
}
>
<
Col
span
=
{
12
}
>
<
NumberInfo
<
NumberInfo
title
=
{
data
.
name
}
title
=
{
data
.
name
}
...
@@ -186,7 +186,7 @@ export default class Analysis extends Component {
...
@@ -186,7 +186,7 @@ export default class Analysis extends Component {
<
Col
{...
topColResponsiveProps
}
>
<
Col
{...
topColResponsiveProps
}
>
<
ChartCard
<
ChartCard
bordered
=
{
false
}
bordered
=
{
false
}
title
=
"
销售额
"
title
=
"
总
销售额
"
action
=
{
<
Tooltip
title
=
"
我是一段说明
"
><
Icon
type
=
"
exclamation-circle-o
"
/><
/Tooltip>
}
action
=
{
<
Tooltip
title
=
"
我是一段说明
"
><
Icon
type
=
"
exclamation-circle-o
"
/><
/Tooltip>
}
total
=
{
yuan
(
126560
)}
total
=
{
yuan
(
126560
)}
footer
=
{
<
Field
label
=
"
日均销售额
"
value
=
{
numeral
(
12423
).
format
(
'
0,0
'
)}
/>
}
footer
=
{
<
Field
label
=
"
日均销售额
"
value
=
{
numeral
(
12423
).
format
(
'
0,0
'
)}
/>
}
...
@@ -208,7 +208,7 @@ export default class Analysis extends Component {
...
@@ -208,7 +208,7 @@ export default class Analysis extends Component {
contentHeight
=
{
46
}
contentHeight
=
{
46
}
>
>
<
MiniArea
<
MiniArea
color
=
"
#9
f5ae0
"
color
=
"
#9
75FE4
"
height
=
{
46
}
height
=
{
46
}
data
=
{
visitData
}
data
=
{
visitData
}
/
>
/
>
...
@@ -243,7 +243,7 @@ export default class Analysis extends Component {
...
@@ -243,7 +243,7 @@ export default class Analysis extends Component {
}
}
contentHeight
=
{
46
}
contentHeight
=
{
46
}
>
>
<
MiniProgress
percent
=
{
78
}
strokeWidth
=
{
8
}
target
=
{
80
}
color
=
"
#
5DD1DD
"
/>
<
MiniProgress
percent
=
{
78
}
strokeWidth
=
{
8
}
target
=
{
80
}
color
=
"
#
13C2C2
"
/>
<
/ChartCard
>
<
/ChartCard
>
<
/Col
>
<
/Col
>
<
/Row
>
<
/Row
>
...
@@ -255,11 +255,11 @@ export default class Analysis extends Component {
...
@@ -255,11 +255,11 @@ export default class Analysis extends Component {
<
div
className
=
{
styles
.
salesCard
}
>
<
div
className
=
{
styles
.
salesCard
}
>
<
Tabs
tabBarExtraContent
=
{
salesExtra
}
>
<
Tabs
tabBarExtraContent
=
{
salesExtra
}
>
<
TabPane
tab
=
"
销售额
"
key
=
"
sales
"
>
<
TabPane
tab
=
"
销售额
"
key
=
"
sales
"
>
<
Row
gutter
=
{
72
}
>
<
Row
>
<
Col
xl
=
{
16
}
lg
=
{
12
}
md
=
{
12
}
sm
=
{
24
}
xs
=
{
24
}
>
<
Col
xl
=
{
16
}
lg
=
{
12
}
md
=
{
12
}
sm
=
{
24
}
xs
=
{
24
}
>
<
div
className
=
{
styles
.
salesBar
}
>
<
div
className
=
{
styles
.
salesBar
}
>
<
Bar
<
Bar
height
=
{
29
2
}
height
=
{
29
5
}
title
=
"
销售额趋势
"
title
=
"
销售额趋势
"
data
=
{
salesData
}
data
=
{
salesData
}
/
>
/
>
...
@@ -327,7 +327,7 @@ export default class Analysis extends Component {
...
@@ -327,7 +327,7 @@ export default class Analysis extends Component {
<
Row
gutter
=
{
68
}
>
<
Row
gutter
=
{
68
}
>
<
Col
sm
=
{
12
}
xs
=
{
24
}
style
=
{{
marginBottom
:
24
}}
>
<
Col
sm
=
{
12
}
xs
=
{
24
}
style
=
{{
marginBottom
:
24
}}
>
<
NumberInfo
<
NumberInfo
subTitle
=
{
<
span
>
搜索用户数
量
<
Icon
style
=
{{
marginLeft
:
8
}}
type
=
"
info-circle-o
"
/><
/span>
}
subTitle
=
{
<
span
>
搜索用户数
<
Icon
style
=
{{
marginLeft
:
8
}}
type
=
"
info-circle-o
"
/><
/span>
}
total
=
{
numeral
(
12321
).
format
(
'
0,0
'
)}
total
=
{
numeral
(
12321
).
format
(
'
0,0
'
)}
status
=
"
up
"
status
=
"
up
"
subTotal
=
{
17.1
}
subTotal
=
{
17.1
}
...
@@ -397,7 +397,7 @@ export default class Analysis extends Component {
...
@@ -397,7 +397,7 @@ export default class Analysis extends Component {
total
=
{
yuan
(
salesPieData
.
reduce
((
pre
,
now
)
=>
now
.
y
+
pre
,
0
))}
total
=
{
yuan
(
salesPieData
.
reduce
((
pre
,
now
)
=>
now
.
y
+
pre
,
0
))}
data
=
{
salesPieData
}
data
=
{
salesPieData
}
valueFormat
=
{
val
=>
yuan
(
val
)}
valueFormat
=
{
val
=>
yuan
(
val
)}
height
=
{
29
4
}
height
=
{
31
4
}
/
>
/
>
<
/div
>
<
/div
>
<
/Card
>
<
/Card
>
...
@@ -407,8 +407,8 @@ export default class Analysis extends Component {
...
@@ -407,8 +407,8 @@ export default class Analysis extends Component {
<
Card
<
Card
className
=
{
styles
.
offlineCard
}
className
=
{
styles
.
offlineCard
}
bordered
=
{
false
}
bordered
=
{
false
}
bodyStyle
=
{{
padding
:
'
0 0
24
px 0
'
}}
bodyStyle
=
{{
padding
:
'
0 0
32
px 0
'
}}
style
=
{{
marginTop
:
24
}}
style
=
{{
marginTop
:
32
}}
>
>
<
Tabs
<
Tabs
activeKey
=
{
activeKey
}
activeKey
=
{
activeKey
}
...
...
src/routes/Dashboard/Analysis.less
View file @
72b393e9
...
@@ -12,6 +12,7 @@
...
@@ -12,6 +12,7 @@
}
}
}
}
}
}
.rankingList {
.rankingList {
margin-top: 25px;
margin-top: 25px;
li {
li {
...
@@ -59,14 +60,14 @@
...
@@ -59,14 +60,14 @@
.salesCard {
.salesCard {
.salesBar {
.salesBar {
padding: 0 0
24px 24
px;
padding: 0 0
32px 32
px;
}
}
.salesRank {
.salesRank {
padding: 0
24px 24px 0
;
padding: 0
32px 32px 72px
;
}
}
:global {
:global {
.ant-tabs-bar {
.ant-tabs-bar {
padding-left:
24
px;
padding-left:
16
px;
.ant-tabs-nav .ant-tabs-tab {
.ant-tabs-nav .ant-tabs-tab {
padding-top: 16px;
padding-top: 16px;
padding-bottom: 14px;
padding-bottom: 14px;
...
@@ -87,9 +88,11 @@
...
@@ -87,9 +88,11 @@
}
}
}
}
}
}
.salesCardExtra {
.salesCardExtra {
height:
8
8px;
height:
6
8px;
}
}
.salesTypeRadio {
.salesTypeRadio {
position: absolute;
position: absolute;
left: 24px;
left: 24px;
...
@@ -104,6 +107,18 @@
...
@@ -104,6 +107,18 @@
.ant-tabs-ink-bar {
.ant-tabs-ink-bar {
top: 1px;
top: 1px;
}
}
.ant-tabs-nav-container-scrolling {
padding-left: 40px;
padding-right: 40px;
}
.ant-tabs-tab-prev-icon:before {
position: relative;
left: 6px;
}
.ant-tabs-tab-next-icon:before {
position: relative;
right: 6px;
}
}
}
}
}
...
@@ -111,6 +126,7 @@
...
@@ -111,6 +126,7 @@
.salesExtra {
.salesExtra {
display: none;
display: none;
}
}
.rankingList {
.rankingList {
li {
li {
span:first-child {
span:first-child {
...
@@ -124,12 +140,19 @@
...
@@ -124,12 +140,19 @@
.rankingTitle {
.rankingTitle {
margin-top: 16px;
margin-top: 16px;
}
}
.salesCard {
.salesBar {
padding: 16px;
}
}
}
}
@media screen and (max-width: @screen-sm) {
@media screen and (max-width: @screen-sm) {
.salesExtraWrap {
.salesExtraWrap {
display: none;
display: none;
}
}
.salesCard {
.salesCard {
:global {
:global {
.ant-tabs-content {
.ant-tabs-content {
...
...
src/routes/Dashboard/Monitor.js
View file @
72b393e9
...
@@ -39,26 +39,26 @@ export default class Monitor extends PureComponent {
...
@@ -39,26 +39,26 @@ export default class Monitor extends PureComponent {
<
Col
xl
=
{
18
}
lg
=
{
24
}
md
=
{
24
}
sm
=
{
24
}
xs
=
{
24
}
style
=
{{
marginBottom
:
24
}}
>
<
Col
xl
=
{
18
}
lg
=
{
24
}
md
=
{
24
}
sm
=
{
24
}
xs
=
{
24
}
style
=
{{
marginBottom
:
24
}}
>
<
Card
title
=
"
活动实时交易情况
"
bordered
=
{
false
}
>
<
Card
title
=
"
活动实时交易情况
"
bordered
=
{
false
}
>
<
Row
>
<
Row
>
<
Col
sm
=
{
6
}
xs
=
{
12
}
>
<
Col
md
=
{
6
}
sm
=
{
12
}
xs
=
{
24
}
>
<
NumberInfo
<
NumberInfo
subTitle
=
"
今日交易总额
"
subTitle
=
"
今日交易总额
"
suffix
=
"
元
"
suffix
=
"
元
"
total
=
{
numeral
(
124543233
).
format
(
'
0,0
'
)}
total
=
{
numeral
(
124543233
).
format
(
'
0,0
'
)}
/
>
/
>
<
/Col
>
<
/Col
>
<
Col
sm
=
{
6
}
xs
=
{
12
}
>
<
Col
md
=
{
6
}
sm
=
{
12
}
xs
=
{
24
}
>
<
NumberInfo
<
NumberInfo
subTitle
=
"
销售目标完成率
"
subTitle
=
"
销售目标完成率
"
total
=
"
92%
"
total
=
"
92%
"
/>
/>
<
/Col
>
<
/Col
>
<
Col
sm
=
{
6
}
xs
=
{
12
}
>
<
Col
md
=
{
6
}
sm
=
{
12
}
xs
=
{
24
}
>
<
NumberInfo
<
NumberInfo
subTitle
=
"
活动剩余时间
"
subTitle
=
"
活动剩余时间
"
total
=
{
<
CountDown
target
=
{
targetTime
}
/>
}
total
=
{
<
CountDown
target
=
{
targetTime
}
/>
}
/>
/>
<
/Col
>
<
/Col
>
<
Col
sm
=
{
6
}
xs
=
{
12
}
>
<
Col
md
=
{
6
}
sm
=
{
12
}
xs
=
{
24
}
>
<
NumberInfo
<
NumberInfo
subTitle
=
"
每秒交易总额
"
subTitle
=
"
每秒交易总额
"
suffix
=
"
元
"
suffix
=
"
元
"
...
@@ -96,7 +96,7 @@ export default class Monitor extends PureComponent {
...
@@ -96,7 +96,7 @@ export default class Monitor extends PureComponent {
return
''
;
return
''
;
}
}
}}
}}
title
=
"
核销
率
"
title
=
"
跳出
率
"
height
=
{
180
}
height
=
{
180
}
percent
=
{
87
}
percent
=
{
87
}
/
>
/
>
...
...
src/routes/Dashboard/Monitor.less
View file @
72b393e9
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
.mapChart {
.mapChart {
padding-top: 24px;
padding-top: 24px;
height: 45
0
px;
height: 45
7
px;
img {
img {
width: 100%;
width: 100%;
}
}
...
...
src/routes/Dashboard/Workplace.js
View file @
72b393e9
...
@@ -2,7 +2,7 @@ import React, { PureComponent } from 'react';
...
@@ -2,7 +2,7 @@ import React, { PureComponent } from 'react';
import
moment
from
'
moment
'
;
import
moment
from
'
moment
'
;
import
{
connect
}
from
'
dva
'
;
import
{
connect
}
from
'
dva
'
;
import
{
Link
}
from
'
dva/router
'
;
import
{
Link
}
from
'
dva/router
'
;
import
{
Row
,
Col
,
Card
,
List
,
Avatar
,
Icon
}
from
'
antd
'
;
import
{
Row
,
Col
,
Card
,
List
,
Avatar
}
from
'
antd
'
;
import
PageHeaderLayout
from
'
../../layouts/PageHeaderLayout
'
;
import
PageHeaderLayout
from
'
../../layouts/PageHeaderLayout
'
;
import
EditableLinkGroup
from
'
../../components/EditableLinkGroup
'
;
import
EditableLinkGroup
from
'
../../components/EditableLinkGroup
'
;
...
@@ -109,7 +109,7 @@ export default class Workplace extends PureComponent {
...
@@ -109,7 +109,7 @@ export default class Workplace extends PureComponent {
<
Avatar
size
=
"
large
"
src
=
"
https://gw.alipayobjects.com/zos/rmsportal/XertDCubOxUvZbCdgWTW.png
"
/>
<
Avatar
size
=
"
large
"
src
=
"
https://gw.alipayobjects.com/zos/rmsportal/XertDCubOxUvZbCdgWTW.png
"
/>
<
/div
>
<
/div
>
<
div
className
=
{
styles
.
content
}
>
<
div
className
=
{
styles
.
content
}
>
<
p
className
=
{
styles
.
contentTitle
}
>
早安
,
曲丽丽
,
祝你开心每一天
<
/p
>
<
p
className
=
{
styles
.
contentTitle
}
>
早安
,
曲丽丽
,
祝你开心每一天
!
<
/p
>
<
p
>
交互专家
|
蚂蚁金服
-
某某某事业群
-
某某平台部
-
某某技术部
-
UED
<
/p
>
<
p
>
交互专家
|
蚂蚁金服
-
某某某事业群
-
某某平台部
-
某某技术部
-
UED
<
/p
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
...
@@ -118,17 +118,17 @@ export default class Workplace extends PureComponent {
...
@@ -118,17 +118,17 @@ export default class Workplace extends PureComponent {
const
pageHeaderExtra
=
(
const
pageHeaderExtra
=
(
<
div
className
=
{
styles
.
pageHeaderExtra
}
>
<
div
className
=
{
styles
.
pageHeaderExtra
}
>
<
div
>
<
div
>
<
p
>
<
Icon
type
=
"
appstore-o
"
/>
项目数
<
/p
>
<
p
>
项目数
<
/p
>
<
p
>
56
<
/p
>
<
p
>
56
<
/p
>
<
em
/>
<
em
/>
<
/div
>
<
/div
>
<
div
>
<
div
>
<
p
>
<
Icon
type
=
"
trophy
"
/>
团队内排名
<
/p
>
<
p
>
团队内排名
<
/p
>
<
p
>
8
<
span
>
/ 24</
span
><
/p
>
<
p
>
8
<
span
>
/ 24</
span
><
/p
>
<
em
/>
<
em
/>
<
/div
>
<
/div
>
<
div
>
<
div
>
<
p
>
<
Icon
type
=
"
eye-o
"
/>
项目访问
<
/p
>
<
p
>
项目访问
<
/p
>
<
p
>
2
,
223
<
/p
>
<
p
>
2
,
223
<
/p
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
...
@@ -181,7 +181,7 @@ export default class Workplace extends PureComponent {
...
@@ -181,7 +181,7 @@ export default class Workplace extends PureComponent {
title
=
"
动态
"
title
=
"
动态
"
loading
=
{
activitiesLoading
}
loading
=
{
activitiesLoading
}
>
>
<
List
loading
=
{
activitiesLoading
}
>
<
List
loading
=
{
activitiesLoading
}
size
=
"
large
"
>
<
div
className
=
{
styles
.
activitiesList
}
>
<
div
className
=
{
styles
.
activitiesList
}
>
{
{
activitiesList
.
map
(
item
=>
(
activitiesList
.
map
(
item
=>
(
...
@@ -190,7 +190,7 @@ export default class Workplace extends PureComponent {
...
@@ -190,7 +190,7 @@ export default class Workplace extends PureComponent {
avatar
=
{
<
Avatar
src
=
{
item
.
user
.
avatar
}
/>
}
avatar
=
{
<
Avatar
src
=
{
item
.
user
.
avatar
}
/>
}
title
=
{
title
=
{
<
p
>
<
p
>
<
a
>
{
item
.
user
.
name
}
<
/a> 在 <a>xx</
a
>
新建了项目
<
a
>
xxxx
<
/a
>
<
a
style
=
{{
fontWeight
:
'
bold
'
}}
>
{
item
.
user
.
name
}
<
/a> 在 <a>xx</
a
>
新建了项目
<
a
>
xxxx
<
/a
>
<
/p
>
<
/p
>
}
}
description
=
{
moment
(
item
.
updatedAt
).
fromNow
()}
description
=
{
moment
(
item
.
updatedAt
).
fromNow
()}
...
...
src/routes/Dashboard/Workplace.less
View file @
72b393e9
...
@@ -13,18 +13,19 @@
...
@@ -13,18 +13,19 @@
.pageHeaderContent {
.pageHeaderContent {
display: flex;
display: flex;
.avatar {
.avatar {
flex: 0 1 80px;
flex: 0 1 72px;
margin-bottom: 12px;
& > span {
& > span {
border-radius:
80
px;
border-radius:
72
px;
display: block;
display: block;
width:
80
px;
width:
72
px;
height:
80
px;
height:
72
px;
}
}
}
}
.content {
.content {
position: relative;
position: relative;
top: 8px;
top: 8px;
margin-left:
32
px;
margin-left:
24
px;
flex: 1 1 auto;
flex: 1 1 auto;
color: @text-color-secondary;
color: @text-color-secondary;
.contentTitle {
.contentTitle {
...
@@ -38,18 +39,20 @@
...
@@ -38,18 +39,20 @@
.pageHeaderExtra {
.pageHeaderExtra {
.clearfix();
.clearfix();
float: right;
margin-right: 8px;
& > div {
& > div {
padding: 0
24
px;
padding: 0
32
px;
position: relative;
position: relative;
float: left;
float: left;
& > p:first-child {
& > p:first-child {
color: @text-color-secondary;
color: @text-color-secondary;
font-size: @font-size-base;
font-size: @font-size-base;
line-height: 22px;
line-height: 22px;
margin-bottom:
2
px;
margin-bottom:
4
px;
}
}
& > p {
& > p {
color: @
text
-color;
color: @
heading
-color;
font-size: 30px;
font-size: 30px;
line-height: 38px;
line-height: 38px;
& > span {
& > span {
...
@@ -108,11 +111,11 @@
...
@@ -108,11 +111,11 @@
:global {
:global {
.ant-card-meta-description {
.ant-card-meta-description {
color: @text-color-secondary;
color: @text-color-secondary;
font-size: 12px;
min-height: 42px;
min-height: 36px;
}
}
}
}
.cardTitle {
.cardTitle {
font-size: 14px;
:global {
:global {
.ant-avatar {
.ant-avatar {
position: relative;
position: relative;
...
@@ -178,6 +181,8 @@
...
@@ -178,6 +181,8 @@
margin-bottom: 0;
margin-bottom: 0;
}
}
.pageHeaderExtra {
.pageHeaderExtra {
float: none;
margin-right: 0;
& > div {
& > div {
padding: 0 16px;
padding: 0 16px;
text-align: left;
text-align: left;
...
...
src/routes/List/BasicList.js
View file @
72b393e9
...
@@ -110,16 +110,18 @@ export default class BasicList extends PureComponent {
...
@@ -110,16 +110,18 @@ export default class BasicList extends PureComponent {
<
/Card
>
<
/Card
>
<
Card
<
Card
className
=
{
styles
.
listCard
}
bordered
=
{
false
}
bordered
=
{
false
}
title
=
"
基础列表
"
title
=
"
基础列表
"
style
=
{{
marginTop
:
24
}}
style
=
{{
marginTop
:
24
}}
bodyStyle
=
{{
padding
:
'
16px
32px 40px 32px
'
}}
bodyStyle
=
{{
padding
:
'
0
32px 40px 32px
'
}}
extra
=
{
extraContent
}
extra
=
{
extraContent
}
>
>
<
Button
type
=
"
dashed
"
style
=
{{
width
:
'
100%
'
,
marginBottom
:
12
}}
>
<
Button
type
=
"
dashed
"
style
=
{{
width
:
'
100%
'
,
marginBottom
:
12
}}
>
<
Icon
type
=
"
plus
"
/>
添加
<
Icon
type
=
"
plus
"
/>
添加
<
/Button
>
<
/Button
>
<
List
<
List
size
=
"
large
"
rowKey
=
"
id
"
rowKey
=
"
id
"
loading
=
{
loading
}
loading
=
{
loading
}
pagination
=
{
paginationProps
}
pagination
=
{
paginationProps
}
...
...
src/routes/List/BasicList.less
View file @
72b393e9
...
@@ -8,10 +8,22 @@
...
@@ -8,10 +8,22 @@
}
}
.ant-card-head-title {
.ant-card-head-title {
line-height: 32px;
line-height: 32px;
padding: 24px 0;
}
.ant-card-extra {
padding: 24px 0;
}
}
.ant-list-pagination {
.ant-list-pagination {
text-align: right;
text-align: right;
}
}
.ant-avatar-lg {
width: 48px;
height: 48px;
line-height: 48px;
}
.ant-list-pagination {
margin-top: 16px;
}
}
}
.headerInfo {
.headerInfo {
position: relative;
position: relative;
...
@@ -44,7 +56,7 @@
...
@@ -44,7 +56,7 @@
color: @text-color-secondary;
color: @text-color-secondary;
display: inline-block;
display: inline-block;
font-size: @font-size-base;
font-size: @font-size-base;
margin-left:
32
px;
margin-left:
40
px;
& > span {
& > span {
line-height: 20px;
line-height: 20px;
}
}
...
@@ -83,6 +95,13 @@
...
@@ -83,6 +95,13 @@
margin-left: 0;
margin-left: 0;
}
}
}
}
.listCard {
:global {
.ant-card-head-title {
overflow: visible;
}
}
}
}
}
}
}
...
@@ -113,6 +132,14 @@
...
@@ -113,6 +132,14 @@
}
}
}
}
}
}
.listCard {
:global {
.ant-radio-group {
display: block;
margin-bottom: 8px;
}
}
}
}
}
@media screen and (max-width: @screen-lg) and (min-width: @screen-md) {
@media screen and (max-width: @screen-lg) and (min-width: @screen-md) {
...
@@ -128,3 +155,13 @@
...
@@ -128,3 +155,13 @@
}
}
}
}
}
}
@media screen and (max-width: @screen-xl) {
.standardList {
.listContent {
& > div:last-child {
top: 0;
}
}
}
}
src/routes/List/CardList.less
View file @
72b393e9
...
@@ -40,6 +40,9 @@
...
@@ -40,6 +40,9 @@
margin-top: 16px;
margin-top: 16px;
a {
a {
margin-right: 32px;
margin-right: 32px;
img {
width: 24px;
}
}
}
img {
img {
vertical-align: middle;
vertical-align: middle;
...
@@ -54,6 +57,11 @@
...
@@ -54,6 +57,11 @@
}
}
}
}
}
}
@media screen and (max-width: @screen-md) {
.extraImg {
display: none;
}
}
@media screen and (max-width: @screen-sm) {
@media screen and (max-width: @screen-sm) {
.pageHeaderContent {
.pageHeaderContent {
...
...
src/routes/List/CoverCardList.js
View file @
72b393e9
...
@@ -90,7 +90,7 @@ export default class CoverCardList extends PureComponent {
...
@@ -90,7 +90,7 @@ export default class CoverCardList extends PureComponent {
<
div
className
=
{
styles
.
cardItemContent
}
>
<
div
className
=
{
styles
.
cardItemContent
}
>
<
span
>
{
moment
(
item
.
updatedAt
).
fromNow
()}
<
/span
>
<
span
>
{
moment
(
item
.
updatedAt
).
fromNow
()}
<
/span
>
<
div
className
=
{
styles
.
avatarList
}
>
<
div
className
=
{
styles
.
avatarList
}
>
<
AvatarList
size
=
"
small
"
>
<
AvatarList
size
=
"
mini
"
>
{
{
item
.
members
.
map
((
member
,
i
)
=>
(
item
.
members
.
map
((
member
,
i
)
=>
(
<
AvatarList
.
Item
<
AvatarList
.
Item
...
@@ -153,7 +153,7 @@ export default class CoverCardList extends PureComponent {
...
@@ -153,7 +153,7 @@ export default class CoverCardList extends PureComponent {
onTabChange
=
{
this
.
handleTabChange
}
onTabChange
=
{
this
.
handleTabChange
}
>
>
<
div
className
=
{
styles
.
coverCardList
}
>
<
div
className
=
{
styles
.
coverCardList
}
>
<
Card
bordered
=
{
false
}
bodyStyle
=
{{
padding
:
24
}}
>
<
Card
bordered
=
{
false
}
>
<
Form
layout
=
"
inline
"
>
<
Form
layout
=
"
inline
"
>
<
StandardFormRow
title
=
"
所属类目
"
block
>
<
StandardFormRow
title
=
"
所属类目
"
block
>
<
FormItem
>
<
FormItem
>
...
...
src/routes/List/CoverCardList.less
View file @
72b393e9
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
margin-bottom: -24px;
margin-bottom: -24px;
:global {
:global {
.ant-card-meta-description {
.ant-card-meta-description {
font-size: 12px
;
color: @text-color
;
}
}
}
}
.cardItemContent {
.cardItemContent {
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
line-height: 20px;
line-height: 20px;
height: 20px;
height: 20px;
& > span {
& > span {
color: @
disabled-color
;
color: @
text-color-secondary
;
flex: 1;
flex: 1;
font-size: 12px;
font-size: 12px;
}
}
...
...
src/routes/List/FilterCardList.js
View file @
72b393e9
...
@@ -151,7 +151,7 @@ export default class FilterCardList extends PureComponent {
...
@@ -151,7 +151,7 @@ export default class FilterCardList extends PureComponent {
onTabChange
=
{
this
.
handleTabChange
}
onTabChange
=
{
this
.
handleTabChange
}
>
>
<
div
className
=
{
styles
.
filterCardList
}
>
<
div
className
=
{
styles
.
filterCardList
}
>
<
Card
bordered
=
{
false
}
bodyStyle
=
{{
padding
:
24
}}
>
<
Card
bordered
=
{
false
}
>
<
Form
layout
=
"
inline
"
>
<
Form
layout
=
"
inline
"
>
<
StandardFormRow
title
=
"
所属类目
"
block
>
<
StandardFormRow
title
=
"
所属类目
"
block
>
<
FormItem
>
<
FormItem
>
...
...
src/routes/List/SearchList.js
View file @
72b393e9
...
@@ -141,7 +141,7 @@ export default class SearchList extends Component {
...
@@ -141,7 +141,7 @@ export default class SearchList extends Component {
<
div
className
=
{
styles
.
listContent
}
>
<
div
className
=
{
styles
.
listContent
}
>
<
p
>
{
content
}
<
/p
>
<
p
>
{
content
}
<
/p
>
<
div
>
<
div
>
<
Avatar
src
=
{
avatar
}
size
=
"
small
"
/>
{
owner
}
发布在
<
a
href
=
{
href
}
>
{
href
}
<
/a
>
<
Avatar
src
=
{
avatar
}
size
=
"
small
"
/>
<
a
href
=
{
href
}
>
{
owner
}
<
/a>
发布在 <a href={href}>{href}</
a
>
<
em
>
{
moment
(
updatedAt
).
format
(
'
YYYY-MM-DD hh:mm
'
)}
<
/em
>
<
em
>
{
moment
(
updatedAt
).
format
(
'
YYYY-MM-DD hh:mm
'
)}
<
/em
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
...
@@ -162,13 +162,14 @@ export default class SearchList extends Component {
...
@@ -162,13 +162,14 @@ export default class SearchList extends Component {
const
formItemLayout
=
{
const
formItemLayout
=
{
wrapperCol
:
{
wrapperCol
:
{
xs
:
{
span
:
24
},
xs
:
{
span
:
24
},
sm
:
{
span
:
16
},
sm
:
{
span
:
24
},
md
:
{
span
:
12
},
},
},
};
};
const
loadMore
=
showLoadMore
?
(
const
loadMore
=
showLoadMore
?
(
<
div
style
=
{{
textAlign
:
'
center
'
,
marginTop
:
16
}}
>
<
div
style
=
{{
textAlign
:
'
center
'
,
marginTop
:
16
}}
>
<
Button
onClick
=
{
this
.
handleLoadMore
}
>
<
Button
onClick
=
{
this
.
handleLoadMore
}
style
=
{{
paddingLeft
:
48
,
paddingRight
:
48
}}
>
{
loadingMore
&&
(
<
span
><
Icon
type
=
"
loading
"
/>
加载中
...
<
/span>
)
}
{
loadingMore
&&
(
<
span
><
Icon
type
=
"
loading
"
/>
加载中
...
<
/span>
)
}
{
!
loadingMore
&&
(
<
span
>
加载更多
<
/span>
)
}
{
!
loadingMore
&&
(
<
span
>
加载更多
<
/span>
)
}
<
/Button
>
<
/Button
>
...
@@ -183,7 +184,7 @@ export default class SearchList extends Component {
...
@@ -183,7 +184,7 @@ export default class SearchList extends Component {
onTabChange
=
{
this
.
handleTabChange
}
onTabChange
=
{
this
.
handleTabChange
}
>
>
<
div
>
<
div
>
<
Card
bordered
=
{
false
}
bodyStyle
=
{{
padding
:
24
}}
>
<
Card
bordered
=
{
false
}
>
<
Form
layout
=
"
inline
"
>
<
Form
layout
=
"
inline
"
>
<
StandardFormRow
title
=
"
所属类目
"
block
>
<
StandardFormRow
title
=
"
所属类目
"
block
>
<
FormItem
>
<
FormItem
>
...
@@ -206,7 +207,7 @@ export default class SearchList extends Component {
...
@@ -206,7 +207,7 @@ export default class SearchList extends Component {
grid
grid
>
>
<
Row
>
<
Row
>
<
Col
lg
=
{
16
}
md
=
{
16
}
sm
=
{
20
}
xs
=
{
20
}
>
<
Col
lg
=
{
16
}
md
=
{
24
}
sm
=
{
24
}
xs
=
{
24
}
>
<
FormItem
>
<
FormItem
>
{
getFieldDecorator
(
'
owner
'
,
{
{
getFieldDecorator
(
'
owner
'
,
{
initialValue
:
[
'
wjh
'
,
'
zxx
'
],
initialValue
:
[
'
wjh
'
,
'
zxx
'
],
...
@@ -223,7 +224,7 @@ export default class SearchList extends Component {
...
@@ -223,7 +224,7 @@ export default class SearchList extends Component {
}
}
<
/Select
>
<
/Select
>
)}
)}
<
a
onClick
=
{
this
.
setOwner
}
style
=
{{
marginLeft
:
8
}
}
>
只看自己的
<
/a
>
<
a
className
=
{
styles
.
selfTrigger
}
onClick
=
{
this
.
setOwner
}
>
只看自己的
<
/a
>
<
/FormItem
>
<
/FormItem
>
<
/Col
>
<
/Col
>
<
/Row
>
<
/Row
>
...
@@ -234,7 +235,7 @@ export default class SearchList extends Component {
...
@@ -234,7 +235,7 @@ export default class SearchList extends Component {
last
last
>
>
<
Row
gutter
=
{
16
}
>
<
Row
gutter
=
{
16
}
>
<
Col
lg
=
{
8
}
md
=
{
10
}
sm
=
{
10
}
xs
=
{
24
}
>
<
Col
xl
=
{
8
}
lg
=
{
10
}
md
=
{
12
}
sm
=
{
24
}
xs
=
{
24
}
>
<
FormItem
<
FormItem
{...
formItemLayout
}
{...
formItemLayout
}
label
=
"
活跃用户
"
label
=
"
活跃用户
"
...
@@ -250,7 +251,7 @@ export default class SearchList extends Component {
...
@@ -250,7 +251,7 @@ export default class SearchList extends Component {
)}
)}
<
/FormItem
>
<
/FormItem
>
<
/Col
>
<
/Col
>
<
Col
lg
=
{
8
}
md
=
{
10
}
sm
=
{
10
}
xs
=
{
24
}
>
<
Col
xl
=
{
8
}
lg
=
{
10
}
md
=
{
12
}
sm
=
{
24
}
xs
=
{
24
}
>
<
FormItem
<
FormItem
{...
formItemLayout
}
{...
formItemLayout
}
label
=
"
好评度
"
label
=
"
好评度
"
...
@@ -282,6 +283,7 @@ export default class SearchList extends Component {
...
@@ -282,6 +283,7 @@ export default class SearchList extends Component {
bodyStyle
=
{{
padding
:
'
12px 24px 32px 24px
'
}}
bodyStyle
=
{{
padding
:
'
12px 24px 32px 24px
'
}}
>
>
<
List
<
List
size
=
"
large
"
loading
=
{
!
loadingMore
&&
loading
}
loading
=
{
!
loadingMore
&&
loading
}
rowKey
=
"
id
"
rowKey
=
"
id
"
itemLayout
=
"
vertical
"
itemLayout
=
"
vertical
"
...
@@ -290,11 +292,17 @@ export default class SearchList extends Component {
...
@@ -290,11 +292,17 @@ export default class SearchList extends Component {
renderItem
=
{
item
=>
(
renderItem
=
{
item
=>
(
<
List
.
Item
<
List
.
Item
key
=
{
item
.
id
}
key
=
{
item
.
id
}
actions
=
{[
<
IconText
type
=
"
star-o
"
text
=
{
item
.
star
}
/>, <IconText type="like-o" text={item.like} /
>
,
<
IconText
type
=
"
message
"
text
=
{
item
.
message
}
/>]
}
actions
=
{[
<
IconText
type
=
"
star-o
"
text
=
{
item
.
star
}
/>
,
<
IconText
type
=
"
like-o
"
text
=
{
item
.
like
}
/>
,
<
IconText
type
=
"
message
"
text
=
{
item
.
message
}
/>
,
]}
extra
=
{
<
div
className
=
{
styles
.
listItemExtra
}
/>
}
extra
=
{
<
div
className
=
{
styles
.
listItemExtra
}
/>
}
>
>
<
List
.
Item
.
Meta
<
List
.
Item
.
Meta
title
=
{
<
a
href
=
{
item
.
href
}
>
{
item
.
title
}
<
/a>
}
title
=
{(
<
a
className
=
{
styles
.
listItemMetaTitle
}
href
=
{
item
.
href
}
>
{
item
.
title
}
<
/a
>
)}
description
=
{
<
span
><
Tag
>
Ant
Design
<
/Tag><Tag>设计语言</
Tag
><
Tag
>
蚂蚁金服
<
/Tag></
span
>
}
description
=
{
<
span
><
Tag
>
Ant
Design
<
/Tag><Tag>设计语言</
Tag
><
Tag
>
蚂蚁金服
<
/Tag></
span
>
}
/
>
/
>
<
ListContent
data
=
{
item
}
/
>
<
ListContent
data
=
{
item
}
/
>
...
...
src/routes/List/SearchList.less
View file @
72b393e9
...
@@ -4,6 +4,7 @@
...
@@ -4,6 +4,7 @@
.listContent {
.listContent {
p {
p {
line-height: 24px;
line-height: 24px;
max-width: 720px;
}
}
& > div {
& > div {
color: @text-color-secondary;
color: @text-color-secondary;
...
@@ -15,7 +16,7 @@
...
@@ -15,7 +16,7 @@
}
}
& > span {
& > span {
vertical-align: top;
vertical-align: top;
margin-right:
16
px;
margin-right:
8
px;
width: 20px;
width: 20px;
height: 20px;
height: 20px;
& > img {
& > img {
...
@@ -25,7 +26,7 @@
...
@@ -25,7 +26,7 @@
& > em {
& > em {
color: @disabled-color;
color: @disabled-color;
font-style: normal;
font-style: normal;
margin-left:
24
px;
margin-left:
16
px;
}
}
a {
a {
color: @text-color-secondary;
color: @text-color-secondary;
...
@@ -35,10 +36,16 @@
...
@@ -35,10 +36,16 @@
}
}
}
}
}
}
.listItemMetaTitle {
color: @heading-color;
}
.listItemExtra {
.listItemExtra {
width: 272px;
width: 272px;
height: 1px;
height: 1px;
}
}
.selfTrigger {
margin-left: 24px;
}
@media screen and (max-width: @screen-xs) {
@media screen and (max-width: @screen-xs) {
.listContent {
.listContent {
...
@@ -46,6 +53,16 @@
...
@@ -46,6 +53,16 @@
height: auto;
height: auto;
}
}
}
}
.selfTrigger {
display: block;
margin-left: 0;
}
}
@media screen and (max-width: @screen-md) {
.selfTrigger {
display: block;
margin-left: 0;
}
}
}
@media screen and (max-width: @screen-lg) {
@media screen and (max-width: @screen-lg) {
.listItemExtra {
.listItemExtra {
...
...
src/routes/List/TableList.js
View file @
72b393e9
...
@@ -157,8 +157,8 @@ export default class TableList extends PureComponent {
...
@@ -157,8 +157,8 @@ export default class TableList extends PureComponent {
const
{
selectedRows
,
modalVisible
,
addInputValue
}
=
this
.
state
;
const
{
selectedRows
,
modalVisible
,
addInputValue
}
=
this
.
state
;
const
formItemLayout
=
{
const
formItemLayout
=
{
labelCol
:
{
span
:
5
},
labelCol
:
{
xs
:
5
,
sm
:
8
,
lg
:
6
,
xl
:
6
},
wrapperCol
:
{
span
:
19
},
wrapperCol
:
{
xs
:
18
,
sm
:
16
,
lg
:
17
,
xl
:
17
},
};
};
const
menu
=
(
const
menu
=
(
...
...
src/routes/List/TableList.less
View file @
72b393e9
...
@@ -2,6 +2,12 @@
...
@@ -2,6 +2,12 @@
@import "../../utils/utils.less";
@import "../../utils/utils.less";
.tableList {
.tableList {
padding-bottom: 8px;
:global {
.ant-form-item {
margin-bottom: 24px;
}
}
.tableListOperator {
.tableListOperator {
margin-bottom: 16px;
margin-bottom: 16px;
button {
button {
...
@@ -16,6 +22,12 @@
...
@@ -16,6 +22,12 @@
top: 2px;
top: 2px;
}
}
@media screen and (max-width: @screen-lg) {
.formButton {
margin-left: 20px;
}
}
@media screen and (max-width: @screen-md) {
@media screen and (max-width: @screen-md) {
.formButton {
.formButton {
margin-left: 0;
margin-left: 0;
...
...
src/theme.js
View file @
72b393e9
// https://github.com/ant-design/ant-design/blob/master/components/style/themes/default.less
// https://github.com/ant-design/ant-design/blob/master/components/style/themes/default.less
module
.
exports
=
{
module
.
exports
=
{
// 'primary-color': '#10e99b',
// 'primary-color': '#10e99b',
'
card-actions-background
'
:
'
#f
7f9
fa
'
,
'
card-actions-background
'
:
'
#f
5f8
fa
'
,
};
};
src/utils/utils.less
View file @
72b393e9
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
white-space: nowrap;
white-space: nowrap;
}
}
.textOverflowMulti(@line: 3) {
.textOverflowMulti(@line: 3
, @bg: #fff
) {
overflow: hidden;
overflow: hidden;
position: relative;
position: relative;
line-height: 1.5em;
line-height: 1.5em;
...
@@ -14,9 +14,11 @@
...
@@ -14,9 +14,11 @@
margin-right: -1em;
margin-right: -1em;
padding-right: 1em;
padding-right: 1em;
&:before {
&:before {
background: @bg;
content: '...';
content: '...';
padding: 0 1px;
position: absolute;
position: absolute;
right:
0
;
right:
14px
;
bottom: 0;
bottom: 0;
}
}
&:after {
&:after {
...
...
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