mayf
2024-09-02 d3e09bace1db01d68a9a7a434c07b4331e1b15b7
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>