vue分页的设置
1,這里用的是element-ui
分頁的組件代碼
size-change: pageSize 改變時會觸發,也就是每頁條數
current-change:currentPage 改變時會觸發,也就是當前頁
layout:組件布局,子組件名用逗號分隔
total: 數據的數量
2,在table組件添加一個page - size
handleSizeChange (val) {this.PageSize = val},handleCurrentChange (val) {this.currentPage = val},// 序號自增indexMethod (index) {return (this.currentPage - 1) * 10 + index + 1},序號自增是方便數據如果有id,可以直接變更數據順序
總結
- 上一篇: 英频杰Indy固件手册中文版(二)
- 下一篇: tcpreplay命令