mirror of
https://github.com/hay-kot/homebox.git
synced 2024-11-17 06:08:42 +00:00
25 lines
348 B
Vue
25 lines
348 B
Vue
|
<template>
|
||
|
<button
|
||
|
:disabled="disabled || loading"
|
||
|
class="btn"
|
||
|
:class="{
|
||
|
loading: loading,
|
||
|
}"
|
||
|
>
|
||
|
<slot />
|
||
|
</button>
|
||
|
</template>
|
||
|
|
||
|
<script setup lang="ts">
|
||
|
defineProps({
|
||
|
loading: {
|
||
|
type: Boolean,
|
||
|
default: false,
|
||
|
},
|
||
|
disabled: {
|
||
|
type: Boolean,
|
||
|
default: false,
|
||
|
},
|
||
|
});
|
||
|
</script>
|