mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Refactor #3924 - For Paginator
This commit is contained in:
parent
751e627b63
commit
ca57a6520f
13 changed files with 242 additions and 26 deletions
|
@ -1,21 +1,32 @@
|
|||
<template>
|
||||
<button v-ripple :class="containerClass" type="button">
|
||||
<component :is="template || 'AngleDoubleRightIcon'" class="p-paginator-icon" />
|
||||
<button v-ripple :class="containerClass" type="button" v-bind="getPTOptions('lastPageButton')">
|
||||
<component :is="template || 'AngleDoubleRightIcon'" class="p-paginator-icon" v-bind="getPTOptions('lastPageIcon')" />
|
||||
</button>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import BaseComponent from 'primevue/basecomponent';
|
||||
import AngleDoubleRightIcon from 'primevue/icons/angledoubleright';
|
||||
import Ripple from 'primevue/ripple';
|
||||
|
||||
export default {
|
||||
name: 'LastPageLink',
|
||||
extends: BaseComponent,
|
||||
props: {
|
||||
template: {
|
||||
type: Function,
|
||||
default: null
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
getPTOptions(key) {
|
||||
return this.ptm(key, {
|
||||
context: {
|
||||
disabled: this.$attrs.disabled
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
containerClass() {
|
||||
return [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue