show text in progress only when slot is given
This commit is contained in:
parent
f4a16e6541
commit
e9e6daa76e
|
@ -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 New Issue