# Card 卡片

# 基础用法

卡片名称
列表内容 1
列表内容 2
列表内容 3
列表内容 4
<template>
  <ml-card class="box-card">
  <div slot="header" class="clearfix">
    <span>卡片名称</span>
    <ml-button style="float: right;" type="text">操作按钮</ml-button>
  </div>
  <div v-for="o in 4" :key="o" class="text item">
    {{'列表内容 ' + o }}
  </div>
</ml-card>
</template>

<script>
export default {
  name: 'CardDemoBase'
}
</script>
<style>
  .text {
    font-size: 14px;
  }

  .item {
    margin-bottom: 18px;
  }

  .clearfix:before,
  .clearfix:after {
    display: table;
    content: "";
  }
  .clearfix:after {
    clear: both
  }

  .box-card {
    width: 480px;
  }
</style>
显示代码