2021-04-11 00:57:47 +02:00
|
|
|
<template>
|
2022-05-17 00:22:45 +02:00
|
|
|
<i-link
|
|
|
|
class="flex text-white py-2 px-3 rounded-lg hover:bg-gray-600"
|
|
|
|
:method="method"
|
2022-05-17 01:37:07 +02:00
|
|
|
v-on="$listeners"
|
2022-05-17 00:22:45 +02:00
|
|
|
:href="href"
|
|
|
|
:class="{'bg-gray-700': $page.props.menu == menu}"
|
|
|
|
>
|
2022-02-12 15:22:22 +01:00
|
|
|
<svg-sprite class="text-white w-6 h-6 mr-4" :src="icon"></svg-sprite>
|
2021-04-11 00:57:47 +02:00
|
|
|
<span class="font-semibold">
|
|
|
|
<slot></slot>
|
|
|
|
</span>
|
2022-02-12 15:26:14 +01:00
|
|
|
</i-link>
|
2021-04-11 00:57:47 +02:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
props: {
|
|
|
|
href: {},
|
|
|
|
icon: {},
|
|
|
|
menu: {},
|
2022-05-17 00:22:45 +02:00
|
|
|
method: {
|
|
|
|
default: 'GET',
|
|
|
|
},
|
|
|
|
},
|
2021-04-11 00:57:47 +02:00
|
|
|
};
|
|
|
|
</script>
|