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

Commit c9a8018

Browse files
committed
Fixed demo on development
1 parent a1761af commit c9a8018

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/App.vue

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export default {
1313
return (
1414
<div id="app">
1515
<h2 class="text-center mb3">Vue Datasource</h2>
16-
<datasource source={this.information} limits={this.limits} actions={this.actions} columns={this.columns} on-change={this.change}></datasource>
16+
<datasource source={this.information} total={this.total} limits={this.limits} actions={this.actions} columns={this.columns} on-change={this.change}></datasource>
1717
</div>
1818
)
1919
},
@@ -95,13 +95,15 @@ export default {
9595
page: 1,
9696
perpage: 10,
9797
pagination: {},
98-
search: ''
98+
search: '',
99+
total: 0
99100
}
100101
},
101102
methods: {
102103
getSource () {
103104
axios.get(`https://reqres.in/api/users?per_page=${this.perpage}&page=${this.page}`).then((response) => {
104105
this.information = response.data.data
106+
this.total = response.data.total
105107
})
106108
},
107109
change (value) {

0 commit comments

Comments
 (0)