@carbon/vue 1.1.2 → 1.1.3

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,7 +1,7 @@
1
1
  {
2
2
  "name": "@carbon/vue",
3
3
  "description": "A collection of components for the Carbon Design System built using Vue.js",
4
- "version": "1.1.2",
4
+ "version": "1.1.3",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
7
7
  "type": "git",
@@ -72,5 +72,5 @@
72
72
  "@vue/cli-service": "^3.5.1",
73
73
  "vue-template-compiler": "^2.6.10"
74
74
  },
75
- "gitHead": "5d1efb8355a8e82c0cdad7f8ed08f2fd1ba33537"
75
+ "gitHead": "babd1e211306c29252dbecb9f86b7d07c4e2d4fe"
76
76
  }
@@ -87,7 +87,7 @@
87
87
  v-if="pagination"
88
88
  :backward-text="pagination.backwardText"
89
89
  :forward-text="pagination.forwardText"
90
- :number-of-items="this.registeredRows.length"
90
+ :number-of-items="internalNumberOfItems"
91
91
  :page="pagination.page"
92
92
  :page-number-label="pagination.pageNumberLabel"
93
93
  :page-sizes-label="pagination.pageSizesLabel"
@@ -200,6 +200,13 @@ export default {
200
200
  }
201
201
  return false;
202
202
  },
203
+ internalNumberOfItems() {
204
+ if (this.internalPagination && typeof this.internalPagination.numberOfItems === 'number') {
205
+ return this.internalPagination.numberOfItems;
206
+ } else {
207
+ return this.registeredRows.length;
208
+ }
209
+ },
203
210
  modifierClasses() {
204
211
  const prefix = 'bx--data-table-v2--';
205
212
  const sizeClass = this.rowSize.length === 0 || this.rowSize === 'standard' ? '' : `${prefix}${this.rowSize} `;