<script setup lang="ts">
import { ref, reactive } from "vue";
import CapsuleChart from "@/components/datav/capsule-chart";
import { ranking } from "@/api";
import { ElMessage } from "element-plus";
const tableData = [
  {
    date: '2016-05-03',
    name: 'Tom',
    address: 'No. 189, Grove St, Los Angeles',
  },
  {
    date: '2016-05-02',
    name: 'Tom',
    address: 'No. 189, Grove St, Los Angeles',
  },
  {
    date: '2016-05-04',
    name: 'Tom',
    address: 'No. 189, Grove St, Los Angeles',
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: 'No. 189, Grove St, Los Angeles',
  },
]
</script>

<template>
      <el-button type="primary" @click="this.$router.push('/')" class="back-home-btn">返回首页</el-button>
  <ItemWrap class="contetn_left-bottom contetn_lr-item" title="用户管理">
    <el-button type="primary"  class="back-home-btn btn-add">添加用户</el-button>
    <div class="user_skills" style="margin-top:20px;">
    <el-table :data="tableData" class="eltables">
      <el-table-column prop="date" label="时间" width="180"/>
      <el-table-column prop="name" label="用户名" width="180" />
      <el-table-column prop="address" label="地址" />
      <el-table-column  label="操作" >
        <el-button type="primary" size="mini" @click="handleEdit">编辑</el-button>
        <el-button type="danger" size="mini" @click="handleEdit">删除</el-button>
      </el-table-column>
    </el-table>
  </div>
  </ItemWrap>
  </template>

<style scoped>
.contetn_lr-item{
  font-size: 30px;
  margin-top: 80px;
  height: 800px;
}
.eltables{
  width: 100%;
  font-size: large;
  text-align: center;
  margin-top: 50px;
}
.back-home-btn {
  background-color: transparent;
  position: absolute;
  margin-top: 30px;
  top: 10px;
  left: 10px;
}
.btn-add{
  margin-top: 50px;
  margin-left: 85%;
}
.user_skills{
   width: 100%;
   margin-top: 50%;
   text-align: center;
   font-size: larger;
}
.user_skills /deep/ .el-table--fit{
    padding: 20px;
}
.user_skills /deep/  .el-table, .el-table__expanded-cell {
    background-color: transparent;
}

.user_skills /deep/ .el-table tr {
    background-color: transparent!important;
}
.user_skills /deep/  .el-table--enable-row-transition .el-table__body td, .el-table .cell{
   background-color: transparent;
}
.el-table::before {
	 left: 0;
	 bottom: 0;
	 width: 100%;
	 height: 0px;
}
.user_skills ::v-deep .el-table__body tr:hover > td {
  background-color: rgba(255, 255, 255, 0.2);
}
.user_skills ::v-deep .el-table thead th {
  background-color: transparent;
}

.user_skills ::v-deep .el-table__body tr:hover > td {
  background-color: rgba(255, 255, 255, 0.2);
}
.user_skills ::v-deep .el-table {
  border: none;
}
.user_skills ::v-deep .el-table::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  border-bottom: none !important;
  /* 如果需要，可以增加下面的属性以确保伪元素的高度为0 */
  height: 0;
}
.user_skills ::v-deep .el-table td, .user_skills ::v-deep .el-table th {
  text-align: center;
  color: aqua;
  border: none;
  height: 0px;
}
.user_skills ::v-deep .el-table,
.user_skills ::v-deep .el-table * {
  border: none !important;
  box-shadow: none !important;
  
}

</style>
