<template>
  <div id="myTable">
    <Table border :columns="columns1" :data="data1" height="600"  size="small"></Table>
  </div>
</template>

<script>
export default {
  name: "helloLine",
  data() {
    return {
      columns1: [
        {
          title: "姓名",
          key: "name",
          align:'center'
        },
        {
          title: "学号",
          key: "age",
          sortable: true,
          align:'center'
        },
        {
          title: "座号",
          key: "address",
          sortable: true,
          align:'center'
        },
        {
          title: "分数",
          key: "name",
          sortable: true,
          align:'center'
        },
        {
          title: "答对题数",
          key: "age",
          sortable: true,
          align:'center'
        },
        {
          title: "答错题数",
          key: "age",
          sortable: true,
          align:'center'
        },
      ],
      data1: [
        {
          name: "379班",
          age: 18,
          address: "496.1",
          date: "3.44%"
        },
        {
          name: "380班",
          age: 28,
          address: "496.1",
          date: "3.44%"
        },
        {
          name: "381班",
          age: 48,
          address: "496.1",
          date: "3.44%"
        },
        {
          name: "382班",
          age: 12,
          address: "496.1",
          date: "3.44%"
        },
        {
          name: "383班",
          age: 28,
          address: "496.1",
          date: "3.44%"
        },
        {
          name: "384班",
          age: 18,
          address: "496.1",
          date: "3.44%"
        },
        {
          name: "385班",
          age: 18,
          address: "496.1",
          date: "3.44%"
        },
        {
          name: "382班",
          age: 12,
          address: "496.1",
          date: "3.44%"
        },
        {
          name: "383班",
          age: 28,
          address: "496.1",
          date: "3.44%"
        },
        {
          name: "384班",
          age: 18,
          address: "496.1",
          date: "3.44%"
        },

      ]
    };
  },
  mounted() {},
  methods: {}
};
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
#myTable {
  width: 100%;
  height: 500px;
  margin: 0 auto;
  display: block;
}

#myTable /deep/ .ivu-table td, #myTable /deep/ .ivu-table th{
  /*border: none;*/
  color:#e4eadb;
  border-color:#595959;
}

  #myTable .ivu-table-wrapper {
    /*border:0;*/
    border-color:#595959;
    border-bottom:1px solid #595959;
  }
#myTable /deep/ .ivu-table::before , #myTable /deep/ .ivu-table::after{
  height:0;
}

#myTable /deep/ .ivu-table , #myTable /deep/ .ivu-table td , #myTable /deep/ .ivu-table th{
  background:transparent;
}

#myTable /deep/ .ivu-table-sort{
  margin-left: -6px;
}

#myTable /deep/ .ivu-table-sort i{
  color:#fff;
}

#myTable /deep/ .ivu-table-header .ivu-table-cell{
  font-size: 14px;
  font-weight: bold;
}

#myTable /deep/ .ivu-table-header{
  background:rgba(228, 234, 219, 0.08);
}
</style>
