提交 bd764700 编写于 作者: L lin-xin

Fixed pagination in BaseTable.vue

上级 663d39ae
......@@ -32,7 +32,9 @@
</el-table-column>
</el-table>
<div class="pagination">
<el-pagination @current-change="handleCurrentChange" :current-page="1" :page-size="10" layout="total, prev, pager, next" :total="100">
<el-pagination
layout="prev, pager, next"
:total="1000">
</el-pagination>
</div>
</div>
......@@ -73,14 +75,10 @@
return row.tag === value;
},
handleEdit(index, row) {
console.log(index, row);
this.$message('编辑第'+(index+1)+'');
},
handleDelete(index, row) {
console.log(index, row);
},
handleCurrentChange(val) {
this.currentPage = val;
console.log(`当前页: ${val}`);
this.$message.error('删除第'+(index+1)+'');
}
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册