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
54b17ee1
Commit
54b17ee1
authored
Oct 26, 2017
by
afc163
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix workspace style
parent
d05a69be
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
67 additions
and
48 deletions
+67
-48
src/components/Charts/Radar/index.js
src/components/Charts/Radar/index.js
+30
-7
src/components/Charts/Radar/index.less
src/components/Charts/Radar/index.less
+13
-9
src/routes/Dashboard/Workplace.js
src/routes/Dashboard/Workplace.js
+12
-14
src/routes/Dashboard/Workplace.less
src/routes/Dashboard/Workplace.less
+12
-18
No files found.
src/components/Charts/Radar/index.js
View file @
54b17ee1
...
@@ -53,9 +53,11 @@ class Radar extends PureComponent {
...
@@ -53,9 +53,11 @@ class Radar extends PureComponent {
hasLegend
=
true
,
hasLegend
=
true
,
fit
=
true
,
fit
=
true
,
tickCount
=
4
,
tickCount
=
4
,
margin
=
[
16
,
30
,
16
,
30
]
}
=
this
.
props
;
margin
=
[
24
,
30
,
16
,
30
]
}
=
this
.
props
;
const
colors
=
[
'
#1890FF
'
,
'
#FACC14
'
,
'
#2FC25B
'
];
const
colors
=
[
'
#1890FF
'
,
'
#FACC14
'
,
'
#2FC25B
'
,
'
#8543E0
'
,
'
#F04864
'
,
'
#13C2C2
'
,
'
#fa8c16
'
,
'
#a0d911
'
,
];
if
(
!
data
||
(
data
&&
data
.
length
<
1
))
{
if
(
!
data
||
(
data
&&
data
.
length
<
1
))
{
return
;
return
;
...
@@ -87,16 +89,40 @@ class Radar extends PureComponent {
...
@@ -87,16 +89,40 @@ class Radar extends PureComponent {
chart
.
axis
(
'
label
'
,
{
chart
.
axis
(
'
label
'
,
{
line
:
null
,
line
:
null
,
labelOffset
:
8
,
labels
:
{
label
:
{
fill
:
'
rgba(0, 0, 0, .65)
'
,
},
},
grid
:
{
line
:
{
stroke
:
'
#e9e9e9
'
,
lineWidth
:
1
,
lineDash
:
[
0
,
0
],
},
},
});
});
chart
.
axis
(
'
value
'
,
{
chart
.
axis
(
'
value
'
,
{
grid
:
{
grid
:
{
type
:
'
polygon
'
,
type
:
'
polygon
'
,
line
:
{
stroke
:
'
#e9e9e9
'
,
lineWidth
:
1
,
lineDash
:
[
0
,
0
],
},
},
labels
:
{
label
:
{
fill
:
'
rgba(0, 0, 0, .65)
'
,
},
},
},
});
});
chart
.
line
().
position
(
'
label*value
'
).
color
(
'
name
'
,
colors
);
chart
.
line
().
position
(
'
label*value
'
).
color
(
'
name
'
,
colors
);
chart
.
point
().
position
(
'
label*value
'
).
color
(
'
name
'
,
colors
).
shape
(
'
circle
'
);
chart
.
point
().
position
(
'
label*value
'
).
color
(
'
name
'
,
colors
).
shape
(
'
circle
'
)
.
size
(
3
);
chart
.
render
();
chart
.
render
();
...
@@ -129,7 +155,7 @@ class Radar extends PureComponent {
...
@@ -129,7 +155,7 @@ class Radar extends PureComponent {
return
(
return
(
<
div
className
=
{
styles
.
radar
}
style
=
{{
height
}}
>
<
div
className
=
{
styles
.
radar
}
style
=
{{
height
}}
>
<
div
>
<
div
>
{
title
&&
<
h4
>
{
title
}
<
/h4>
}
{
title
&&
<
h4
>
{
title
}
<
/h4>
}
<
div
ref
=
{
this
.
handleRef
}
/
>
<
div
ref
=
{
this
.
handleRef
}
/
>
{
{
hasLegend
&&
(
hasLegend
&&
(
...
@@ -147,9 +173,6 @@ class Radar extends PureComponent {
...
@@ -147,9 +173,6 @@ class Radar extends PureComponent {
<
span
>
{
item
.
name
}
<
/span
>
<
span
>
{
item
.
name
}
<
/span
>
<
/p
>
<
/p
>
<
h6
>
{
item
.
value
}
<
/h6
>
<
h6
>
{
item
.
value
}
<
/h6
>
{
i
!==
(
legendData
.
length
-
1
)
&&
<
div
className
=
{
styles
.
split
}
/
>
}
<
/div
>
<
/div
>
<
/Col
>
<
/Col
>
))
))
...
...
src/components/Charts/Radar/index.less
View file @
54b17ee1
...
@@ -7,33 +7,37 @@
...
@@ -7,33 +7,37 @@
.legendItem {
.legendItem {
position: relative;
position: relative;
text-align: center;
text-align: center;
p {
cursor: pointer;
cursor: pointer;
}
color: @text-color-secondary;
line-height: 22px;
h6 {
h6 {
color: @heading-color;
color: @heading-color;
padding-left: 16px;
padding-left: 16px;
font-size: 24px;
font-size: 24px;
line-height: 32px;
line-height: 32px;
margin-top:
2
px;
margin-top:
4
px;
}
}
.split
{
&:after
{
background-color: @border-color-split;
background-color: @border-color-split;
position: absolute;
position: absolute;
top: 8px;
top: 8px;
right: 0;
right: 0;
height: 40px;
height: 40px;
width: 1px;
width: 1px;
content: '';
}
}
}
> :last-child .legendItem:after {
display: none;
}
}
.dot {
.dot {
border-radius:
8
px;
border-radius:
6
px;
display: inline-block;
display: inline-block;
margin-right:
8
px;
margin-right:
6
px;
position: relative;
position: relative;
top: -1px;
top: -1px;
height:
8
px;
height:
6
px;
width:
8
px;
width:
6
px;
}
}
}
}
}
}
src/routes/Dashboard/Workplace.js
View file @
54b17ee1
...
@@ -189,9 +189,13 @@ export default class Workplace extends PureComponent {
...
@@ -189,9 +189,13 @@ export default class Workplace extends PureComponent {
<
List
.
Item
.
Meta
<
List
.
Item
.
Meta
avatar
=
{
<
Avatar
src
=
{
item
.
user
.
avatar
}
/>
}
avatar
=
{
<
Avatar
src
=
{
item
.
user
.
avatar
}
/>
}
title
=
{
title
=
{
<
p
>
<
span
>
<
a
style
=
{{
fontWeight
:
'
bold
'
}}
>
{
item
.
user
.
name
}
<
/a> 在 <a>xx</
a
>
新建了项目
<
a
>
xxxx
<
/a
>
<
a
className
=
{
styles
.
username
}
>
{
item
.
user
.
name
}
<
/a
>
<
/p
>
&
nbsp
;
<
span
className
=
{
styles
.
operation
}
>
在
<
a
>
xx
<
/a> 新建了项目 <a>xxxx</
a
>
<
/span
>
<
/span
>
}
}
description
=
{
description
=
{
<
span
className
=
{
styles
.
datetime
}
title
=
{
item
.
updatedAt
}
>
<
span
className
=
{
styles
.
datetime
}
title
=
{
item
.
updatedAt
}
>
...
@@ -222,21 +226,15 @@ export default class Workplace extends PureComponent {
...
@@ -222,21 +226,15 @@ export default class Workplace extends PureComponent {
<
Card
<
Card
style
=
{{
marginBottom
:
24
}}
style
=
{{
marginBottom
:
24
}}
bordered
=
{
false
}
bordered
=
{
false
}
title
=
"
xx
指数
"
title
=
"
XX
指数
"
loading
=
{
radarData
.
length
===
0
}
loading
=
{
radarData
.
length
===
0
}
>
>
<
div
className
=
{
styles
.
chart
}
>
<
div
className
=
{
styles
.
chart
}
>
{
<
Radar
hasLegend
height
=
{
286
}
data
=
{
radarData
}
/
>
<
Radar
hasLegend
height
=
{
286
}
data
=
{
radarData
}
/
>
}
<
/div
>
<
/div
>
<
/Card
>
<
/Card
>
<
Card
<
Card
bodyStyle
=
{{
padding
Bottom
:
0
}}
bodyStyle
=
{{
padding
Top
:
12
,
paddingBottom
:
12
}}
bordered
=
{
false
}
bordered
=
{
false
}
title
=
"
团队
"
title
=
"
团队
"
>
>
...
@@ -246,8 +244,8 @@ export default class Workplace extends PureComponent {
...
@@ -246,8 +244,8 @@ export default class Workplace extends PureComponent {
members
.
map
(
item
=>
(
members
.
map
(
item
=>
(
<
Col
span
=
{
12
}
key
=
{
`members-item-
${
item
.
id
}
`
}
>
<
Col
span
=
{
12
}
key
=
{
`members-item-
${
item
.
id
}
`
}
>
<
Link
to
=
{
item
.
link
}
>
<
Link
to
=
{
item
.
link
}
>
<
img
src
=
{
item
.
logo
}
alt
=
{
item
.
title
}
/
>
<
Avatar
src
=
{
item
.
logo
}
size
=
"
small
"
/>
<
span
>
{
item
.
title
}
<
/span
>
<
span
className
=
{
styles
.
member
}
>
{
item
.
title
}
<
/span
>
<
/Link
>
<
/Link
>
<
/Col
>
<
/Col
>
))
))
...
...
src/routes/Dashboard/Workplace.less
View file @
54b17ee1
...
@@ -2,11 +2,12 @@
...
@@ -2,11 +2,12 @@
@import "../../utils/utils.less";
@import "../../utils/utils.less";
.activitiesList {
.activitiesList {
padding: 0 24px 24px 24px;
padding: 0 24px 8px 24px;
:global {
.username {
.ant-list-item-meta-title:hover {
color: @text-color;
color: @text-color;
}
}
.operation {
font-weight: normal;
}
}
}
}
...
@@ -80,28 +81,21 @@
...
@@ -80,28 +81,21 @@
}
}
.members {
.members {
margin-bottom: 35px;
a {
a {
display: block;
display: block;
margin
-bottom: 24px
;
margin
: 12px 0
;
line-height: 24px;
line-height: 24px;
height: 24px;
height: 24px;
.textOverflow();
.textOverflow();
img {
.member {
border-radius: 24px;
display: inline;
position: relative;
top: -2px;
width: 24px;
height: 24px;
margin-right: 12px;
vertical-align: middle;
}
span {
font-size: @font-size-base;
font-size: @font-size-base;
color: @text-color;
color: @text-color;
line-height: 24px;
line-height: 24px;
max-width: 100px;
max-width: 100px;
vertical-align: top;
margin-left: 12px;
transition: all .3s;
display: inline-block;
.textOverflow();
.textOverflow();
}
}
&:hover {
&:hover {
...
...
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