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
664e9289
Commit
664e9289
authored
Oct 19, 2017
by
niko
Committed by
GitHub
Oct 19, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update style (#21)
parent
268a4ef3
Changes
13
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
59 additions
and
41 deletions
+59
-41
src/components/Charts/MiniProgress/index.js
src/components/Charts/MiniProgress/index.js
+3
-3
src/components/StandardFormRow/index.less
src/components/StandardFormRow/index.less
+1
-1
src/components/TagSelect/index.js
src/components/TagSelect/index.js
+23
-21
src/components/TagSelect/index.less
src/components/TagSelect/index.less
+9
-0
src/layouts/BasicLayout.js
src/layouts/BasicLayout.js
+2
-2
src/layouts/BasicLayout.less
src/layouts/BasicLayout.less
+4
-4
src/routes/List/CardList.js
src/routes/List/CardList.js
+4
-4
src/routes/List/CardList.less
src/routes/List/CardList.less
+1
-1
src/routes/List/CoverCardList.js
src/routes/List/CoverCardList.js
+1
-1
src/routes/List/FilterCardList.js
src/routes/List/FilterCardList.js
+3
-1
src/routes/List/FilterCardList.less
src/routes/List/FilterCardList.less
+6
-2
src/routes/List/SearchList.js
src/routes/List/SearchList.js
+1
-1
src/theme.js
src/theme.js
+1
-0
No files found.
src/components/Charts/MiniProgress/index.js
View file @
664e9289
import
React
from
'
react
'
;
import
{
Popover
}
from
'
antd
'
;
import
{
Tooltip
}
from
'
antd
'
;
import
styles
from
'
./index.less
'
;
const
MiniProgress
=
({
target
,
color
,
strokeWidth
,
percent
})
=>
(
<
div
className
=
{
styles
.
miniProgress
}
>
<
Popover
title
=
{
null
}
content
=
{
`目标值:
${
target
}
%`
}
>
<
Tooltip
title
=
{
`目标值:
${
target
}
%`
}
>
<
div
className
=
{
styles
.
target
}
style
=
{{
left
:
(
target
?
`
${
target
}
%`
:
null
)
}}
...
...
@@ -13,7 +13,7 @@ const MiniProgress = ({ target, color, strokeWidth, percent }) => (
<
span
style
=
{{
backgroundColor
:
(
color
||
null
)
}}
/
>
<
span
style
=
{{
backgroundColor
:
(
color
||
null
)
}}
/
>
<
/div
>
<
/
Popover
>
<
/
Tooltip
>
<
div
className
=
{
styles
.
progressWrap
}
>
<
div
className
=
{
styles
.
progress
}
...
...
src/components/StandardFormRow/index.less
View file @
664e9289
...
...
@@ -12,7 +12,7 @@
}
.ant-form-item-label label {
color: @text-color;
margin-right:
16px
;
margin-right:
0
;
}
}
.label {
...
...
src/components/TagSelect/index.js
View file @
664e9289
...
...
@@ -123,27 +123,29 @@ class TagSelect extends PureComponent {
return
(
<
div
className
=
{
cls
}
style
=
{
style
}
>
<
CheckableTag
checked
=
{
checkedAll
}
key
=
"
tag-select-__all__
"
onChange
=
{
this
.
onSelectAll
}
>
全部
<
/CheckableTag
>
{
children
.
filter
(
child
=>
child
.
props
.
displayName
===
'
TagSelectOption
'
).
map
(
child
=>
React
.
cloneElement
(
child
,
{
key
:
`tag-select-
${
child
.
props
.
value
}
`
,
checked
:
checkedTags
.
indexOf
(
child
.
props
.
value
)
>
-
1
,
onChange
:
this
.
handleTagChange
,
}))
}
{
expandNode
&&
(
<
a
className
=
{
styles
.
trigger
}
onClick
=
{
this
.
handleExpand
}
>
{
expand
?
'
收起
'
:
'
展开
'
}
<
Icon
type
=
{
expand
?
'
up
'
:
'
down
'
}
/
>
<
/a
>
)
}
<
div
>
<
CheckableTag
checked
=
{
checkedAll
}
key
=
"
tag-select-__all__
"
onChange
=
{
this
.
onSelectAll
}
>
全部
<
/CheckableTag
>
{
children
.
filter
(
child
=>
child
.
props
.
displayName
===
'
TagSelectOption
'
).
map
(
child
=>
React
.
cloneElement
(
child
,
{
key
:
`tag-select-
${
child
.
props
.
value
}
`
,
checked
:
checkedTags
.
indexOf
(
child
.
props
.
value
)
>
-
1
,
onChange
:
this
.
handleTagChange
,
}))
}
{
expandNode
&&
(
<
a
className
=
{
styles
.
trigger
}
onClick
=
{
this
.
handleExpand
}
>
{
expand
?
'
收起
'
:
'
展开
'
}
<
Icon
type
=
{
expand
?
'
up
'
:
'
down
'
}
/
>
<
/a
>
)
}
<
/div
>
{
expandNode
&&
(
<
div
className
=
{
expand
?
styles
.
expand
:
styles
.
fold
}
>
...
...
src/components/TagSelect/index.less
View file @
664e9289
...
...
@@ -5,6 +5,12 @@
user-select: none;
margin-left: -8px;
position: relative;
:global {
.ant-tag {
padding: 0 8px;
margin-right: 24px;
}
}
.expand {
transition: all 0.32s ease;
overflow: hidden;
...
...
@@ -18,6 +24,9 @@
position: absolute;
top: 0;
right: 0;
i {
font-size: 12px;
}
}
}
.expandTag {
...
...
src/layouts/BasicLayout.js
View file @
664e9289
...
...
@@ -193,7 +193,7 @@ class BasicLayout extends React.PureComponent {
>
<
div
className
=
{
styles
.
logo
}
>
<
Link
to
=
"
/
"
>
<
img
src
=
"
https://gw.alipayobjects.com/zos/rmsportal/
osjtaBtmmQzWRvMbcKeb
.svg
"
alt
=
"
logo
"
/>
<
img
src
=
"
https://gw.alipayobjects.com/zos/rmsportal/
iwWyPinUoseUxIAeElSx
.svg
"
alt
=
"
logo
"
/>
<
h1
>
Ant
Design
Pro
<
/h1
>
<
/Link
>
<
/div
>
...
...
@@ -204,7 +204,7 @@ class BasicLayout extends React.PureComponent {
onOpenChange
=
{
this
.
handleOpenChange
}
selectedKeys
=
{
this
.
getCurrentMenuSelectedKeys
()}
style
=
{{
margin
:
'
24px 0
'
,
width
:
'
100%
'
}}
inlineIndent
=
{
32
}
inlineIndent
=
{
24
}
>
{
this
.
getNavMenuItems
(
this
.
menus
)}
<
/Menu
>
...
...
src/layouts/BasicLayout.less
View file @
664e9289
@import "~antd/lib/style/themes/default.less";
.header {
padding: 0 1
6
px 0 0;
padding: 0 1
2
px 0 0;
background: #fff;
box-shadow: 0 1px 4px rgba(0, 21, 41, .12);
position: relative;
...
...
@@ -24,7 +24,7 @@
color: #fff;
display: inline-block;
vertical-align: middle;
font-size:
22
px;
font-size:
18
px;
margin-left: 12px;
font-family: Lato, 'Helvetica Neue', Arial, Helvetica, sans-serif;
margin-top: -2px;
...
...
@@ -43,7 +43,7 @@
line-height: 64px;
cursor: pointer;
transition: all .3s;
padding: 0 2
8
px;
padding: 0 2
4
px;
&:hover {
background: rgba(0, 0, 0, .04);
}
...
...
@@ -103,5 +103,5 @@
min-height: 100vh;
box-shadow: 2px 0 6px rgba(0, 21, 41, .35);
position: relative;
z-index: 1;
z-index: 1
0
;
}
src/routes/List/CardList.js
View file @
664e9289
...
...
@@ -62,8 +62,8 @@ export default class CardList extends PureComponent {
dataSource
=
{[
''
,
...
list
]}
renderItem
=
{
item
=>
(
item
?
(
<
List
.
Item
key
=
{
item
.
id
}
>
<
Link
to
=
"
/list/card-list
"
>
<
Card
hoverable
actions
=
{[
<
a
>
操作一
<
/a>, <a>操作二</
a
>
]}
>
<
Card
hoverable
actions
=
{[
<
a
>
操作一
<
/a>, <a>操作二</
a
>
]}
>
<
Link
to
=
"
/list/card-list
"
>
<
Card
.
Meta
avatar
=
{
<
Avatar
size
=
"
large
"
src
=
{
item
.
avatar
}
/>
}
title
=
{
item
.
title
}
...
...
@@ -73,8 +73,8 @@ export default class CardList extends PureComponent {
<
/p
>
)}
/
>
<
/
Card
>
<
/
Link
>
<
/
Link
>
<
/
Card
>
<
/List.Item
>
)
:
(
<
List
.
Item
>
...
...
src/routes/List/CardList.less
View file @
664e9289
...
...
@@ -24,7 +24,7 @@
border-color: @border-color-base;
color: @text-color-secondary;
width: 100%;
height: 1
78
px;
height: 1
85
px;
}
.cardDescription {
...
...
src/routes/List/CoverCardList.js
View file @
664e9289
...
...
@@ -153,7 +153,7 @@ export default class CoverCardList extends PureComponent {
onTabChange
=
{
this
.
handleTabChange
}
>
<
div
className
=
{
styles
.
coverCardList
}
>
<
Card
bordered
=
{
false
}
>
<
Card
bordered
=
{
false
}
bodyStyle
=
{{
padding
:
24
}}
>
<
Form
layout
=
"
inline
"
>
<
StandardFormRow
title
=
"
所属类目
"
block
>
<
FormItem
>
...
...
src/routes/List/FilterCardList.js
View file @
664e9289
...
...
@@ -151,7 +151,7 @@ export default class FilterCardList extends PureComponent {
onTabChange
=
{
this
.
handleTabChange
}
>
<
div
className
=
{
styles
.
filterCardList
}
>
<
Card
bordered
=
{
false
}
>
<
Card
bordered
=
{
false
}
bodyStyle
=
{{
padding
:
24
}}
>
<
Form
layout
=
"
inline
"
>
<
StandardFormRow
title
=
"
所属类目
"
block
>
<
FormItem
>
...
...
@@ -221,6 +221,8 @@ export default class FilterCardList extends PureComponent {
renderItem
=
{
item
=>
(
<
List
.
Item
key
=
{
item
.
id
}
>
<
Card
hoverable
bodyStyle
=
{{
paddingBottom
:
16
}}
actions
=
{[
<
Tooltip
title
=
"
下载
"
><
Icon
type
=
"
download
"
/><
/Tooltip>
,
<
Tooltip
title
=
"
编辑
"
><
Icon
type
=
"
edit
"
/><
/Tooltip>
,
...
...
src/routes/List/FilterCardList.less
View file @
664e9289
...
...
@@ -7,10 +7,14 @@
.ant-card-meta-content {
margin-top: 0;
}
// disabled white space
.ant-card-meta-avatar {
font-size: 0;
}
}
.cardInfo {
.clearfix();
margin-top: 1
2
px;
margin-top: 1
6
px;
margin-left: 40px;
& > div {
position: relative;
...
...
@@ -18,7 +22,7 @@
float: left;
width: 50%;
p {
color: @text-color;
color: @text-color
-secondary
;
line-height: 32px;
font-size: 24px;
}
...
...
src/routes/List/SearchList.js
View file @
664e9289
...
...
@@ -183,7 +183,7 @@ export default class SearchList extends Component {
onTabChange
=
{
this
.
handleTabChange
}
>
<
div
>
<
Card
bordered
=
{
false
}
>
<
Card
bordered
=
{
false
}
bodyStyle
=
{{
padding
:
24
}}
>
<
Form
layout
=
"
inline
"
>
<
StandardFormRow
title
=
"
所属类目
"
block
>
<
FormItem
>
...
...
src/theme.js
View file @
664e9289
// https://github.com/ant-design/ant-design/blob/master/components/style/themes/default.less
module
.
exports
=
{
// 'primary-color': '#10e99b',
'
card-actions-background
'
:
'
#f7f9fa
'
,
};
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