mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-22 16:00:39 +01:00
chore(module): lint
This commit is contained in:
@@ -23,7 +23,7 @@ const props = withDefaults(defineProps<LinkBaseProps>(), {
|
||||
type: 'button'
|
||||
})
|
||||
|
||||
function onClick (e: MouseEvent) {
|
||||
function onClick(e: MouseEvent) {
|
||||
if (props.disabled) {
|
||||
e.stopPropagation()
|
||||
e.preventDefault()
|
||||
@@ -43,10 +43,10 @@ function onClick (e: MouseEvent) {
|
||||
<template>
|
||||
<Primitive
|
||||
v-bind="href ? {
|
||||
as: 'a',
|
||||
href: disabled ? undefined : href,
|
||||
'as': 'a',
|
||||
'href': disabled ? undefined : href,
|
||||
'aria-disabled': disabled ? 'true' : undefined,
|
||||
role: disabled ? 'link' : undefined
|
||||
'role': disabled ? 'link' : undefined
|
||||
} : as === 'button' ? {
|
||||
as,
|
||||
type,
|
||||
|
||||
Reference in New Issue
Block a user