mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-18 06:44:46 -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>
|
<template>
|
||||||
|
|
||||||
<a
|
<a
|
||||||
:href="href"
|
:href="href"
|
||||||
:target="target"
|
:target="target"
|
||||||
|
|
@ -7,9 +6,11 @@
|
||||||
:class="classlist"
|
:class="classlist"
|
||||||
role="button"
|
role="button"
|
||||||
>
|
>
|
||||||
<slot />
|
<span v-if="label.trim().length > 0">
|
||||||
|
{{ label }}
|
||||||
|
</span>
|
||||||
|
<slot name="label" />
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
@ -20,6 +21,10 @@ export default {
|
||||||
type: String,
|
type: String,
|
||||||
required: true
|
required: true
|
||||||
},
|
},
|
||||||
|
label: {
|
||||||
|
type: String,
|
||||||
|
default: ''
|
||||||
|
},
|
||||||
target: {
|
target: {
|
||||||
type: String,
|
type: String,
|
||||||
default: null
|
default: null
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue