---
nav: default
---
### Card
<img width="100" src="http://qr.topscan.com/api.php?text=demo%2F%23%2Fcomponent%2Fcard"/>
<a href="demo/#/component/card" target="_blank" style="font-size:12px;color:#888;">demo 原始链接：demo/#/component/card</a>


---
#### 演示
<div style="width:377px;height:667px;display:inline-block;border:1px dashed #ececec;border-radius:5px;overflow:hidden;">
<iframe src="demo/#/component/card" width="375" height="667" border="0" frameborder="0"></iframe>
</div>
#### demo 代码

``` html
<template>
  <div>
    <divider>simple card with header and content</divider>
    <card :header="{title:'我的钱包'}">
      <div
        slot="content"
        class="card-demo-flex card-demo-content01"
      >
        <div class="vux-1px-l vux-1px-r">
          <span>1130</span>
          <br>
          京豆
        </div>
        <div class="vux-1px-r">
          <span>15</span>
          <br>
          京东券
        </div>
        <div class="vux-1px-r">
          <span>0</span>
          <br>
          京东卡/E卡
        </div>
        <div>
          <span>88</span>
          <br>
          七天待还
        </div>
      </div>
    </card>

    <br>
    <divider>with footer</divider>
    <card
      :header="{title:'商品详情'}"
      :footer="{title:'查看更多',link:'/component/panel'}"
    >
      <p
        slot="content"
        class="card-padding"
      >
        custom content
      </p>
    </card>

    <br>
    <divider>use header slot and content slot</divider>
    <card>
      <img
        slot="header"
        src="http://placeholder.qiniudn.com/640x300"
        style="width:100%;display:block;"
      >
      <div
        slot="content"
        class="card-padding"
      >
        <p style="color:#999;font-size:12px;">
          Posted on January 21, 2015
        </p>
        <p style="font-size:14px;line-height:1.2;">
          Quisque eget vestibulum nulla. Quisque quis dui quis ex ultricies efficitur vitae non felis. Phasellus quis nibh hendrerit..
        </p>
      </div>
    </card>
  </div>
</template>

<script>
import { Divider, Card } from '../components/_index'

export default {
  components: {
    Card,
    Divider
  }
}
</script>

<style scoped lang="less">
@import '../styles/1px.less';
.card-demo-flex {
  display: flex;
}
.card-demo-content01 {
  padding: 10px 0;
}
.card-padding {
  padding: 15px;
}
.card-demo-flex > div {
  flex: 1;
  text-align: center;
  font-size: 12px;
}
.card-demo-flex span {
  color: #f74c31;
}
</style>

```

#### Github Issue