Commit ff0385ab authored by ddcat1115's avatar ddcat1115
parent 03e0ca45
......@@ -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>
......
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 hoverable className={styles.card} actions={[<a>ζ“δ½œδΈ€</a>, <a>ζ“δ½œδΊŒ</a>]}>
<Card.Meta
avatar={<img alt="" className={styles.cardAvatar} src={item.avatar} />}
title={item.title}
title={<a href="#">{item.title}</a>}
description={(
<p className={styles.cardDescription}>
<span>{item.description}</span>
</p>
)}
/>
</Link>
</Card>
</List.Item>
) : (
......
......@@ -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;
......
......@@ -8,10 +8,10 @@
:global {
.ant-card-meta-title {
margin-bottom: 4px;
}
.ant-card-meta-title > a {
& > a {
color: @heading-color;
}
}
.ant-card-meta-description {
height: 44px;
line-height: 22px;
......
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