forked from AkkomaGang/akkoma-fe
show text in progress only when slot is given
This commit is contained in:
parent
f4a16e6541
commit
e9e6daa76e
1 changed files with 2 additions and 5 deletions
|
@ -1,9 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<button
|
<button :disabled="progress || disabled" @click="onClick">
|
||||||
:disabled="progress || disabled"
|
<template v-if="progress && !!$slots.progress">
|
||||||
@click="onClick"
|
|
||||||
>
|
|
||||||
<template v-if="progress">
|
|
||||||
<slot name="progress" />
|
<slot name="progress" />
|
||||||
</template>
|
</template>
|
||||||
<template v-else>
|
<template v-else>
|
||||||
|
|
Loading…
Reference in a new issue