pingcrm/resources/js/Shared/Pagination.vue

19 lines
637 B
Vue
Raw Normal View History

2019-03-18 08:53:00 -03:00
<template>
2021-02-27 10:36:45 -03:00
<div v-if="links.length > 3">
<div class="flex flex-wrap -mb-1">
<template v-for="(link, key) in links">
2021-02-27 13:34:08 -03:00
<div v-if="link.url === null" :key="key" class="mr-1 mb-1 px-4 py-3 text-sm leading-4 text-gray-400 border rounded" v-html="link.label" />
<inertia-link v-else :key="key" class="mr-1 mb-1 px-4 py-3 text-sm leading-4 border rounded hover:bg-white focus:border-indigo-500 focus:text-indigo-500" :class="{ 'bg-white': link.active }" :href="link.url" v-html="link.label" />
2021-02-27 10:36:45 -03:00
</template>
</div>
2019-03-18 08:53:00 -03:00
</div>
</template>
<script>
export default {
props: {
links: Array,
},
}
</script>