<template>
  <div style="height: 100%; overflow: hidden">
    <div class="scroll-seamless-header">
      <span class="dashboard-title">{{ title }}</span>
      <div class="right-menu">
        <slot name="right-menu"></slot>
      </div>
    </div>

    <div class="dashboard-chart-container dashboard-bg">
      <slot></slot>
    </div>
  </div>
</template>

<script setup>
const props = defineProps({
  title: {
    type: String,
    default: '',
  },
  list: {
    type: Array,
    default: () => [],
  },
});
</script>

<style lang="less" scoped>
.scroll-seamless-header {
  width: 100%;
  height: 42px;
  display: flex;
  justify-content: space-between;
  align-items: center;

  .right-menu {
    margin-right: 20px;
    color: #fff;

  }

}

.dashboard-title {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  flex-direction: row;
  z-index: 1;
  align-content: flex-start;
  background: url(/src/assets/images/titlebg-4340cf1c.png);
  background-size: 100% 100%;
  font-weight: 400;
  font-size: 14px;
  color: #fbffff;
  padding: 0 20px;
  height: 42px;
}

.dashboard-bg {
  background: linear-gradient(to bottom, #08617500, #13a2d6 200%);
}

.dashboard-chart-container {
  height: calc(100% - 42px);
}
</style>