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>
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
<template>
|
||||
<div class="z-[9999]">
|
||||
<div class="z-[999]">
|
||||
<input type="checkbox" :id="modalId" class="modal-toggle" v-model="modal" />
|
||||
<div class="modal">
|
||||
<div class="modal-box relative">
|
||||
<div class="modal modal-bottom sm:modal-middle overflow-visible">
|
||||
<div class="modal-box overflow-visible relative">
|
||||
<button @click="close" :for="modalId" class="btn btn-sm btn-circle absolute right-2 top-2">✕</button>
|
||||
|
||||
<h3 class="font-bold text-lg">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue