forked from mirrors/homebox
stuff
This commit is contained in:
parent
8ece3bd7bf
commit
11dcff450c
15 changed files with 536 additions and 22 deletions
|
@ -2,10 +2,14 @@
|
|||
<button
|
||||
:disabled="disabled || loading"
|
||||
class="btn"
|
||||
ref="submitBtn"
|
||||
:class="{
|
||||
loading: loading,
|
||||
}"
|
||||
>
|
||||
<label v-if="$slots.icon" class="swap swap-rotate mr-2" :class="{ 'swap-active': isHover }">
|
||||
<slot name="icon" />
|
||||
</label>
|
||||
<slot />
|
||||
</button>
|
||||
</template>
|
||||
|
@ -21,4 +25,7 @@
|
|||
default: false,
|
||||
},
|
||||
});
|
||||
|
||||
const submitBtn = ref(null);
|
||||
const isHover = useElementHover(submitBtn);
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue