2023-05-18 01:13:28 +02:00
|
|
|
<template>
|
2023-06-08 00:19:17 +02:00
|
|
|
<button v-on="$listeners" class="btn btn-primary relative group">
|
2023-05-18 01:13:28 +02:00
|
|
|
<div :class="{hidden: !isLoading, flex: isLoading}" class="absolute items-center top-0 h-full left-0 ml-2">
|
|
|
|
<ui-spinner class="border-primary-400 w-6 h-6 group-hover:border-primary-200"></ui-spinner>
|
|
|
|
</div>
|
2023-06-07 22:52:02 +02:00
|
|
|
<slot></slot>
|
2023-05-18 01:13:28 +02:00
|
|
|
</button>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
import {menuStore} from '../../stores/menuStore.js';
|
|
|
|
|
|
|
|
export default {
|
|
|
|
data: function () {
|
|
|
|
return {};
|
|
|
|
},
|
|
|
|
props: {
|
|
|
|
isLoading: {
|
|
|
|
type: Boolean,
|
|
|
|
default: false,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|
|
|
|
</script>
|