<template lang="html">
  <div class="tablePanel">
    <el-row :gutter="20">
      <el-col :lg="12" :md="12" :sm="24">
        <div class="tableGrid">
          <div class="tableHeader">
            <h4 class="tableTitle">
              基础表格
            </h4>
          </div>
          <div class="tableContent">
            <table1></table1>
          </div>
        </div>
      </el-col>
      <el-col :lg="12" :md="12" :sm="24">
        <div class="tableGrid">
          <div class="tableHeader">
            <h4 class="tableTitle">
              带斑马纹表格
            </h4>
          </div>
          <div class="tableContent">
            <table2></table2>
          </div>
        </div>
      </el-col>
    </el-row>
    <el-row :gutter="20">
      <el-col :lg="12" :md="12" :sm="24">
        <div class="tableGrid">
          <div class="tableHeader">
            <h4 class="tableTitle">
              带边框的表格
            </h4>
          </div>
          <div class="tableContent">
            <table3></table3>
          </div>
        </div>
      </el-col>
      <el-col :lg="12" :md="12" :sm="24">
        <div class="tableGrid">
          <div class="tableHeader">
            <h4 class="tableTitle">
              带状态的表格
            </h4>
          </div>
          <div class="tableContent">
            <table4></table4>
          </div>
        </div>
      </el-col>
    </el-row>
    <el-row :gutter="20">
      <el-col :lg="12" :md="12" :sm="24">
        <div class="tableGrid">
          <div class="tableHeader">
            <h4 class="tableTitle">
              固定表头的表格
            </h4>
          </div>
          <div class="tableContent">
            <table5></table5>
          </div>
        </div>
      </el-col>
      <el-col :lg="12" :md="12" :sm="24">
        <div class="tableGrid">
          <div class="tableHeader">
            <h4 class="tableTitle">
              固定表列的表格
            </h4>
          </div>
          <div class="tableContent">
            <table6></table6>
          </div>
        </div>
      </el-col>
    </el-row>
    <el-row :gutter="20">
      <el-col :lg="12" :md="12" :sm="24">
        <div class="tableGrid">
          <div class="tableHeader">
            <h4 class="tableTitle">
              固定表列和表头
            </h4>
          </div>
          <div class="tableContent">
            <table7></table7>
          </div>
        </div>
      </el-col>
      <el-col :lg="12" :md="12" :sm="24">
        <div class="tableGrid">
          <div class="tableHeader">
            <h4 class="tableTitle">
              流体高度
            </h4>
          </div>
          <div class="tableContent">
            <table8></table8>
          </div>
        </div>
      </el-col>
    </el-row>
    <el-row :gutter="20">
      <el-col :lg="12" :md="12" :sm="24">
        <div class="tableGrid">
          <div class="tableHeader">
            <h4 class="tableTitle">
              多级表头
            </h4>
          </div>
          <div class="tableContent">
            <table9></table9>
          </div>
        </div>
      </el-col>
      <el-col :lg="12" :md="12" :sm="24">
        <div class="tableGrid">
          <div class="tableHeader">
            <h4 class="tableTitle">
              单选变色
            </h4>
          </div>
          <div class="tableContent">
            <table10></table10>
          </div>
        </div>
      </el-col>
    </el-row>
    <el-row :gutter="20">
      <el-col :lg="12" :md="12" :sm="24">
        <div class="tableGrid">
          <div class="tableHeader">
            <h4 class="tableTitle">
              多选变色
            </h4>
          </div>
          <div class="tableContent">
            <table11></table11>
          </div>
        </div>
      </el-col>
      <el-col :lg="12" :md="12" :sm="24">
        <div class="tableGrid">
          <div class="tableHeader">
            <h4 class="tableTitle">
              排序
            </h4>
          </div>
          <div class="tableContent">
            <table12></table12>
          </div>
        </div>
      </el-col>
    </el-row>
    <el-row :gutter="20">
      <el-col :lg="12" :md="12" :sm="24">
        <div class="tableGrid">
          <div class="tableHeader">
            <h4 class="tableTitle">
              筛选
            </h4>
          </div>
          <div class="tableContent">
            <table13></table13>
          </div>
        </div>
      </el-col>
      <el-col :lg="12" :md="12" :sm="24">
        <div class="tableGrid">
          <div class="tableHeader">
            <h4 class="tableTitle">
              自定义列模板
            </h4>
          </div>
          <div class="tableContent">
            <table14></table14>
          </div>
        </div>
      </el-col>
    </el-row>
    <el-row :gutter="20">
      <el-col :lg="12" :md="12" :sm="24">
        <div class="tableGrid">
          <div class="tableHeader">
            <h4 class="tableTitle">
              展开行
            </h4>
          </div>
          <div class="tableContent">
            <table15></table15>
          </div>
        </div>
      </el-col>
    </el-row>
  </div>
</template>

<script>
import table1 from './table/table-1';
import table2 from './table/table-2';
import table3 from './table/table-3';
import table4 from './table/table-4';
import table5 from './table/table-5';
import table6 from './table/table-6';
import table7 from './table/table-7';
import table8 from './table/table-8';
import table9 from './table/table-9';
import table10 from './table/table-10';
import table11 from './table/table-11';
import table12 from './table/table-12';
import table13 from './table/table-13';
import table14 from './table/table-14';
import table15 from './table/table-15';

export default {
  components: {
    table1,
    table2,
    table3,
    table4,
    table5,
    table6,
    table7,
    table8,
    table9,
    table10,
    table11,
    table12,
    table13,
    table14,
    table15
  }
}
</script>

<style lang="scss">
.tableGrid{
  color: #fff;
  /* height: 300px; */
  background-color: rgba(255, 255, 255, 0.8);
  border: 0;
  border-radius: 7px;
  position: relative;
  margin-bottom: 24px;
  box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.15);
  text-align: left !important;

  &:hover{
    box-shadow: 0px 0px 10px #00abff;
  }

  .tableHeader{
    font-size: 16px;
    background-color: transparent;
    padding: 14px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    height: 44px;
    color: #fff;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }

  h4.tableTitle{
    margin: 0;
    text-transform: uppercase;
    font-weight: 400;
    opacity: 0.9;
    color: #00abff;
    text-align: left;
  }

  .tableContent{
    height: calc(100% - 44px);
    padding: 8px 0px;
  }
}
</style>
