cloudroam
2025-03-28 cef2bb0eeeb91a22860cf5d23c7348af1ba921dc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<script>
import { Table } from 'element-ui'
export default {
  extends: Table,
  mounted() {
    this.$nextTick(function () {
      const thead = this.$el.querySelector('.el-table__header-wrapper thead')
      const theadNew = thead.cloneNode(true)
      this.$el
        .querySelector('.el-table__body-wrapper table')
        .appendChild(theadNew)
    })
  },
}
</script>
 
<style lang="scss" scoped>
::v-deep {
  .el-table {
    &__body-wrapper thead {
      display: none;
    }
  }
}
</style>