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