• vue结合element-ui table本地分页


    <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
              
          },
      }
    }
    //其实就是简单的数组截取
  • 相关阅读:
    django rest_framework中将json输出字符强制为utf-8编码
    Java
    Java
    Oracle
    IDEA
    Ubuntu
    Ubuntu
    Ubuntu
    Ubuntu
    Oracle
  • 原文地址:https://www.cnblogs.com/xubaoer/p/11585356.html
Copyright © 2020-2023  润新知