解决方法

<el-table
        :data="projectTableData.slice((currentPage-1)*pagesize,currentPage*pagesize)"
      >
 ... ...
</el-table>
 
data(){
    return {
        total1: 0,
        currentPage: 1,
                pageSize: 50,
    }
},
// 如果希望实现下拉  切换显示条数 可以使用 监听属性来实现
watch: {
    projectTableData(newVal, oldVal) {
      this.total1 = newVal.length
    },
    deep: true
  },

相关文章:

  • 2021-12-05
  • 2021-10-29
  • 2021-07-19
  • 2021-05-28
  • 2022-01-07
  • 2022-12-23
  • 2022-12-23
  • 2021-09-08
猜你喜欢
  • 2022-12-23
  • 2021-07-13
  • 2021-09-10
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案