primevue-mirror/components/lib/paginator/FirstPageLink.vue

37 lines
832 B
Vue
Raw Normal View History

2022-09-06 12:03:37 +00:00
<template>
2022-09-14 11:26:01 +00:00
<button v-ripple :class="containerClass" type="button">
<component :is="template || 'AngleDoubleLeftIcon'" class="p-paginator-icon" />
2022-09-14 11:26:01 +00:00
</button>
2022-09-06 12:03:37 +00:00
</template>
<script>
import AngleDoubleLeftIcon from 'primevue/icons/angledoubleleft';
2022-09-06 12:03:37 +00:00
import Ripple from 'primevue/ripple';
export default {
name: 'FirstPageLink',
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-first p-paginator-element p-link',
{
'p-disabled': this.$attrs.disabled
}
];
2022-09-06 12:03:37 +00:00
}
},
components: {
AngleDoubleLeftIcon: AngleDoubleLeftIcon
},
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>