mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-15 06:35:20 -07:00
Add label prop
This commit is contained in:
parent
1ca99a8427
commit
a0beffe401
1 changed files with 8 additions and 3 deletions
|
|
@ -1,5 +1,4 @@
|
|||
<template>
|
||||
|
||||
<a
|
||||
:href="href"
|
||||
:target="target"
|
||||
|
|
@ -7,9 +6,11 @@
|
|||
:class="classlist"
|
||||
role="button"
|
||||
>
|
||||
<slot />
|
||||
<span v-if="label.trim().length > 0">
|
||||
{{ label }}
|
||||
</span>
|
||||
<slot name="label" />
|
||||
</a>
|
||||
|
||||
</template>
|
||||
|
||||
<script>
|
||||
|
|
@ -20,6 +21,10 @@ export default {
|
|||
type: String,
|
||||
required: true
|
||||
},
|
||||
label: {
|
||||
type: String,
|
||||
default: ''
|
||||
},
|
||||
target: {
|
||||
type: String,
|
||||
default: null
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue