<template> <el-table :data="tableData1.slice((start1-1)*length1,start1*length1)" height="300" style=" 100%;text-align:center;margin-top:20px"> <el-table-column prop="path" label="模块名称" sortable align="center"> </el-table-column> <el-table-column prop="is_changed" label="是否修改" sortable align="center"> </el-table-column> </el-table> </template> <script> export default { data() { return { start1:1, length1:10, total1:0, } }, methonds:{ handleSizeChange1(val){ this.start1=1 this.length1=val }, handleCurrentChange1(val){ this.start1=val }, } } //其实就是简单的数组截取