innoboxrr-vue-datatable 1.1.1 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "innoboxrr-vue-datatable",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "description": "Datatable para vue3",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/src/DataTable.vue CHANGED
@@ -197,6 +197,11 @@
197
197
  required: true
198
198
  },
199
199
 
200
+ policyMethod: {
201
+ type: String,
202
+ default: 'post'
203
+ },
204
+
200
205
  showTopbar:{
201
206
  type: Boolean,
202
207
  default: true
@@ -8,7 +8,11 @@
8
8
 
9
9
  <li>
10
10
 
11
- <span v-if="meta.total > 0">{{ 'Showing' }} {{ meta.from }} {{ 'to' }} {{ meta.to }} {{ 'of' }} {{ meta.total }} {{ 'entries' }}</span>
11
+ <span v-if="meta.total > 0">
12
+
13
+ {{ 'Showing' }} {{ meta.from }} {{ 'to' }} {{ meta.to }} {{ 'of' }} {{ meta.total }} {{ 'entries' }}
14
+
15
+ </span>
12
16
 
13
17
  <span v-else>{{ ('No results found') }}</span>
14
18
 
@@ -36,7 +40,6 @@
36
40
  <li>
37
41
  <select
38
42
  class="uk-select"
39
- @change="updatePage()"
40
43
  v-model="current_page">
41
44
 
42
45
  <option
@@ -86,18 +89,24 @@
86
89
 
87
90
  emits: ['updatePage'],
88
91
 
89
- updated() {
92
+ data() {
90
93
 
91
- this.current_page = this.meta.current_page;
94
+ return {
95
+
96
+ current_page: 1,
97
+
98
+ }
92
99
 
93
100
  },
94
101
 
95
- data() {
102
+ watch: {
96
103
 
97
- return {
104
+ current_page(newVal, oldVal) {
105
+
106
+ this.current_page = newVal;
107
+
108
+ this.updatePage();
98
109
 
99
- current_page: this.meta.current_page,
100
-
101
110
  }
102
111
 
103
112
  },