lokyoung / vuejs-paginate

A Vue.js(v2.x+) component for creating pagination.
MIT License
778 stars 171 forks source link

跳转到某一页,该如何让active选中到对应的索引 #111

Closed HoweZhang closed 5 years ago

HoweZhang commented 5 years ago

我有个搜索跳转到某一页的需求,例如搜索第6页,我拿到第6页的数据时,我该如何让组件知道当前索引是第6页,点击上一页是5,下一页是7,并且给当前页加上active。

HoweZhang commented 5 years ago

v-model="nowPageNum"