elementUI table 表格序號index 翻頁 增加


<el-table-column type="index" label="序號" : index="indexMethod" width="90" align="center" ></el-table-column>

......

    //序號Index 翻頁遞增  currentPage 當前頁, fetchNum 當前頁顯示條數
indexMethod(index){
    return(this.currentPage-1)*this.fetchNum +index+1;
}

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM