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
P
pro-blocks
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
pro-blocks
Commits
ff0385ab
Commit
ff0385ab
authored
Oct 30, 2017
by
ddcat1115
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improve according to
http://gitlab.alipay-inc.com/ued/ant-design/issues/269
parent
03e0ca45
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
17 deletions
+23
-17
src/routes/Forms/BasicForm.js
src/routes/Forms/BasicForm.js
+1
-1
src/routes/List/CardList.js
src/routes/List/CardList.js
+10
-13
src/routes/List/CardList.less
src/routes/List/CardList.less
+9
-0
src/routes/List/CoverCardList.less
src/routes/List/CoverCardList.less
+3
-3
No files found.
src/routes/Forms/BasicForm.js
View file @
ff0385ab
...
...
@@ -178,7 +178,7 @@ export default class BasicForms extends PureComponent {
提交
<
/Button
>
<
Button
style
=
{{
marginLeft
:
8
}}
>
保存
<
/Button
>
<
Button
style
=
{{
marginLeft
:
8
}}
>
删除
<
/Button
>
<
Button
type
=
"
danger
"
style
=
{{
marginLeft
:
8
}}
>
删除
<
/Button
>
<
/FormItem
>
<
/Form
>
<
/Card
>
...
...
src/routes/List/CardList.js
View file @
ff0385ab
import
React
,
{
PureComponent
}
from
'
react
'
;
import
{
connect
}
from
'
dva
'
;
import
{
Link
}
from
'
dva/router
'
;
import
{
Card
,
Button
,
Icon
,
List
}
from
'
antd
'
;
import
PageHeaderLayout
from
'
../../layouts/PageHeaderLayout
'
;
...
...
@@ -63,18 +62,16 @@ export default class CardList extends PureComponent {
dataSource
=
{[
''
,
...
list
]}
renderItem
=
{
item
=>
(
item
?
(
<
List
.
Item
key
=
{
item
.
id
}
>
<
Card
className
=
{
styles
.
card
}
actions
=
{[
<
a
>
操作一
<
/a>, <a>操作二</
a
>
]}
>
<
Link
to
=
"
/list/card-list
"
>
<
Card
.
Meta
avatar
=
{
<
img
alt
=
""
className
=
{
styles
.
cardAvatar
}
src
=
{
item
.
avatar
}
/>
}
title
=
{
item
.
title
}
description
=
{(
<
p
className
=
{
styles
.
cardDescription
}
>
<
span
>
{
item
.
description
}
<
/span
>
<
/p
>
)}
/
>
<
/Link
>
<
Card
hoverable
className
=
{
styles
.
card
}
actions
=
{[
<
a
>
操作一
<
/a>, <a>操作二</
a
>
]}
>
<
Card
.
Meta
avatar
=
{
<
img
alt
=
""
className
=
{
styles
.
cardAvatar
}
src
=
{
item
.
avatar
}
/>
}
title
=
{
<
a
href
=
"
#
"
>
{
item
.
title
}
<
/a>
}
description
=
{(
<
p
className
=
{
styles
.
cardDescription
}
>
<
span
>
{
item
.
description
}
<
/span
>
<
/p
>
)}
/
>
<
/Card
>
<
/List.Item
>
)
:
(
...
...
src/routes/List/CardList.less
View file @
ff0385ab
...
...
@@ -8,10 +8,18 @@
:global {
.ant-card-meta-title {
margin-bottom: 12px;
& > a {
color: @heading-color;
}
}
.ant-card-actions {
background: #f7f9fa;
}
.ant-card-body:hover {
.ant-card-meta-title > a {
color: @primary-color;
}
}
}
}
}
...
...
@@ -28,6 +36,7 @@
.newButton {
background-color: #fff;
border-color: @border-color-base;
border-radius: @border-radius-sm;
color: @text-color-secondary;
width: 100%;
height: 188px;
...
...
src/routes/List/CoverCardList.less
View file @
ff0385ab
...
...
@@ -8,9 +8,9 @@
:global {
.ant-card-meta-title {
margin-bottom: 4px;
}
.ant-card-meta-title > a {
color: @heading-color;
& > a {
color: @heading-color;
}
}
.ant-card-meta-description {
height: 44px;
...
...
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