<template>
  <div class="deviceStatistics card">
    <div class="card-head">
      <div class="title">在线设备统计</div>
    </div>
    <slot name="chart"></slot>
  </div>
</template>
<script setup></script>
<style scoped lang="less">
.card {
  height: 100%;
  background: #ffffff;
  padding: 16px 10px;
  box-sizing: border-box;
  position: relative;
  display: flex;

  .card-head {
    position: absolute;
    color: #061451;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    .title {
      &::before {
        display: inline-block;
        margin-right: 10px;
        content: "";
        width: 2px;
        height: 14px;
        border-radius: 20px;
        background: #061451;
      }
    }
    .search {
      display: flex;
      align-items: center;
    }
  }
}
</style>
