Commit ff0385ab authored by ddcat1115's avatar ddcat1115
parent 03e0ca45
...@@ -178,7 +178,7 @@ export default class BasicForms extends PureComponent { ...@@ -178,7 +178,7 @@ export default class BasicForms extends PureComponent {
提亀 提亀
</Button> </Button>
<Button style={{ marginLeft: 8 }}>保存</Button> <Button style={{ marginLeft: 8 }}>保存</Button>
<Button style={{ marginLeft: 8 }}>εˆ ι™€</Button> <Button type="danger" style={{ marginLeft: 8 }}>εˆ ι™€</Button>
</FormItem> </FormItem>
</Form> </Form>
</Card> </Card>
......
import React, { PureComponent } from 'react'; import React, { PureComponent } from 'react';
import { connect } from 'dva'; import { connect } from 'dva';
import { Link } from 'dva/router';
import { Card, Button, Icon, List } from 'antd'; import { Card, Button, Icon, List } from 'antd';
import PageHeaderLayout from '../../layouts/PageHeaderLayout'; import PageHeaderLayout from '../../layouts/PageHeaderLayout';
...@@ -63,18 +62,16 @@ export default class CardList extends PureComponent { ...@@ -63,18 +62,16 @@ export default class CardList extends PureComponent {
dataSource={['', ...list]} dataSource={['', ...list]}
renderItem={item => (item ? ( renderItem={item => (item ? (
<List.Item key={item.id}> <List.Item key={item.id}>
<Card className={styles.card} actions={[<a>ζ“δ½œδΈ€</a>, <a>ζ“δ½œδΊŒ</a>]}> <Card hoverable className={styles.card} actions={[<a>ζ“δ½œδΈ€</a>, <a>ζ“δ½œδΊŒ</a>]}>
<Link to="/list/card-list"> <Card.Meta
<Card.Meta avatar={<img alt="" className={styles.cardAvatar} src={item.avatar} />}
avatar={<img alt="" className={styles.cardAvatar} src={item.avatar} />} title={<a href="#">{item.title}</a>}
title={item.title} description={(
description={( <p className={styles.cardDescription}>
<p className={styles.cardDescription}> <span>{item.description}</span>
<span>{item.description}</span> </p>
</p> )}
)} />
/>
</Link>
</Card> </Card>
</List.Item> </List.Item>
) : ( ) : (
......
...@@ -8,10 +8,18 @@ ...@@ -8,10 +8,18 @@
:global { :global {
.ant-card-meta-title { .ant-card-meta-title {
margin-bottom: 12px; margin-bottom: 12px;
& > a {
color: @heading-color;
}
} }
.ant-card-actions { .ant-card-actions {
background: #f7f9fa; background: #f7f9fa;
} }
.ant-card-body:hover {
.ant-card-meta-title > a {
color: @primary-color;
}
}
} }
} }
} }
...@@ -28,6 +36,7 @@ ...@@ -28,6 +36,7 @@
.newButton { .newButton {
background-color: #fff; background-color: #fff;
border-color: @border-color-base; border-color: @border-color-base;
border-radius: @border-radius-sm;
color: @text-color-secondary; color: @text-color-secondary;
width: 100%; width: 100%;
height: 188px; height: 188px;
......
...@@ -8,9 +8,9 @@ ...@@ -8,9 +8,9 @@
:global { :global {
.ant-card-meta-title { .ant-card-meta-title {
margin-bottom: 4px; margin-bottom: 4px;
} & > a {
.ant-card-meta-title > a { color: @heading-color;
color: @heading-color; }
} }
.ant-card-meta-description { .ant-card-meta-description {
height: 44px; height: 44px;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment