mirror of
https://github.com/element-plus/element-plus.git
synced 2024-12-21 02:50:11 +08:00
feat(link): remove href prototype when empty (#2969)
This commit is contained in:
parent
2bc16a2bab
commit
f3536b899f
@ -6,7 +6,7 @@
|
|||||||
disabled && 'is-disabled',
|
disabled && 'is-disabled',
|
||||||
underline && !disabled && 'is-underline'
|
underline && !disabled && 'is-underline'
|
||||||
]"
|
]"
|
||||||
:href="disabled ? null : href"
|
:href="disabled || !href ? null : href"
|
||||||
@click="handleClick"
|
@click="handleClick"
|
||||||
>
|
>
|
||||||
<i v-if="icon" :class="icon"></i>
|
<i v-if="icon" :class="icon"></i>
|
||||||
|
Loading…
Reference in New Issue
Block a user