<script>
import Vue from 'vue'

export default Vue.extend({
  name: "index"
})
</script>

<template>
  <div class="main-box">
    <div class="head">
      <el-input prefix-icon="el-icon-search" placeholder="搜索观众姓名/手机号/邮箱" class="input"></el-input>
      <el-button icon="el-icon-plus" type="primary">添加观众</el-button>
      <el-button icon="el-icon-upload2">导入</el-button>
      <el-button icon="el-icon-download">导出</el-button>
    </div>
    <div class="body">
      <el-table height="100%">
        <el-table-column
          label="姓名">
        </el-table-column>
        <el-table-column
          label="手机号">
        </el-table-column>
        <el-table-column
          label="邮箱"
          width="260">
        </el-table-column>
        <el-table-column
          label="公司"
          width="260">
        </el-table-column>
        <el-table-column
          label="职位">
        </el-table-column>
        <el-table-column
          label="注册时间">
        </el-table-column>
        <el-table-column
          label="状态">
        </el-table-column>
        <el-table-column
          label="操作">
        </el-table-column>
      </el-table>
    </div>
    <div class="foot">
      <el-pagination
        background
        :page-size="100"
        layout="total, prev, pager, next"
        :total="1000">
      </el-pagination>
    </div>
  </div>
</template>

<style scoped>
  .main-box{
    height: 100%;
    display: grid;
    grid-template-rows: auto 1fr auto;
    grid-gap: 24px;
    .head{
      display: flex;
      .input{
        width: 50%;
        margin-right: auto;
      }
    }
    .body{
      height: 100%;
    }
    .foot{
      .el-pagination{
        display: flex;
        .el-pagination__total{
          margin-right: auto;
        }
      }
    }
  }
</style>
