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;
}
相關文章
相關標籤/搜索