@weni/unnnic-system 2.0.23 → 2.0.24

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": "@weni/unnnic-system",
3
- "version": "2.0.23",
3
+ "version": "2.0.24",
4
4
  "type": "commonjs",
5
5
  "files": [
6
6
  "dist",
@@ -36,7 +36,7 @@
36
36
  :target="row.link.target || '_blank'"
37
37
  >
38
38
  <TableBodyCell
39
- v-for="(cell, index) of row.content"
39
+ v-for="cell of row.content"
40
40
  :key="cell + index"
41
41
  class="unnnic-table-next__body-cell"
42
42
  :cell="cell"
@@ -44,7 +44,7 @@
44
44
  </a>
45
45
  <template v-else>
46
46
  <TableBodyCell
47
- v-for="(cell, index) of row.content"
47
+ v-for="cell of row.content"
48
48
  :key="cell + index"
49
49
  class="unnnic-table-next__body-cell"
50
50
  :cell="cell"
@@ -66,7 +66,7 @@
66
66
  <TablePagination
67
67
  :modelValue="pagination"
68
68
  :total="treatedPaginationTotal"
69
- :interval="rows.length"
69
+ :interval="paginationInterval"
70
70
  @update:model-value="$emit('update:pagination', $event)"
71
71
  />
72
72
  </table>
@@ -129,12 +129,18 @@ export default {
129
129
  type: Number,
130
130
  default: 1,
131
131
  },
132
+ paginationInterval: {
133
+ type: Number,
134
+ default: 1,
135
+ },
132
136
  isLoading: {
133
137
  type: Boolean,
134
138
  default: false,
135
139
  },
136
140
  },
137
141
 
142
+ emits: ['update:pagination'],
143
+
138
144
  data() {
139
145
  return {
140
146
  defaultTranslations: {
@@ -44,6 +44,7 @@ export default {
44
44
  :rows="args.rows || table.rows"
45
45
  v-model:pagination="pagination"
46
46
  :paginationTotal="125"
47
+ :paginationInterval="5"
47
48
  />
48
49
  `,
49
50
  }),