2016-03-31 14:17:09 +08:00
|
|
|
---
|
|
|
|
category: Components
|
2016-11-09 14:43:32 +08:00
|
|
|
type: Data Display
|
2016-05-26 17:46:55 +08:00
|
|
|
title: Card
|
|
|
|
subtitle: 卡片
|
2016-06-17 15:39:05 +08:00
|
|
|
cols: 1
|
2016-03-31 14:17:09 +08:00
|
|
|
---
|
2016-02-19 19:35:49 +08:00
|
|
|
|
|
|
|
通用卡片容器。
|
|
|
|
|
|
|
|
## 何时使用
|
|
|
|
|
|
|
|
最基础的卡片容器,可承载文字、列表、图片、段落,常用于后台概览页面。
|
|
|
|
|
2016-02-20 16:40:18 +08:00
|
|
|
## API
|
|
|
|
|
2016-02-19 19:35:49 +08:00
|
|
|
```html
|
|
|
|
<Card title="卡片标题">卡片内容</Card>
|
|
|
|
```
|
|
|
|
|
2017-07-07 13:36:54 +08:00
|
|
|
### Card
|
|
|
|
|
2017-10-25 10:25:44 +08:00
|
|
|
| 参数 | 说明 | 类型 | 默认值 |
|
|
|
|
| --- | --- | --- | --- |
|
|
|
|
| bodyStyle | 内容区域自定义样式 | object | - |
|
|
|
|
| bordered | 是否有边框 | boolean | true |
|
|
|
|
| extra | 卡片右上角的操作区域 | string\|ReactNode | - |
|
|
|
|
| loading | 当卡片内容还在加载中时,可以用 loading 展示一个占位 | boolean | false |
|
2017-08-04 14:13:45 +08:00
|
|
|
| noHovering | 取消鼠标移过浮起 | boolean | false |
|
2017-10-25 10:25:44 +08:00
|
|
|
| title | 卡片标题 | string\|ReactNode | - |
|
2017-07-07 13:36:54 +08:00
|
|
|
|
|
|
|
### Card.Grid
|
|
|
|
|
2017-10-25 10:25:44 +08:00
|
|
|
| Property | Description | Type | Default |
|
|
|
|
| -------- | ----------- | ---- | ------- |
|
|
|
|
| className | 网格容器类名 | string | - |
|
|
|
|
| style | 定义网格容器类名的样式 | object | - |
|