2022-09-06 12:03:37 +00:00
|
|
|
<template>
|
2022-09-14 11:26:01 +00:00
|
|
|
<button v-ripple :class="containerClass" type="button">
|
2023-04-07 06:48:00 +00:00
|
|
|
<component :is="template || 'AngleRightIcon'" class="p-paginator-icon" />
|
2022-09-14 11:26:01 +00:00
|
|
|
</button>
|
2022-09-06 12:03:37 +00:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
2023-04-18 12:53:43 +00:00
|
|
|
import AngleRightIcon from 'primevue/icons/angleright';
|
2022-09-06 12:03:37 +00:00
|
|
|
import Ripple from 'primevue/ripple';
|
|
|
|
|
|
|
|
export default {
|
|
|
|
name: 'NextPageLink',
|
2023-04-07 06:48:00 +00:00
|
|
|
props: {
|
|
|
|
template: {
|
|
|
|
type: Function,
|
|
|
|
default: null
|
|
|
|
}
|
|
|
|
},
|
2022-09-06 12:03:37 +00:00
|
|
|
computed: {
|
|
|
|
containerClass() {
|
2022-09-14 11:26:01 +00:00
|
|
|
return [
|
|
|
|
'p-paginator-next p-paginator-element p-link',
|
|
|
|
{
|
|
|
|
'p-disabled': this.$attrs.disabled
|
|
|
|
}
|
|
|
|
];
|
2022-09-06 12:03:37 +00:00
|
|
|
}
|
|
|
|
},
|
2023-04-07 06:48:00 +00:00
|
|
|
components: {
|
|
|
|
AngleRightIcon: AngleRightIcon
|
|
|
|
},
|
2022-09-06 12:03:37 +00:00
|
|
|
directives: {
|
2022-09-14 11:26:01 +00:00
|
|
|
ripple: Ripple
|
2022-09-06 12:03:37 +00:00
|
|
|
}
|
2022-09-14 11:26:01 +00:00
|
|
|
};
|
2022-09-06 12:03:37 +00:00
|
|
|
</script>
|