Skip to content
This repository was archived by the owner on Jun 10, 2021. It is now read-only.

Commit 62bc765

Browse files
committed
Added active style to selected item
1 parent d0bb40d commit 62bc765

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/Pagination.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export default {
3434
items: DatasourceUtils.gettingItems,
3535
paginationItems () {
3636
return this.items.map((item, index) => {
37-
return <li>
37+
return <li class={{ active: (this.pages.current_page === item) }}>
3838
<a href="#" on-click={ (e) => this.change(e, item) }>{ item }</a>
3939
</li>
4040
})

0 commit comments

Comments
 (0)