派生自 wuyushui/SewerAndRainNetwork

zhangshuaibao
2021-04-14 d721c212821d8095b033cb40662ef745c396669a
src/components/BaseNav/PublicBounced/common/PublicTable.vue
@@ -1,17 +1,10 @@
<template>
  <div class="win">
    <!-- 四个角的边框效果 -->
    <div class="border_corner border_corner_left_top"></div>
    <div class="border_corner border_corner_right_top"></div>
    <div class="border_corner border_corner_left_bottom"></div>
    <div class="border_corner border_corner_right_bottom"></div>
    <div class="main">
      <div class="main-table">
        <el-table :data="listData" style="width: 100%" height="200px" :row-class-name="tableRowClassName">
          <el-table-column v-for="(item, index) in listLabel" :key="index" :prop="item.prop"
                           :label="item.label"></el-table-column>
        </el-table>
      </div>
  <div class="react">
    <div class="main-table">
      <el-table :data="displayContentTable" style="width: 100%" height="200px" :row-class-name="tableRowClassName">
        <el-table-column v-for="(item, index) in listLabel" :key="index" :prop="item.prop"
                         :label="item.label"></el-table-column>
      </el-table>
    </div>
  </div>
</template>
@@ -55,13 +48,6 @@
      ]
    }
  },
  mounted () {
    this.$nextTick(() => {
      this.displayContentTable.forEach(item => {
        this.listData = item
      })
    })
  },
  methods: {
    tableRowClassName ({
      row,
@@ -79,52 +65,17 @@
</script>
<style lang="less" scoped>
.win {
.react {
  position: relative;
  background-color: rgba(33, 41, 69, 0.9);
}
.main {
  .main-table {
    width: 100%;
  }
}
.border_corner {
  z-index: 999;
  position: absolute;
  width: 14px;
  height: 14px;
  background: rgba(0, 0, 0, 0);
  border: 1px solid #47d5ea;
}
.border_corner_left_top {
  top: 0;
  left: 0;
  border-right: none;
  border-bottom: none;
}
.border_corner_right_top {
  top: 0;
  right: 0;
  border-left: none;
  border-bottom: none;
}
.border_corner_left_bottom {
  bottom: 0;
  left: 0;
  border-right: none;
  border-top: none;
}
.border_corner_right_bottom {
  bottom: 0;
  right: 0;
  border-left: none;
  border-top: none;
  background: linear-gradient(to left, #02a6b5, #02a6b5) left top no-repeat,
  linear-gradient(to bottom, #02a6b5, #02a6b5) left top no-repeat,
  linear-gradient(to left, #02a6b5, #02a6b5) right top no-repeat,
  linear-gradient(to bottom, #02a6b5, #02a6b5) right top no-repeat,
  linear-gradient(to left, #02a6b5, #02a6b5) left bottom no-repeat,
  linear-gradient(to bottom, #02a6b5, #02a6b5) left bottom no-repeat,
  linear-gradient(to left, #02a6b5, #02a6b5) right bottom no-repeat,
  linear-gradient(to left, #02a6b5, #02a6b5) right bottom no-repeat;
  background-size: 2px 20px, 20px 2px, 2px 20px, 20px 2px;
}
</style>