chore(Button): remove useless ref

This commit is contained in:
Benjamin Canac
2023-05-19 12:12:59 +02:00
parent 526f84692e
commit b9edf31aed

View File

@@ -1,7 +1,6 @@
<template>
<component
:is="buttonIs"
ref="button"
:class="buttonClass"
:aria-label="ariaLabel"
v-bind="buttonProps"
@@ -17,7 +16,7 @@
</template>
<script lang="ts">
import { ref, computed, defineComponent, useSlots } from 'vue'
import { computed, defineComponent, useSlots } from 'vue'
import type { PropType } from 'vue'
import type { RouteLocationNormalized, RouteLocationRaw } from 'vue-router'
import { defu } from 'defu'
@@ -141,8 +140,6 @@ export default defineComponent({
const slots = useSlots()
const button = ref(null)
const buttonIs = computed(() => {
if (props.to) {
return NuxtLink
@@ -217,7 +214,6 @@ export default defineComponent({
})
return {
button,
buttonIs,
buttonProps,
isLeading,