mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-26 09:50:33 +01:00
fix(LinkCustom): handle button when no to prop
This commit is contained in:
@@ -1,5 +1,9 @@
|
|||||||
<template>
|
<template>
|
||||||
|
<button v-if="!$attrs.to" v-bind="$attrs" :class="inactiveClass">
|
||||||
|
<slot />
|
||||||
|
</button>
|
||||||
<NuxtLink
|
<NuxtLink
|
||||||
|
v-else
|
||||||
v-slot="{ href, navigate, exact, isActive, isExactActive }"
|
v-slot="{ href, navigate, exact, isActive, isExactActive }"
|
||||||
custom
|
custom
|
||||||
>
|
>
|
||||||
|
|||||||
Reference in New Issue
Block a user