<template>
  <div class="usermanage">
    <div class="right" :style="{ width: rgBoxWid }">
      <div class="head">
        <div class="title">安全动态列表</div>
        <div class="toggle" :class="{ active: isOpen }" @click="isOpen = !isOpen">
          <span>统计</span>
          <el-icon>
            <DArrowLeft />
          </el-icon>
        </div>
      </div>
      <Table :isShowTotal="isOpen" />
    </div>
  </div>
</template>

<script setup>
import { ref } from "vue";
import Table from './Components/Table.vue'
const isOpen = ref(false);
const rgBoxWid = ref("100%");
</script>

<style lang="scss" scoped>
.usermanage {
  // height: 84vh;
  display: flex;

  .title {
    height: 39px;
    line-height: 39px;
    font-size: 18px;
    color: #0f3916;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }


  .right {
    padding: 0 10px;
    background: #fff;

    .head {
      display: flex;
      justify-content: space-between;
      align-items: center;

      .toggle {
        height: 40px;
        cursor: pointer;
        display: flex;
        align-items: center;
        color: #0f3916;

        .el-icon {
          transform: rotate(90deg);
          transition: all 0.25s ease;
        }

        &.active {
          .el-icon {
            transform: rotate(-90deg);
          }
        }
      }
    }
  }
}

::v-deep .el-pagination {
  justify-content: end !important;
}
</style>
