<template>
  <div class="dashboard-card-title">
    <div class="titleIcon"><i class="dashboard-card-title-icon" :class="icon" /></div>
    <div class="ml5">{{ title }}</div>
  </div>
</template>

<script>
export default {
  props: {
    // 标题
    title: {
      type: String,
      required: true
    },
    // elementui icon的名称
    icon: {
      type: String,
      required: true
    }
  }
}
</script>

  <style lang="scss" scoped>
  .dashboard-card-title {
    display: flex;
    align-items: center;
    font-size: 14px;
    .titleIcon {
        width: 20px;
        height: 20px;
    }
    &-icon {
      color: #303133;
    }
  }
  </style>
