mirror of
https://github.com/Hopiu/vue-material.git
synced 2026-05-12 09:13:11 +00:00
Merge remote-tracking branch 'origin/develop' into components/mdLayout
* origin/develop: fix display of total items on md-table-pagination (#190) #181
This commit is contained in:
commit
9199d55538
1 changed files with 2 additions and 2 deletions
|
|
@ -6,7 +6,7 @@
|
|||
<md-option v-for="amount in mdPageOptions" :value="amount">{{ amount }}</md-option>
|
||||
</md-select>
|
||||
|
||||
<span>{{ ((currentPage - 1) * currentSize) + 1 }}-{{ subTotal }} {{ mdSeparator }} {{ totalItems }}</span>
|
||||
<span>{{ ((currentPage - 1) * currentSize) + 1 }}-{{ subTotal }} {{ mdSeparator }} {{ mdTotal }}</span>
|
||||
|
||||
<md-button class="md-icon-button md-table-pagination-previous" @click="previousPage" :disabled="currentPage === 1">
|
||||
<md-icon>keyboard_arrow_left</md-icon>
|
||||
|
|
@ -48,7 +48,7 @@
|
|||
subTotal: 0,
|
||||
currentSize: parseInt(this.mdSize, 10),
|
||||
currentPage: parseInt(this.mdPage, 10),
|
||||
totalItems: !isNaN(this.mdTotal) && Number.MAX_SAFE_INTEGER
|
||||
totalItems: isNaN(this.mdTotal)?Number.MAX_SAFE_INTEGER:parseInt(this.mdTotal, 10)
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
|
|
|
|||
Loading…
Reference in a new issue